Skip to content

Commit db0b9c8

Browse files
committed
Merge branch 'release/4.0.0'
2 parents 4c62ecd + 69ec2f0 commit db0b9c8

File tree

103 files changed

+1733
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1733
-539
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
TYPO3 Docker Boilerplate Changelog
22
==================================
33

4+
4.0.0 - 2015-08-13 - t3ugs @jweilandnet
5+
---------------------------------------
6+
- Seperated TYPO3 Docker Boilerplate and PHP Docker Boilerplate
7+
- Switched to Ansible provisioning (playbook)
8+
- Added multiple Ubuntu versions
9+
- Added CentOS
10+
- Added Ubuntu with HHVM
11+
- Added development/production context
12+
- Added blackfire.io
13+
- Added possiblity to disable Xdebug and Blackfire
14+
- Moved php.ini to `etc/php/development.ini` and `etc/php/production.ini`
15+
- Added ssh key/config (`etc/ssh`) setting for `/home/.ssh/`
16+
- Added possibility to use `supervisorctl` (only for root)
17+
- Improved provisioning
18+
- Refactored layout
19+
- Added prebuilt Docker images
20+
421
3.5.0 - 2015-06-23
522
-----------------------
623
- Added `ftp` container (with vsftpd)

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Dockerized PHP web project boilerplate
1+
# Dockerized TYPO3 project boilerplate
22

3-
![latest v3.5.0](https://img.shields.io/badge/latest-v3.5.0-green.svg?style=flat)
3+
[![latest v4.0.0](https://img.shields.io/badge/latest-v4.0.0-green.svg?style=flat)](https://github.com/webdevops/TYPO3-docker-boilerplate/releases/tag/4.0.0)
44
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)
55
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mblaschke/typo3-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/typo3-docker-boilerplate "Average time to resolve an issue")
66
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mblaschke/typo3-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/typo3-docker-boilerplate "Percentage of issues still open")
77

8-
This is an easy customizable docker boilerplate for any PHP based projects like _TYPO3 CMS_, _Symfony Framework_, _FLOW/NEOS_ and many other frameworks or applications.
8+
This is an easy customizable TYPO3 docker boilerplate.
99

1010
Supports:
1111

@@ -25,18 +25,16 @@ Supports:
2525
This Docker boilerplate based on the best practises and don't use too much magic.
2626
Configuration of each docker container is available in the `docker/` directory - feel free to customize.
2727

28-
This boilerplate can also be used for any other web project eg. Symfony, Magento and more.
29-
Just customize the makefile for your needs
30-
3128
Warning: There may be issues when using it in production - if you have any success stories please contact me.
3229

33-
Use can use my [Vagrant Development VM](https://github.com/mblaschke/vagrant-development) for this Docker boilerplate, eg. for easy creating new boilerplate installations with an easy shell command: `ct docker:create directory`
30+
You can use my [Vagrant Development VM](https://github.com/mblaschke/vagrant-development) for this Docker boilerplate, eg. for easy creating new boilerplate installations with an easy shell command: `ct docker:create directory`
3431

3532
## Table of contents
3633

3734
- [Installation and requirements](/documentation/INSTALL.md)
3835
- [Updating docker boilerplate](/documentation/UPDATE.md)
3936
- [Customizing](/documentation/CUSTOMIZE.md)
37+
- [Services (Webserver, MySQL... Ports, Users, Passwords)](/documentation/SERVICES.md)
4038
- [Docker Quickstart](/documentation/DOCKER-QUICKSTART.md)
4139
- [Run your project](/documentation/DOCKER-STARTUP.md)
4240
- [Container detail info](/documentation/DOCKER-INFO.md)

bin/create-project.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
88
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.config.sh"
99

1010
if [ "$#" -lt 1 ]; then
11-
echo "No project type defined (either cms, neos, symfony or git)"
11+
echo "No project type defined (either cms, neos or git)"
1212
exit 1
1313
fi
1414

@@ -33,15 +33,6 @@ case "$1" in
3333
execInDir "$CODE_DIR" "composer create-project typo3/neos-base-distribution \"$CODE_DIR\""
3434
;;
3535

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-
;;
44-
4536
###################################
4637
## GIT
4738
###################################

docker-compose.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
# Main php container
33
#######################################
44
main:
5-
build: docker/main/
5+
build: docker/main
6+
#dockerfile: Ubuntu-12.04 # Ubuntu 12.04 - PHP 5.3, LTS (precise)
7+
dockerfile: Ubuntu-14.04 # Ubuntu 14.04 - PHP 5.5, LTS (trusty)
8+
#dockerfile: Ubuntu-15.04 # Ubuntu 15.04 - PHP 5.6 (vivid)
9+
#dockerfile: Ubuntu-15.10 # Ubuntu 15.10 - PHP 5.6 (wily)
10+
#dockerfile: Ubuntu-HHVM # Ubuntu 14.04 - HHVM (trusty)
11+
#dockerfile: Centos-7 # CentOS 7 - PHP 5.4
612
links:
713
- mysql
814
#- postgres
@@ -28,8 +34,9 @@ main:
2834
# Webserver
2935
#######################################
3036
web:
31-
build: docker/httpd/
32-
#build: docker/nginx/
37+
build: docker/web
38+
dockerfile: Apache-Httpd # Apache HTTPd
39+
#dockerfile: Nginx # Nginx
3340
ports:
3441
- 8000:80
3542
- 8443:443
@@ -45,7 +52,7 @@ web:
4552
# MySQL server
4653
#######################################
4754
mysql:
48-
build: docker/mysql/
55+
build: docker/mysql/ # MySQL, MariaDB or PerconaDB
4956
ports:
5057
- 13306:3306
5158
volumes_from:

docker-env.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ DOCUMENT_ROOT=code/
1414
DOCUMENT_INDEX=index.php
1515
CLI_SCRIPT=php typo3/cli_dispatch.phpsh
1616

17-
# SYMFONY FRAMEWORK
18-
#DOCUMENT_ROOT=code/web/
19-
#DOCUMENT_INDEX=app_dev.php
20-
#CLI_SCRIPT=php app/console
21-
2217
# NEOS or FLOW
2318
#DOCUMENT_ROOT=code/Web/
2419
#DOCUMENT_INDEX=index.php
@@ -32,6 +27,16 @@ FLOW_REWRITEURLS=1
3227
SYMFONY_ENV=dev
3328
SYMFONY_DEBUG=0
3429

30+
#######################################
31+
# PROVISION environment
32+
33+
# Context for provision [development|production]
34+
PROVISION_CONTEXT=development
35+
36+
# PHP Modules
37+
PROVISION_PHP_BLACKFIRE=1
38+
PROVISION_PHP_XDEBUG=1
39+
3540
#######################################
3641
# Mail
3742

@@ -70,10 +75,6 @@ FTP_PASSWORD=dev
7075
FTP_PATH=/data/ftp/
7176
#FTP_PATH=/docker/code/
7277

73-
#######################################
74-
# PHP Settings
75-
PHP_TIMEZONE=UTC
76-
7778
#######################################
7879
# Permission settings
7980
EFFECTIVE_UID=1000

docker/elasticsearch/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
#++++++++++++++++++++++++++++++++++++++
2+
# Elasticsearch Docker container
3+
#++++++++++++++++++++++++++++++++++++++
4+
#
5+
# Official images:
6+
#
7+
# elasticsearch - official Elasticsaerch
8+
# https://registry.hub.docker.com/u/library/elasticsearch/
9+
#
10+
#++++++++++++++++++++++++++++++++++++++
11+
112
FROM elasticsearch

docker/httpd/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

docker/mail/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
#++++++++++++++++++++++++++++++++++++++
2+
# Mailcatcher Docker container
3+
#++++++++++++++++++++++++++++++++++++++
4+
#
5+
# Images:
6+
#
7+
# schickling/mailcatcher
8+
# https://registry.hub.docker.com/u/schickling/mailcatcher/
9+
#
10+
#++++++++++++++++++++++++++++++++++++++
11+
112
FROM schickling/mailcatcher

docker/main/Centos-7

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#++++++++++++++++++++++++++++++++++++++
2+
# Centos PHP Docker container
3+
#++++++++++++++++++++++++++++++++++++++
4+
#
5+
# Prebuild images:
6+
#
7+
# webdevops/php-boilerplate:centos-7
8+
#
9+
# Official images:
10+
#
11+
# centos:7 - PHP 5.4
12+
# https://registry.hub.docker.com/u/library/centos/
13+
#
14+
#++++++++++++++++++++++++++++++++++++++
15+
16+
FROM webdevops/php-boilerplate:centos-7
17+
18+
ENV PROVISION_SYS_UPDATE 0
19+
ENV PROVISION_PHP_DISTRIBUTION php
20+
21+
ENV PATH /opt/ansible/bin:/bin:/usr/bin:/sbin:/usr/sbin
22+
ENV PYTHONPATH /opt/ansible/lib
23+
ENV ANSIBLE_LIBRARY /opt/ansible/library
24+
25+
##
26+
# Bootstrap
27+
##
28+
29+
COPY conf/centos/locale.conf /opt/docker/locale.conf
30+
COPY bin/centos/bootstrap.sh /opt/docker/bin/bootstrap.sh
31+
COPY bin/provision.sh /opt/docker/bin/provision.sh
32+
COPY bin/logwatch.sh /opt/docker/bin/logwatch.sh
33+
COPY bin/dnsmasq.sh /opt/docker/bin/dnsmasq.sh
34+
COPY provision /opt/docker/provision/
35+
36+
RUN bash /opt/docker/bin/bootstrap.sh
37+
RUN bash /opt/docker/bin/provision.sh bootstrap
38+
39+
##
40+
# Customization
41+
##
42+
43+
COPY bin/customization.sh /opt/docker/bin/customization.sh
44+
RUN bash /opt/docker/bin/customization.sh
45+
46+
##
47+
# Config
48+
##
49+
50+
COPY bin/entrypoint.sh /entrypoint.sh
51+
COPY conf/centos /opt/docker/conf/
52+
53+
EXPOSE 9000
54+
55+
VOLUME /docker/
56+
WORKDIR /docker/code/
57+
58+
ENTRYPOINT ["/entrypoint.sh"]
59+
CMD ["supervisord"]

docker/main/Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)