diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index c51bfe96..8dd89fa0 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1024,13 +1024,15 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple ## Install Symfony -The installation is very simple, nothing special. +1 - Open the `.env` file and set `WORKSPACE_INSTALL_SYMFONY` to `true`. -The NGINX sites include a default config file for your Symfony project `symfony.conf.example`, so edit it and make sure the `root` is pointing to your project web directory. +2 - Run `docker-compose build workspace`, after the step above. -You mihgt to run `docker-compose restart` if the container are already running. +3 - The NGINX sites include a default config file for your Symfony project `symfony.conf.example`, so edit it and make sure the `root` is pointing to your project `web` directory. -Visit `symfony.dev` +4 - Run `docker-compose restart` if the container was already running, before the step above. + +5 - Visit `symfony.dev`
diff --git a/docker-compose.yml b/docker-compose.yml index b0c9cb42..16a1aea5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,8 @@ services: - INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER} - INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW} - INSTALL_MC=${WORKSPACE_INSTALL_MC} + - INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY} + - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON} - INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS} - PUID=${WORKSPACE_PUID} - PGID=${WORKSPACE_PGID} diff --git a/env-example b/env-example index a749ca42..be8b5203 100644 --- a/env-example +++ b/env-example @@ -45,6 +45,8 @@ WORKSPACE_INSTALL_LARAVEL_INSTALLER=false WORKSPACE_INSTALL_DEPLOYER=false WORKSPACE_INSTALL_LINUXBREW=false WORKSPACE_INSTALL_MC=false +WORKSPACE_INSTALL_SYMFONY=false +WORKSPACE_INSTALL_PYTHON=false WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false WORKSPACE_PUID=1000 WORKSPACE_PGID=1000 diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 58de7d5b..2eb3f92f 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -37,5 +37,4 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf #-------------------------------------------------------------------------- # -RUN rm -r /var/lib/apt/lists/* WORKDIR /etc/supervisor/conf.d/ diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index c55e2971..d368563c 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -545,6 +545,19 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \ ;fi\ ;fi +##################################### +# PYTHON: +##################################### + +ARG INSTALL_PYTHON=false +ENV INSTALL_PYTHON ${INSTALL_PYTHON} +RUN if [ ${INSTALL_PYTHON} = true ]; then \ + apt-get update \ + && apt-get -y install python python-pip python-dev build-essential \ + && pip install --upgrade pip \ + && pip install --upgrade virtualenv \ +;fi + # #-------------------------------------------------------------------------- # Final Touch