ux-upgrade patch temporarily DB access.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-03-23 19:22:57 +01:00
parent 231d22edfb
commit 70c1a610fe
2 changed files with 19 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
FROM redmine:5-bullseye
COPY plugins/ plugins/
COPY patches/project_identifier.patch ./
COPY patches/* ./
COPY pre-entrypoint.sh /
ENV REDMINE_SEND_REMINDERS_DAYS=0 \
@@ -29,7 +29,8 @@ 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; \
cp plugins/000_redmine_x_ux_upgrade/init.rb plugins/000_redmine_x_ux_upgrade/init.rb.orig; \
git apply ux_upgrade-disable_db.patch; \
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; \
@@ -44,4 +45,4 @@ RUN set -eux; \
mv /pre-entrypoint.sh /docker-entrypoint.sh; \
# Apply patches
git apply project_identifier.patch; \
rm project_identifier.patch
rm *.patch

View File

@@ -0,0 +1,15 @@
--- a/plugins/000_redmine_x_ux_upgrade/init.rb
+++ b/plugins/000_redmine_x_ux_upgrade/init.rb
@@ -37,10 +37,10 @@ require "#{plugin_path}/lib/redmine_x_ux_upgrade"
FileUtils.cp_r("#{plugin_path}/assets/themes", "#{Rails.root}/public")
# Set redmine theme to 'redminex_theme'
-RedmineXUxUpgrade.set_redmine_x_theme
+#RedmineXUxUpgrade.set_redmine_x_theme
# Save additional default settings if this is upgrade of older version # for Redmine v5.0.2
-RedmineXUxUpgrade.save_default_settings
+#RedmineXUxUpgrade.save_default_settings
RedmineApp::Application.routes.prepend do
scope '/home' do