-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-2.5.0' into stable
- Loading branch information
Showing
6 changed files
with
15 additions
and
11 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
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
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,12 +1,11 @@ | ||
FROM ruby:2.4.2-slim-stretch | ||
MAINTAINER Bertrand Gouny <[email protected]> | ||
FROM ruby:2.4.4-slim-stretch | ||
|
||
ENV ZAMMAD_DIR /home/zammad | ||
ENV ZAMMAD_USER zammad | ||
ENV RAILS_ENV production | ||
|
||
ARG ZAMMAD_VERSION=2.4.0 | ||
ARG ZAMMAD_MD5=97deaaa33b96a1d8a356e102e493ad2a | ||
ARG ZAMMAD_VERSION=2.5.0 | ||
ARG ZAMMAD_MD5=ec239101243ab068dec361368ca1262a | ||
|
||
ARG GOSU_VERSION=1.10 | ||
|
||
|
@@ -53,7 +52,7 @@ RUN BUILD_DEPENDENCIES="git build-essential libffi-dev libpq5 libpq-dev" \ | |
&& curl -L -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ | ||
&& curl -L -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ | ||
&& export GNUPGHOME="$(mktemp -d)" \ | ||
&& gpg --recv-keys --keyserver ha.pool.sks-keyservers.net 0xB42F6819007F00F88E364FD4036A9C25BF357DD4 \ | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ | ||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \ | ||
&& rm -rf "${GNUPGHOME}" /usr/local/bin/gosu.asc \ | ||
&& chmod +x /usr/local/bin/gosu \ | ||
|
@@ -67,9 +66,9 @@ RUN BUILD_DEPENDENCIES="git build-essential libffi-dev libpq5 libpq-dev" \ | |
&& rm -rf zammad.tar.gz \ | ||
&& bundle install --without test development postgres \ | ||
&& contrib/packager.io/fetch_locales.rb \ | ||
&& sed -e 's#.*adapter: postgresql# adapter: nulldb#g' < config/database.yml.pkgr > config/database.yml \ | ||
&& sed -e 's#.*adapter: postgresql# adapter: nulldb#g' < contrib/packager.io/database.yml.pkgr > config/database.yml \ | ||
&& bundle exec rake assets:precompile \ | ||
&& sed -e 's#.*adapter: postgresql# adapter: mysql2#g' -e 's#.*database:.*# database: {{ ZAMMAD_DB_NAME }}#g' -e 's#.*username:.*# username: {{ ZAMMAD_DB_USER }}#g' -e 's#.*password:.*# password: {{ ZAMMAD_DB_PASSWORD }}\n host: {{ ZAMMAD_DB_HOST }}\n#g' < config/database.yml.pkgr > config/database.yml \ | ||
&& sed -e 's#.*adapter: postgresql# adapter: mysql2#g' -e 's#.*database:.*# database: {{ ZAMMAD_DB_NAME }}#g' -e 's#.*username:.*# username: {{ ZAMMAD_DB_USER }}#g' -e 's#.*password:.*# password: {{ ZAMMAD_DB_PASSWORD }}\n host: {{ ZAMMAD_DB_HOST }}\n#g' < contrib/packager.io/database.yml.pkgr > config/database.yml \ | ||
&& rm -r tmp/cache \ | ||
&& chown -R ${ZAMMAD_USER}:${ZAMMAD_USER} ${ZAMMAD_DIR} | ||
|
||
|