退役SEのつれづれ日記

定年退役SEが、つれづれなる想いをしたためています。
(旧名:『システムノヲニワソト』)

[#redmine4.1.1][#plugin]redmine4.1.1でpluginの稼働検証する(その1)

2020-04-19 | サーバ設定(redmine,zabbix
4月に入って、Redmine4.1.1がリリースされたことを知り、早々にpluginの導入テストに着手。
(参考)
Redmine.JP Blog:Redmine 4.1.1, 4.0.7 リリース
 http://blog.redmine.jp/articles/4_1/redmine-4_1_1-released/

いつもの通り、コンテナに押し込めて、インストール。
サイズがかなり大きくなった。。
[hogehoge@localhost bitnami-rm411]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos7             rm4110t             417c92b2b54c        33 hours ago        3.44GB
centos7             rm3460a             e6a3e136002f        22 months ago       2.81GB
centos              centos7             e934aafc2206        2 years ago         199MB

いつものとおり、この後pluginの導入テストをするが、
苦戦するredmine_glossaryとredmine_taggingは一旦外す。
[hogehoge@container plugins]# bundle install --no-deployment --without development test postgresql sqlite
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test postgresql sqlite'`, and stop using this flag
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this
application for all non-root users on this machine.
[DEPRECATED] Your Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config set disable_multisource true`.
Your Gemfile lists the gem redmine_crm (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
・・・
Fetching rouge 3.12.0
Installing rouge 3.12.0
Bundle complete! 40 Gemfile dependencies, 70 gems now installed.
Gems in the groups development, test, postgresql and sqlite were not installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (

あれれ、ちょっと様子が違う。これは..?
始めの方の「DEPRECATED(非推奨)」は一旦脇に置くとして、最後の「I18n 1.1」の記述は何だ?
世の中、同じことにぶつかる人もいるようで、以下のサイトを参考に修正。
(参考)
mocomoの勉強部屋:【ruby on rails】bundle install時のエラー【HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.】
https://mocomo012.hatenablog.com/entry/2019/10/16/194221

[hogehoge@container htdocs]# vi ./config/environments/production.rb
  config.logger.level = Logger::WARN
  config.i18n.fallbacks = [I18n.default_locale]  <<追加
end

これでなんとかbundle installが通るようになったので、
[hogehoge@container /]# cd /opt/redmine/apps/redmine/htdocs/plugins
[hogehoge@container plugins]# ls
README                     redmine_banner        redmine_exception_handler  redmine_issues_summary_graph    redmine_theme_changer
advanced_roadmap_v2        redmine_checklists    redmine_extended_reminder  redmine_lightbox2               redmine_vividtone_my_page_blocks
progressive_projects_list  redmine_close_button  redmine_issue_extensions   redmine_logs                    redmine_work_time
redmine_absolute_dates     redmine_code_review   redmine_issue_templates    redmine_monitoring_controlling  sidebar_hide
redmine_agile              redmine_enter_cancel  redmine_issue_todo_lists   redmine_serial_number_field     view_customize
[hogehoge@container plugins]# export PATH=$PATH:/opt/redmine/ruby/bin
[hogehoge@container plugins]# export RAILS_ENV=production
[hogehoge@container plugins]# bundle exec rake --trace db:migrate
(in /opt/redmine/apps/redmine/htdocs)
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Execute db:migrate
** Invoke db:_dump (first_time)
** Execute db:_dump
** Invoke db:schema:dump (first_time)
** Invoke db:load_config
** Execute db:schema:dump
[hogehoge@container plugins]#  bundle exec rake --trace redmine:plugins:migrate
(in /opt/redmine/apps/redmine/htdocs)
・・・
== 5 ChangeCodeLimitOnViewCustomizes: migrated (0.0956s) ======================

** Invoke db:schema:dump (first_time)
** Invoke db:load_config (first_time)
** Invoke environment
** Execute db:load_config
** Execute db:schema:dump
[hogehoge@container plugins]# systemctl restart redmine

一旦、24種類のpluginはインストール終了。

  (赤字は、3.4.6稼働確認時からバージョンが変更となっているもの)
導入確認済 plugins:(3/20現在) 3.4.6導入 バージョン 4.1.0導入検証 備考、考慮点など
01 advanced_roadmap_v2 2.4.3 2.4.3★ 正常導入  https://github.com/awk-kazmin/redmine_advanced_roadmap_v2  Rails5.2対応フォーク
02 progressive_projects_list 3.0.1 4.0.0★ 正常導入  https://github.com/ergoserv/redmine-progressive-projects-list
03 redmine_absolute_dates 0.0.2 0.0.4★ 正常導入  Rails5対応バージョンリリース済
04 redmine_agile 1.4.6 1.5.3★ 正常導入  
05 redmine_banner 0.1.2 0.3.1★ 正常導入  Rails5対応バージョンリリース済
06 redmine_checklists 3.1.3 3.1.16★ 正常導入  RedmineUPから最新版のダウンロードサイトの誘導メール バージョンチェックで表示されるのは3.1.17だが、ダウンロード可能なのは3.1.16
07 redmine_close_button 0.0.8 0.0.8 正常導入  
08 redmine_code_review 0.7.0 1.0.0★ 正常導入  
09 redmine_enter_cancel 0.0.2 0.0.2 正常導入  
10 redmine_exception_handler not installed 2.0.0.devel★ 正常導入  Redmine4.0用ブランチあり  https://github.com/kou/redmine_exception_handler/tree/redmine-4.0
11 redmine_extended_reminder 0.0.1 0.0.1 正常導入  https://github.com/vividtone/redmine_extended_reminder  Rails5.2対応への修正(2種類、3カ所を修正)
12 redmine_issue_extensions 0.2.0.1 0.3.0★ 正常導入  
13 redmine_issue_templates 0.2.1 0.3.7★ 正常導入  Rails5対応バージョンリリース済
14 redmine_issue_todo_lists 1.1.2 1.3★ 正常導入  https://github.com/canidas/redmine_issue_todo_lists
15 redmine_issues_summary_graph 0.0.9 0.0.10★ 正常導入  https://github.com/suer/redmine_issues_summary_graph/tree/use-minimagick
16 redmine_lightbox2 0.4.3 0.5.1★ 正常導入  
17 redmine_logs 0.1.1 0.1.1 正常導入  
18 redmine_monitoring_controlling 0.1.1 0.1.1 正常導入  パッチが必要
19 redmine_serial_number_field 1.0.0 2.0.0★ 正常導入  
20 redmine_theme_changer not installed 0.4.0★ 正常導入  Rails5対応バージョンリリース済
21 redmine_vividtone_my_page_blocks 2017/07/05 2017/07/05 正常導入  
22 redmine_work_time 0.3.4 0.4.0★ 正常導入  
23 sidebar_hide 0.0.7 0.0.7 正常導入  
24 view_customize 1.2.2 2.5.0★ 正常導入  https://github.com/onozaty/redmine-view-customize