diff --git a/CHANGELOG.md b/CHANGELOG.md index c6e23b4..917d1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ PHP Docker Boilerplate Changelog ================================== -5.1.0 - UPCOMING ------------------ +5.1.0 - 2016-05-23 +------------------ +- Add support for new WebDevOps Docker images 0.5.0 and up +- Removed xdebug and blackfire, for xdebug use php-dev, php-apache-dev, php-nginx-dev images 5.0.2 - 2016-05-09 ------------------ diff --git a/Dockerfile.cloud b/Dockerfile.cloud index 6e4733b..78291b9 100644 --- a/Dockerfile.cloud +++ b/Dockerfile.cloud @@ -57,8 +57,7 @@ COPY provision/ /opt/docker/provision/ COPY app/ /app/ -RUN /opt/docker/bin/control.sh provision.role.startup boilerplate-main \ - && /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \ +RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \ && /opt/docker/bin/bootstrap.sh # Configure volume/workdir diff --git a/Dockerfile.development b/Dockerfile.development index 380caea..fe6454f 100644 --- a/Dockerfile.development +++ b/Dockerfile.development @@ -14,32 +14,32 @@ # debian-9 -> PHP 5.6 and 7.0 (stretch) # # Apache: -# webdevops/php-apache:ubuntu-12.04 -# webdevops/php-apache:ubuntu-14.04 -# webdevops/php-apache:ubuntu-15.04 -# webdevops/php-apache:ubuntu-15.10 -# webdevops/php-apache:ubuntu-16.04 -# webdevops/php-apache:ubuntu-16.04-php7 -# webdevops/php-apache:centos-7 -# webdevops/php-apache:debian-7 -# webdevops/php-apache:debian-8 -# webdevops/php-apache:debian-8-php7 -# webdevops/php-apache:debian-9 -# webdevops/php-apache:debian-9-php7 +# webdevops/php-apache-dev:ubuntu-12.04 +# webdevops/php-apache-dev:ubuntu-14.04 +# webdevops/php-apache-dev:ubuntu-15.04 +# webdevops/php-apache-dev:ubuntu-15.10 +# webdevops/php-apache-dev:ubuntu-16.04 +# webdevops/php-apache-dev:ubuntu-16.04-php7 +# webdevops/php-apache-dev:centos-7 +# webdevops/php-apache-dev:debian-7 +# webdevops/php-apache-dev:debian-8 +# webdevops/php-apache-dev:debian-8-php7 +# webdevops/php-apache-dev:debian-9 +# webdevops/php-apache-dev:debian-9-php7 # # Nginx: -# webdevops/php-nginx:ubuntu-12.04 -# webdevops/php-nginx:ubuntu-14.04 -# webdevops/php-nginx:ubuntu-15.04 -# webdevops/php-nginx:ubuntu-15.10 -# webdevops/php-nginx:ubuntu-16.04 -# webdevops/php-nginx:ubuntu-16.04-php7 -# webdevops/php-nginx:centos-7 -# webdevops/php-nginx:debian-7 -# webdevops/php-nginx:debian-8 -# webdevops/php-nginx:debian-8-php7 -# webdevops/php-nginx:debian-9 -# webdevops/php-nginx:debian-9-php7 +# webdevops/php-nginx-dev-dev:ubuntu-12.04 +# webdevops/php-nginx-dev-dev:ubuntu-14.04 +# webdevops/php-nginx-dev-dev:ubuntu-15.04 +# webdevops/php-nginx-dev-dev:ubuntu-15.10 +# webdevops/php-nginx-dev-dev:ubuntu-16.04 +# webdevops/php-nginx-dev-dev:ubuntu-16.04-php7 +# webdevops/php-nginx-dev-dev:centos-7 +# webdevops/php-nginx-dev-dev:debian-7 +# webdevops/php-nginx-dev-dev:debian-8 +# webdevops/php-nginx-dev-dev:debian-8-php7 +# webdevops/php-nginx-dev-dev:debian-9 +# webdevops/php-nginx-dev-dev:debian-9-php7 # # HHVM: # webdevops/hhvm-apache @@ -47,7 +47,7 @@ # #++++++++++++++++++++++++++++++++++++++ -FROM webdevops/php-apache:ubuntu-14.04 +FROM webdevops/php-apache-dev:ubuntu-14.04 ENV PROVISION_CONTEXT "development" @@ -55,9 +55,7 @@ ENV PROVISION_CONTEXT "development" COPY etc/ /opt/docker/etc/ COPY provision/ /opt/docker/provision/ -RUN /opt/docker/bin/control.sh provision.role boilerplate-main \ - && /opt/docker/bin/control.sh provision.role boilerplate-main-development \ - && /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \ +RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-main-development boilerplate-deployment \ && /opt/docker/bin/bootstrap.sh # Configure volume/workdir diff --git a/Dockerfile.production b/Dockerfile.production index 9af6fb3..00af3a3 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -55,8 +55,7 @@ ENV PROVISION_CONTEXT "production" COPY etc/ /opt/docker/etc/ COPY provision/ /opt/docker/provision/ -RUN /opt/docker/bin/control.sh provision.role boilerplate-main \ - && /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \ +RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \ && /opt/docker/bin/bootstrap.sh # Configure volume/workdir diff --git a/README.md b/README.md index 59e98a4..e0ce44a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Dockerized PHP web project boilerplate -[![latest v5.0.2](https://img.shields.io/badge/latest-v5.0.2-green.svg?style=flat)](https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.0.2) +[![latest v5.1.0](https://img.shields.io/badge/latest-v5.1.0-green.svg?style=flat)](https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.1.0) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mblaschke/php-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/php-docker-boilerplate "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/mblaschke/php-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/php-docker-boilerplate "Percentage of issues still open") diff --git a/etc/application.development.yml b/etc/application.development.yml index fe2c56b..20f6f47 100644 --- a/etc/application.development.yml +++ b/etc/application.development.yml @@ -4,8 +4,6 @@ PROVISION: systemUpdate: false install: - phpBlackfire: false - phpXdebug: false apacheModPagespeed: false service: diff --git a/etc/application.production.yml b/etc/application.production.yml index ba8ae21..00e29bd 100644 --- a/etc/application.production.yml +++ b/etc/application.production.yml @@ -4,8 +4,6 @@ PROVISION: systemUpdate: true install: - phpBlackfire: false - phpXdebug: false apacheModPagespeed: false service: diff --git a/provision/roles/boilerplate-main-development/tasks/bootstrap.yml b/provision/roles/boilerplate-main-development/tasks/bootstrap.yml index f39fcf3..eb4bee1 100644 --- a/provision/roles/boilerplate-main-development/tasks/bootstrap.yml +++ b/provision/roles/boilerplate-main-development/tasks/bootstrap.yml @@ -5,7 +5,3 @@ - include: bootstrap/php-blackfire/redhat.yml when: ansible_os_family == 'Debian' and PROVISION.install.phpBlackfire is defined and PROVISION.install.phpBlackfire - -- include: bootstrap/php.xdebug.yml - when: PROVISION.install.phpXdebug is defined and PROVISION.install.phpXdebug - diff --git a/provision/roles/boilerplate-main-development/tasks/bootstrap/php.xdebug.yml b/provision/roles/boilerplate-main-development/tasks/bootstrap/php.xdebug.yml deleted file mode 100644 index c4471b4..0000000 --- a/provision/roles/boilerplate-main-development/tasks/bootstrap/php.xdebug.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- - -- name: Set php xdebug file [RedHat family] - set_fact: - php_xdebug_conf: /etc/php.d/xdebug.ini - when: ansible_os_family == 'RedHat' - -- name: Set php xdebug file [Debian family] - set_fact: - php_xdebug_conf: /etc/php5/mods-available/xdebug.ini - when: ansible_os_family == 'Debian' - -- name: Set php xdebug file [Ubuntu 12.04] - set_fact: - php_xdebug_conf: /etc/php5/conf.d/xdebug.ini - when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == "12.04" - -- name: Enable xdebug - replace: - dest: '{{ php_xdebug_conf }}' - regexp: '^[\s]*;[\s]*({{ item }}[\s]*=.*)$' - replace: '\1' - with_items: - - 'zend_extension' - - 'extension'