File tree Expand file tree Collapse file tree 9 files changed +65
-10
lines changed Expand file tree Collapse file tree 9 files changed +65
-10
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ create-cms-project:
1010create-neos-project :
1111 bash bin/create-project.sh neos
1212
13+ create-symfony-project :
14+ bash bin/create-project.sh symfony
15+
1316# ############################
1417# MySQL
1518# ############################
Original file line number Diff line number Diff line change 1515 $ touch code/.gitkeep
1616
1717
18- And change DOCUMENT_ROOT in docuer -env.yml:
18+ And change ` DOCUMENT_ROOT ` in ` docker -env.yml` :
1919
2020 DOCUMENT_ROOT=code/Web/
2121
22- Feel free to modify your NEOS installation in your htdocs (a shared folder of Docker),
22+ Feel free to modify your NEOS installation in your ` code ` (a shared folder of Docker),
2323most of the time there is no need to enter any Docker container.
2424
2525## NEOS cli runner
2626
27- You can run one-shot command inside the ` TYPO3 ` service container:
27+ You can run one-shot command inside the ` main ` service container:
2828
2929 $ docker-compose run --rm code flow core:setfilepermissions
3030
Original file line number Diff line number Diff line change 1+ [ <-- Back to main section] ( README.md )
2+
3+ # Running any php based project
4+
5+ ## Create project
6+
7+ - Put your project files into ` code/ `
8+ - If needed modify ` DOCUMENT_ROOT ` and ` DOCUMENT_INDEX ` in ` docker-env.yml `
9+ - You're done - really
10+
11+ ## Cli runner
12+
13+ You can run one-shot command inside the ` main ` service container:
14+
15+ $ docker-compose run --rm code any-php-file.php argument1 argument2
16+
17+ $ docker-compose run --rm code bash
18+
19+ Webserver is available at Port 8000
Original file line number Diff line number Diff line change 1+ [ <-- Back to main section] ( README.md )
2+
3+ # Running SYMFONY
4+
5+ ## Create SYMFONY project
6+
7+ $ make create-symfony-project
8+
9+ And change ` DOCUMENT_ROOT ` and ` DOCUMENT_ROOT ` in ` docker-env.yml ` :
10+
11+ DOCUMENT_ROOT=code/web/
12+ DOCUMENT_INDEX=app_dev.php
13+
14+ ## SYMFONY cli runner
15+
16+ You can run one-shot command inside the ` main ` service container:
17+
18+ $ docker-compose run --rm code php code/app/console
19+
20+ $ docker-compose run --rm code bash
21+
22+ Webserver is available at Port 8000
Original file line number Diff line number Diff line change 1515 $ touch htdocs/FIRST_INSTALL code/.gitkeep
1616
1717
18- Feel free to modify your TYPO3 installation in your htdocs (a shared folder of Docker),
18+ Feel free to modify your TYPO3 installation in your ` code ` (a shared folder of Docker),
1919most of the time there is no need to enter any Docker container.
2020
2121
2222## TYPO3 cli runner
2323
24- You can run one-shot command inside the ` TYPO3 ` service container:
24+ You can run one-shot command inside the ` main ` service container:
2525
2626 $ docker-compose run --rm code typo3/cli_dispatch.phpsh scheduler
2727
Original file line number Diff line number Diff line change 1- # Dockerized TYPO3, FLOW and NEOS project boilerplate
1+ # Dockerized PHP web project boilerplate
22
33This is a boilerplate utilizing Docker based with support
4- for ** TYPO3_CONTEXT** and ** FLOW_CONTEXT** for TYPO3, FLOW and NEOS projects.
4+ for ** TYPO3_CONTEXT** and ** FLOW_CONTEXT** for TYPO3, FLOW, NEOS.
5+ It also supports Symfony and any other PHP base project.
56
67Supports:
78
@@ -84,6 +85,8 @@ Now create the project:
8485
8586- [ Create new TYPO3] ( README-TYPO3.md )
8687- [ Create new NEOS] ( README-NEOS.md )
88+ - [ Create new SYMFONY] ( README-SYMFONY.md )
89+ - [ Running any php based project] ( README-OTHER.md )
8790
8891For an existing project just put your files into code/ folder or use git to clone your project into code/.
8992
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ if [ "$#" -ne 1 ]; then
1313fi
1414
1515mkdir -p -- " $CODE_DIR /"
16+ chmod 777 " $CODE_DIR /"
1617
1718rm -f -- " $CODE_DIR /.gitkeep"
1819
@@ -31,6 +32,15 @@ case "$1" in
3132 " neos" )
3233 execInDir " $CODE_DIR " " composer create-project typo3/neos-base-distribution \" $CODE_DIR \" "
3334 ;;
35+
36+ # ##################################
37+ # # SYMFONY
38+ # ##################################
39+ " symfony" )
40+ curl -LsS http://symfony.com/installer > /tmp/symfony.$$ .phar
41+ execInDir " $CODE_DIR " " php /tmp/symfony.$$ .phar new '$CODE_DIR '"
42+ rm -f -- /tmp/symfony.$$ .phar
43+ ;;
3444esac
3545
3646touch -- " $CODE_DIR /.gitkeep"
Original file line number Diff line number Diff line change 11FROM httpd:2.4
22
3- ENV DEBIAN_FRONTEND noninteractive
4-
53ADD conf/vhost.conf /usr/local/apache2/conf/.docker-vhost.conf.original
64ADD entrypoint.sh /entrypoint.sh
75
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RUN bash /opt/docker/install.sh
1010EXPOSE 9000
1111
1212VOLUME /docker/
13- WORKDIR /docker/
13+ WORKDIR /docker/code/
1414
1515ENTRYPOINT ["/opt/docker/entrypoint.sh" ]
1616CMD ["supervisord" ]
You can’t perform that action at this time.
0 commit comments