From 972bdd90a3eb6266f84fc58d680fbbe9ca002671 Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Fri, 4 Aug 2017 15:11:10 +0800 Subject: [PATCH 1/5] fix rm error ERROR INFO: Step 4/5 : RUN rm -r /var/lib/apt/lists/* ---> Running in 4a3aa49e0e6e rm: can't remove '/var/lib/apt/lists/*': No such file or directory ERROR: Service 'php-worker' failed to build: The command '/bin/sh -c rm -r /var/lib/apt/lists/*' returned a non-zero code: 1 --- php-worker/Dockerfile | 1 - 1 file changed, 1 deletion(-) 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/ From 6d89424e91a41693aaa7e2d87926c1681fe01944 Mon Sep 17 00:00:00 2001 From: James Whiteman Date: Mon, 7 Aug 2017 08:42:55 +1200 Subject: [PATCH 2/5] Update Dockerfile-70 Add python option to workspace --- workspace/Dockerfile-70 | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 From 3801973b15dd1f125aafeaf6a4698b8f21447845 Mon Sep 17 00:00:00 2001 From: James Whiteman Date: Mon, 7 Aug 2017 08:45:25 +1200 Subject: [PATCH 3/5] Update env-example Added missing symfony install variable and added new python install variable --- env-example | 2 ++ 1 file changed, 2 insertions(+) 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 From 05c7f9186aca312aeab3b7d67152ef0ab6024a95 Mon Sep 17 00:00:00 2001 From: James Whiteman Date: Mon, 7 Aug 2017 08:47:53 +1200 Subject: [PATCH 4/5] Update docker-compose.yml Added missing symfony and python options to workspace --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) 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} From 2082659fb1da4ab95b6bd9ef16927bc15c94c820 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Mon, 7 Aug 2017 05:57:45 +0300 Subject: [PATCH 5/5] update Install Symfony steps in the docs --- DOCUMENTATION/content/documentation/index.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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`