Skip to content

Commit

Permalink
Merge branch 'release/v2.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlen committed Aug 13, 2018
2 parents b4bb357 + eca0687 commit 6ab4db9
Show file tree
Hide file tree
Showing 13 changed files with 250 additions and 126 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/passbolt/passbolt_docker/compare/v2.1.0...HEAD)
## [Unreleased](https://github.com/passbolt/passbolt_docker/compare/v2.2.0...HEAD)

## [2.2.0](https://github.com/passbolt/passbolt_docker/compare/v2.1.0...v2.2.0) - 2018-08-13

### Added

- Added [wait-for-it](https://github.com/vishnubob/wait-for-it) instead of wait for to eliminate netcat dependency

### Changed

- Merged: hide nginx and php version [#107](https://github.com/passbolt/passbolt_docker/pull/107)
- Merged: restrict MySQL port access [#109](https://github.com/passbolt/passbolt_docker/pull/109)
- Supervisor config files split into conf.d/{php.conf,nginx.conf,cron.conf}
- Default stdout logging is more verbose now allowing users to see more details on the requests

## [2.1.0](https://github.com/passbolt/passbolt_docker/compare/v2.0.7...v2.1.0) - 2018-06-14

Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7-fpm

LABEL maintainer="[email protected]"

ARG PASSBOLT_VERSION="2.1.0"
ARG PASSBOLT_VERSION="2.2.0"
ARG PASSBOLT_URL="https://github.com/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz"

ARG PHP_EXTENSIONS="gd \
Expand Down Expand Up @@ -41,7 +41,6 @@ RUN apt-get update \
libmcrypt4 \
mysql-client \
supervisor \
netcat \
cron \
&& mkdir /home/www-data \
&& chown -R www-data:www-data /home/www-data \
Expand Down Expand Up @@ -75,10 +74,12 @@ RUN apt-get update \
&& rm /etc/nginx/sites-enabled/default \
&& apt-get purge -y --auto-remove $PASSBOLT_DEV_PACKAGES \
&& rm -rf /var/lib/apt/lists/* \
&& rm /usr/local/bin/composer
&& rm /usr/local/bin/composer \
&& echo 'php_flag[expose_php] = off' > /usr/local/etc/php-fpm.d/expose.conf \
&& sed -i 's/# server_tokens/server_tokens/' /etc/nginx/nginx.conf

COPY conf/passbolt.conf /etc/nginx/conf.d/default.conf
COPY conf/supervisord.conf /etc/supervisor/supervisord.conf
COPY conf/supervisor/*.conf /etc/supervisor/conf.d/
COPY bin/docker-entrypoint.sh /docker-entrypoint.sh

EXPOSE 80 443
Expand Down
4 changes: 4 additions & 0 deletions conf/passbolt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ server {

root /var/www/passbolt/webroot;
index index.php;
error_log /dev/stdout info;
access_log /dev/stdout;

location / {
try_files $uri $uri/ /index.php?$args;
Expand Down Expand Up @@ -53,6 +55,8 @@ server {

root /var/www/passbolt/webroot;
index index.php;
error_log /dev/stdout info;
access_log /dev/stdout;

location / {
try_files $uri $uri/ /index.php?$args;
Expand Down
8 changes: 8 additions & 0 deletions conf/supervisor/cron.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[program:cron]
command=cron -f -l
autostart=true
priority=20
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
8 changes: 8 additions & 0 deletions conf/supervisor/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[program:nginx]
command=/usr/sbin/nginx -g 'daemon off;'
autostart=true
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
8 changes: 8 additions & 0 deletions conf/supervisor/php.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[program:php-fpm]
command=php-fpm -F
autostart=true
priority=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
52 changes: 0 additions & 52 deletions conf/supervisord.conf

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
volumes:
- database_volume:/var/lib/mysql
ports:
- 3306
- "127.0.0.1:3306:3306"

passbolt:
build:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:
volumes:
- database_volume:/var/lib/mysql
ports:
- 3306
- "127.0.0.1:3306:3306"

passbolt:
image: passbolt/passbolt:2.1.1-pro-debian
image: passbolt/passbolt:2.2.0-pro-debian
tty: true
depends_on:
- db
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:
volumes:
- database_volume:/var/lib/mysql
ports:
- 3306
- "127.0.0.1:3306:3306"

passbolt:
image: passbolt/passbolt:2.1.0-debian
image: passbolt/passbolt:2.2.0-debian
tty: true
depends_on:
- db
Expand Down
Loading

0 comments on commit 6ab4db9

Please sign in to comment.