fixed database

This commit is contained in:
André Bauer 2018-06-12 13:02:20 +02:00 committed by GitHub
parent 4799668e49
commit b78ff40329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ RUN groupadd -g 1000 ${ZAMMAD_USER} \
&& cd ${ZAMMAD_TMP_DIR} \ && cd ${ZAMMAD_TMP_DIR} \
&& bundle install --without test development mysql \ && bundle install --without test development mysql \
&& contrib/packager.io/fetch_locales.rb \ && contrib/packager.io/fetch_locales.rb \
&& sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: zammad-postgresql\n#g' < config/database.yml.pkgr > config/database.yml \ && sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: zammad-postgresql\n#g' < contrib/packager.io/database.yml.pkgr > config/database.yml \
&& sed -i '/# Use a different logger for distributed setups./a \ \ config.logger = Logger.new(STDOUT)' config/environments/production.rb \ && sed -i '/# Use a different logger for distributed setups./a \ \ config.logger = Logger.new(STDOUT)' config/environments/production.rb \
&& sed -i 's/.*scheduler_\(err\|out\).log.*//g' script/scheduler.rb \ && sed -i 's/.*scheduler_\(err\|out\).log.*//g' script/scheduler.rb \
&& bundle exec rake assets:precompile \ && bundle exec rake assets:precompile \