Stop on failure in Dockerfile.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Hourglass asset generation still fails.
This commit is contained in:
@@ -7,7 +7,8 @@ COPY pre-entrypoint.sh /
|
||||
ENV REDMINE_SEND_REMINDERS_DAYS=0 \
|
||||
REDMINE_SEND_REMINDERS_CRON_EXPR="0 7 * * 1-5"
|
||||
|
||||
RUN apt-get update; \
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y cron nodejs gcc make; \
|
||||
# Compile FFI module
|
||||
chmod 770 /usr/local/bundle/gems /usr/local/bundle/extensions/x86_64-linux /usr/local/bundle/extensions/x86_64-linux/3.1.0; \
|
||||
@@ -20,14 +21,14 @@ RUN apt-get update; \
|
||||
rm -f /etc/cron.daily/*; \
|
||||
rm -f /etc/cron.d/*; \
|
||||
# Install plugin dependencies
|
||||
bundle check || bundle install; \
|
||||
# For hourglass plugin
|
||||
# fill up "database.yml" with bogus entries so the redmine Gemfile will pre-install all database adapter dependencies
|
||||
echo '# the following entries only exist to force `bundle install` to pre-install all database adapter dependencies -- they can be safely removed/ignored' > ./config/database.yml; \
|
||||
for adapter in mysql2 postgresql sqlserver sqlite3; do \
|
||||
echo "$adapter:" >> ./config/database.yml; \
|
||||
echo " adapter: $adapter" >> ./config/database.yml; \
|
||||
done; \
|
||||
bundle check || bundle install; \
|
||||
# For hourglass plugin
|
||||
bundle exec rake redmine:plugins:assets RAILS_ENV=production; \
|
||||
rm ./config/database.yml; \
|
||||
chmod +x /pre-entrypoint.sh; \
|
||||
|
||||
Reference in New Issue
Block a user