From f2c503bdb01d18c92127eb503fc0b1a09140a676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Thu, 23 Mar 2023 19:08:15 +0100 Subject: [PATCH] Prevent ux-upgrade plugin to temporarily connect to the database. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9f90976..5c13348 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,12 +29,14 @@ RUN set -eux; \ done; \ bundle check || bundle install; \ # For hourglass plugin + mv plugins/000_redmine_x_ux_upgrade/init.rb plugins/000_redmine_x_ux_upgrade/init.rb.orig echo Hourglass::Assets.compile|RAILS_ENV=mysql2 rails console; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=mysql2 NAME=redmine_hourglass; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=postgresql NAME=redmine_hourglass; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=sqlserver NAME=redmine_hourglass; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=sqlite3 NAME=redmine_hourglass; \ rm ./config/database.yml; \ + mv plugins/000_redmine_x_ux_upgrade/init.rb.orig plugins/000_redmine_x_ux_upgrade/init.rb 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)