commit
fa86617b98
|
|
@ -7,12 +7,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
## [2.2.0](https://github.com/passbolt/passbolt_docker/compare/v2.1.0...v2.2.0) - 2018-08-13
|
## [2.2.0](https://github.com/passbolt/passbolt_docker/compare/v2.1.0...v2.2.0) - 2018-08-13
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- hide nginx and php version [#107](https://github.com/passbolt/passbolt_docker/pull/107)
|
|
||||||
- Restrict MySQL port access [#109](https://github.com/passbolt/passbolt_docker/pull/109)
|
- Added [wait-for-it](https://github.com/vishnubob/wait-for-it) instead of wait for to eliminate netcat dependency
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Added [wait-for-it](https://github.com/vishnubob/wait-for-it) instead of wait for to eliminate netcat dependency
|
- 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
|
## [2.1.0](https://github.com/passbolt/passbolt_docker/compare/v2.0.7...v2.1.0) - 2018-06-14
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ RUN apt-get update \
|
||||||
&& sed -i 's/# server_tokens/server_tokens/' /etc/nginx/nginx.conf
|
&& sed -i 's/# server_tokens/server_tokens/' /etc/nginx/nginx.conf
|
||||||
|
|
||||||
COPY conf/passbolt.conf /etc/nginx/conf.d/default.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
|
COPY bin/docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@ server {
|
||||||
|
|
||||||
root /var/www/passbolt/webroot;
|
root /var/www/passbolt/webroot;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
error_log /dev/stdout info;
|
||||||
|
access_log /dev/stdout;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
|
@ -53,6 +55,8 @@ server {
|
||||||
|
|
||||||
root /var/www/passbolt/webroot;
|
root /var/www/passbolt/webroot;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
error_log /dev/stdout info;
|
||||||
|
access_log /dev/stdout;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
; supervisor config file
|
|
||||||
|
|
||||||
[unix_http_server]
|
|
||||||
file=/var/run/supervisor.sock ; (the path to the socket file)
|
|
||||||
chmod=0700 ; sockef file mode (default 0700)
|
|
||||||
|
|
||||||
[supervisord]
|
|
||||||
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
|
|
||||||
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
|
|
||||||
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
|
|
||||||
|
|
||||||
; the below section must remain in the config file for RPC
|
|
||||||
; (supervisorctl/web interface) to work, additional interfaces may be
|
|
||||||
; added by defining them in separate rpcinterface: sections
|
|
||||||
[rpcinterface:supervisor]
|
|
||||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
||||||
|
|
||||||
[supervisorctl]
|
|
||||||
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
|
|
||||||
|
|
||||||
; The [include] section can just contain the "files" setting. This
|
|
||||||
; setting can list multiple files (separated by whitespace or
|
|
||||||
; newlines). It can also contain wildcards. The filenames are
|
|
||||||
; interpreted as relative to this file. Included files *cannot*
|
|
||||||
; include files themselves.
|
|
||||||
|
|
||||||
[program:php-fpm]
|
|
||||||
command=php-fpm
|
|
||||||
autostart=true
|
|
||||||
priority=5
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
|
|
||||||
[program:nginx]
|
|
||||||
command=nginx -g "daemon off;"
|
|
||||||
autostart=true
|
|
||||||
priority=10
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
|
|
||||||
[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
|
|
||||||
|
|
@ -19,6 +19,11 @@ describe 'Dockerfile' do
|
||||||
let(:nginx_conf) { '/etc/nginx/nginx.conf' }
|
let(:nginx_conf) { '/etc/nginx/nginx.conf' }
|
||||||
let(:php_conf) { '/usr/local/etc/php-fpm.d/expose.conf' }
|
let(:php_conf) { '/usr/local/etc/php-fpm.d/expose.conf' }
|
||||||
let(:site_conf) { '/etc/nginx/conf.d/default.conf' }
|
let(:site_conf) { '/etc/nginx/conf.d/default.conf' }
|
||||||
|
let(:supervisor_conf) do
|
||||||
|
[ '/etc/supervisor/conf.d/nginx.conf',
|
||||||
|
'/etc/supervisor/conf.d/php.conf',
|
||||||
|
'/etc/supervisor/conf.d/cron.conf' ]
|
||||||
|
end
|
||||||
let(:passbolt_home) { '/var/www/passbolt' }
|
let(:passbolt_home) { '/var/www/passbolt' }
|
||||||
let(:passbolt_tmp) { '/var/www/passbolt/tmp' }
|
let(:passbolt_tmp) { '/var/www/passbolt/tmp' }
|
||||||
let(:passbolt_image) { '/var/www/passbolt/webroot/img/public' }
|
let(:passbolt_image) { '/var/www/passbolt/webroot/img/public' }
|
||||||
|
|
@ -48,6 +53,12 @@ describe 'Dockerfile' do
|
||||||
it 'is installed' do
|
it 'is installed' do
|
||||||
expect(package('supervisor')).to be_installed
|
expect(package('supervisor')).to be_installed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'has config files' do
|
||||||
|
supervisor_conf.each do |config|
|
||||||
|
expect(file(config)).to exist
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'passbolt directory structure' do
|
describe 'passbolt directory structure' do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue