-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
748 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
spec | ||
.git | ||
.github | ||
.editorconfig | ||
.gitignore | ||
Gemfile | ||
Gemfile.lock | ||
Rakefile | ||
*.md | ||
*.yml | ||
scripts | ||
env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
FROM php:5-fpm | ||
FROM php:7-fpm | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
ENV PASSBOLT_VERSION 1.6.10 | ||
ENV PASSBOLT_URL https://github.com/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz | ||
ARG PASSBOLT_VERSION="2.0.0" | ||
ARG PASSBOLT_URL="https://github.com/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz" | ||
|
||
ARG PHP_EXTENSIONS="gd \ | ||
intl \ | ||
pdo_mysql \ | ||
xsl" | ||
|
||
|
||
ARG PHP_EXTENSIONS="gd \ | ||
intl \ | ||
pdo_mysql \ | ||
mcrypt \ | ||
xsl" | ||
|
||
ARG PECL_PASSBOLT_EXTENSIONS="gnupg \ | ||
redis" | ||
redis \ | ||
mcrypt" | ||
|
||
ARG PASSBOLT_DEV_PACKAGES="libgpgme11-dev \ | ||
libpng-dev \ | ||
libicu-dev \ | ||
libxslt1-dev \ | ||
libmcrypt-dev \ | ||
unzip \ | ||
|
@@ -31,7 +38,6 @@ RUN apt-get update \ | |
gnupg \ | ||
libgpgme11 \ | ||
libmcrypt4 \ | ||
libicu-dev \ | ||
mysql-client \ | ||
supervisor \ | ||
netcat \ | ||
|
@@ -60,15 +66,16 @@ RUN apt-get update \ | |
&& curl -sSL $PASSBOLT_URL | tar zxf - -C . --strip-components 1 \ | ||
&& composer install -n --no-dev --optimize-autoloader \ | ||
&& chown -R www-data:www-data . \ | ||
&& chmod 775 $(find /var/www/passbolt/app/tmp -type d) \ | ||
&& chmod 664 $(find /var/www/passbolt/app/tmp -type f) \ | ||
&& chmod 775 $(find /var/www/passbolt/app/webroot/img/public -type d) \ | ||
&& chmod 664 $(find /var/www/passbolt/app/webroot/img/public -type f) \ | ||
&& chmod 775 $(find /var/www/passbolt/tmp -type d) \ | ||
&& chmod 664 $(find /var/www/passbolt/tmp -type f) \ | ||
&& chmod 775 $(find /var/www/passbolt/webroot/img/public -type d) \ | ||
&& 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/* | ||
|
||
COPY conf/passbolt.conf /etc/nginx/conf.d/default.conf | ||
COPY conf/supervisord.conf /etc/supervisor/supervisord.conf | ||
COPY bin/docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
EXPOSE 80 443 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
source 'https://rubygems.org' | ||
|
||
group :test do | ||
gem 'docker-api' | ||
gem 'rake' | ||
gem 'serverspec' | ||
gem 'pry' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
coderay (1.1.2) | ||
diff-lcs (1.3) | ||
docker-api (1.34.0) | ||
excon (>= 0.47.0) | ||
multi_json | ||
excon (0.60.0) | ||
method_source (0.9.0) | ||
multi_json (1.12.2) | ||
net-scp (1.2.1) | ||
net-ssh (>= 2.6.5) | ||
net-ssh (4.2.0) | ||
net-telnet (0.1.1) | ||
pry (0.11.3) | ||
coderay (~> 1.1.0) | ||
method_source (~> 0.9.0) | ||
rake (12.3.0) | ||
rspec (3.7.0) | ||
rspec-core (~> 3.7.0) | ||
rspec-expectations (~> 3.7.0) | ||
rspec-mocks (~> 3.7.0) | ||
rspec-core (3.7.1) | ||
rspec-support (~> 3.7.0) | ||
rspec-expectations (3.7.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.7.0) | ||
rspec-its (1.2.0) | ||
rspec-core (>= 3.0.0) | ||
rspec-expectations (>= 3.0.0) | ||
rspec-mocks (3.7.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.7.0) | ||
rspec-support (3.7.0) | ||
serverspec (2.41.3) | ||
multi_json | ||
rspec (~> 3.0) | ||
rspec-its | ||
specinfra (~> 2.72) | ||
sfl (2.3) | ||
specinfra (2.73.0) | ||
net-scp | ||
net-ssh (>= 2.7, < 5.0) | ||
net-telnet | ||
sfl | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
docker-api | ||
pry | ||
rake | ||
serverspec | ||
|
||
BUNDLED WITH | ||
1.16.1 |
Oops, something went wrong.