JS assets must be generated during start-up as it fails with "Could not load database configuration. No such file" in Dockerfile.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -21,8 +21,6 @@ RUN apt-get update \
|
||||
&& rm -f /etc/cron.d/* \
|
||||
# Install plugin dependencies \
|
||||
&& bundle check || bundle install \
|
||||
# (for hourglass plugin) \
|
||||
&& bundle exec rake redmine:plugins:assets RAILS_ENV=production \
|
||||
&& chmod +x /pre-entrypoint.sh \
|
||||
# setting ENTRYPOINT destroys CMD so replace the entrypoint script and call it later \
|
||||
# (see bottom note in https://docs.docker.com/engine/reference/builder/#entrypoint) \
|
||||
|
||||
@@ -8,6 +8,9 @@ crontab /etc/cron.d/redmine
|
||||
|
||||
service cron start
|
||||
|
||||
# For hourglass plugin
|
||||
bundle exec rake redmine:plugins:assets RAILS_ENV=production
|
||||
|
||||
set -- /orig-entrypoint.sh "$@"
|
||||
echo Executing original Redmine "$@"
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user