ux-upgrade patch temporarily DB access.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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
|
||||
|
||||
15
patches/ux_upgrade-disable_db.patch
Normal file
15
patches/ux_upgrade-disable_db.patch
Normal 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
|
||||
Reference in New Issue
Block a user