Skip to content

Commit 6764a88

Browse files
committed
Install supervistor in the workspace
1 parent 04c6aaf commit 6764a88

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ services:
121121
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
122122
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
123123
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
124+
- INSTALL_SUPERVISOR=${WORKSPACE_INSTALL_SUPERVISOR}
124125
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
125126
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
126127
- http_proxy

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ WORKSPACE_INSTALL_MC=false
124124
WORKSPACE_INSTALL_SYMFONY=false
125125
WORKSPACE_INSTALL_PYTHON=false
126126
WORKSPACE_INSTALL_POWERLINE=false
127+
WORKSPACE_INSTALL_SUPERVISOR=false
127128
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
128129
WORKSPACE_INSTALL_IMAGEMAGICK=false
129130
WORKSPACE_INSTALL_TERRAFORM=false

workspace/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,18 @@ RUN if [ ${INSTALL_POWERLINE} = true ]; then \
957957
;fi \
958958
;fi
959959

960+
###########################################################################
961+
# SUPERVISOR:
962+
###########################################################################
963+
ARG INSTALL_SUPERVISOR=false
964+
965+
RUN if [ ${INSTALL_SUPERVISOR} = true ]; then \
966+
if [ ${INSTALL_PYTHON} = true ]; then \
967+
python -m pip install --upgrade supervisor && \
968+
echo_supervisord_conf > /etc/supervisord.conf \
969+
;fi \
970+
;fi
971+
960972
USER laradock
961973

962974
###########################################################################

0 commit comments

Comments
 (0)