Skip to content

Commit 1e650d8

Browse files
committed
Merge branch 'master' of https://github.com/laradock/laradock into dev
* 'master' of https://github.com/laradock/laradock: update Install Symfony steps in the docs Update docker-compose.yml Update env-example Update Dockerfile-70 fix rm error
2 parents 4977b0f + 2082659 commit 1e650d8

5 files changed

Lines changed: 23 additions & 5 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,13 +1024,15 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
10241024
<a name="Install-Symfony"></a>
10251025
## Install Symfony
10261026

1027-
The installation is very simple, nothing special.
1027+
1 - Open the `.env` file and set `WORKSPACE_INSTALL_SYMFONY` to `true`.
10281028

1029-
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.
1029+
2 - Run `docker-compose build workspace`, after the step above.
10301030

1031-
You mihgt to run `docker-compose restart` if the container are already running.
1031+
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.
10321032

1033-
Visit `symfony.dev`
1033+
4 - Run `docker-compose restart` if the container was already running, before the step above.
1034+
1035+
5 - Visit `symfony.dev`
10341036

10351037
<br>
10361038
<a name="Misc"></a>

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ services:
3232
- INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER}
3333
- INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW}
3434
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
35+
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
36+
- INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
3537
- INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
3638
- PUID=${WORKSPACE_PUID}
3739
- PGID=${WORKSPACE_PGID}

env-example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
4545
WORKSPACE_INSTALL_DEPLOYER=false
4646
WORKSPACE_INSTALL_LINUXBREW=false
4747
WORKSPACE_INSTALL_MC=false
48+
WORKSPACE_INSTALL_SYMFONY=false
49+
WORKSPACE_INSTALL_PYTHON=false
4850
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
4951
WORKSPACE_PUID=1000
5052
WORKSPACE_PGID=1000

php-worker/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
3737
#--------------------------------------------------------------------------
3838
#
3939

40-
RUN rm -r /var/lib/apt/lists/*
4140
WORKDIR /etc/supervisor/conf.d/

workspace/Dockerfile-70

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,19 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
545545
;fi\
546546
;fi
547547

548+
#####################################
549+
# PYTHON:
550+
#####################################
551+
552+
ARG INSTALL_PYTHON=false
553+
ENV INSTALL_PYTHON ${INSTALL_PYTHON}
554+
RUN if [ ${INSTALL_PYTHON} = true ]; then \
555+
apt-get update \
556+
&& apt-get -y install python python-pip python-dev build-essential \
557+
&& pip install --upgrade pip \
558+
&& pip install --upgrade virtualenv \
559+
;fi
560+
548561
#
549562
#--------------------------------------------------------------------------
550563
# Final Touch

0 commit comments

Comments
 (0)