Skip to content

Commit

Permalink
Merge branch 'release/v2.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlen committed Apr 17, 2018
2 parents eeded1d + 842a09a commit 733c5a4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https:/passbolt/passbolt_docker/compare/v2.0.0...HEAD)
## [Unreleased](https:/passbolt/passbolt_docker/compare/v2.0.1...HEAD)

## [2.0.2](https:/passbolt/passbolt_docker/compare/v2.0.1...v2.0.2) - 2018-04-17

## Fixed

- Unable to load a jpeg image as avatar. [#100](https:/passbolt/passbolt_docker/issues/100)
- docker-entrypoint.sh adds email-sending-job everytime you restart the container. [#98](https:/passbolt/passbolt_docker/issues/98)

## Changed

- Removed composer binary after dependency installation.

## [2.0.1](https:/passbolt/passbolt_docker/compare/v2.0.0...v2.0.1) - 2018-04-09

Expand Down
7 changes: 5 additions & 2 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.0.1"
ARG PASSBOLT_VERSION="2.0.2"
ARG PASSBOLT_URL="https:/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz"

ARG PHP_EXTENSIONS="gd \
Expand All @@ -22,6 +22,7 @@ ARG PECL_PASSBOLT_EXTENSIONS="gnupg \

ARG PASSBOLT_DEV_PACKAGES="libgpgme11-dev \
libpng-dev \
libjpeg62-turbo-dev \
libicu-dev \
libxslt1-dev \
libmcrypt-dev \
Expand Down Expand Up @@ -50,6 +51,7 @@ RUN apt-get update \
mkdir $PHP_EXT_DIR/$i; \
curl -sSL $PECL_BASE_URL/$i | tar zxf - -C $PHP_EXT_DIR/$i --strip-components 1; \
done \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j4 $PHP_EXTENSIONS $PECL_PASSBOLT_EXTENSIONS \
&& docker-php-ext-enable $PHP_EXTENSIONS $PECL_PASSBOLT_EXTENSIONS \
&& docker-php-source delete \
Expand All @@ -72,7 +74,8 @@ RUN apt-get update \
&& chmod 664 $(find /var/www/passbolt/webroot/img/public -type f) \
&& rm /etc/nginx/sites-enabled/default \
&& apt-get purge -y --auto-remove $PASSBOLT_DEV_PACKAGES \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& rm /usr/local/bin/composer

COPY conf/passbolt.conf /etc/nginx/conf.d/default.conf
COPY conf/supervisord.conf /etc/supervisor/supervisord.conf
Expand Down
7 changes: 4 additions & 3 deletions bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ email_cron_job() {
printenv > /etc/environment
sed -i 's/=\(.*\)/="\1"/g' /etc/environment
cron_task='/etc/cron.d/passbolt_email'
echo "* * * * * su -c \"source /etc/environment ; /var/www/passbolt/bin/cake EmailQueue.sender\" -s /bin/bash www-data >> /var/log/cron.log 2>&1" >> $cron_task

crontab /etc/cron.d/passbolt_email
if [ ! -f "$cron_task" ]; then
echo "* * * * * su -c \"source /etc/environment ; /var/www/passbolt/bin/cake EmailQueue.sender\" -s /bin/bash www-data >> /var/log/cron.log 2>&1" >> $cron_task
crontab /etc/cron.d/passbolt_email
fi
}

if [ ! -f "$gpg_private_key" ] && [ ! -L "$gpg_private_key" ] || \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- 3306

passbolt:
image: passbolt/passbolt:2.0.1-pro-debian
image: passbolt/passbolt:2.0.2-pro-debian
tty: true
depends_on:
- db
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- 3306

passbolt:
image: passbolt/passbolt:2.0.1-debian
image: passbolt/passbolt:2.0.2-debian
tty: true
depends_on:
- db
Expand Down
4 changes: 2 additions & 2 deletions spec/docker_image/image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
end

describe 'php composer' do
it 'is installed' do
expect(file(composer)).to be_executable
it 'is not installed' do
expect(file(composer)).to_not exist
end
end

Expand Down

0 comments on commit 733c5a4

Please sign in to comment.