履歴: ソフトウェア/docker上でredmineを動かす

各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 8 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます

日時タイトル文字数追加削除内容差分基準
2018/4/28 8:10:39ソフトウェア/docker上でredmineを動かす 最新版54,567+1 -1表示表示中—
2018/4/28 8:10:39ソフトウェア/docker上でredmineを動かす 54,573+14 -2表示差分選択
2018/4/27 18:09:46ソフトウェア/docker上でredmineを動かす 54,157+21 -0表示差分選択
2018/4/27 2:52:11ソフトウェア/docker上でredmineを動かす 53,656+518 -2表示差分選択
2018/4/26 8:26:28ソフトウェア/docker上でredmineを動かす 27,746+60 -0表示差分選択
2018/4/26 5:21:51ソフトウェア/docker上でredmineを動かす 25,819+51 -0表示差分基準
2018/4/25 3:35:42ソフトウェア/docker上でredmineを動かす 24,336+373 -13表示差分選択
2018/4/24 23:32:15ソフトウェア/docker上でredmineを動かす 11,340— —表示—選択

基準: ソフトウェア/docker上でredmineを動かす (2018/4/26 5:21:51) → 比較: ソフトウェア/docker上でredmineを動かす (2018/4/28 8:10:39) 最新版

@@ -647,6 +647,579 @@
Gemfile.lock VERSION bundle plugin_assets plugins.sha1 thumbnails
+* redmine_issue_templates プラグインの導入 [#i332c683]
+
+ LANG:console
+ $ docker exec -it bklan_redmine_1 bash
+ # ls
+ CONTRIBUTING.md Rakefile config extra plugins tmp
+ Gemfile app config.ru files public vendor
+ Gemfile.lock appveyor.yml db lib script
+ README.rdoc bin doc log test
+ # cd plugins/
+ # git clone git@github.com:akiko-pusu/redmine_issue_templates.git
+ # cd redmine_issue_templates/
+ # git tag
+ ...
+ 0.1.8
+ 0.1.9
+ support-basic-feature-for-rails5
+ v0.1.4.1
+ # git checkout 0.1.9
+ Note: checking out '0.1.9'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 26f9aff... Merge pull request #178 from akiko-pusu/develop
+ # cd ../..
+ # bundle exec rake redmine:plugins:migrate RAILS_ENV=production
+ Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
+ == 1 CreateIssueTemplates: migrating ==========================================
+ ...
+ == 20170317082100 AddIsDefaultToGlobalIssueTemplates: migrating ===============
+ -- add_column(:global_issue_templates, :is_default, :boolean, {:default=>false, :null=>false})
+ -> 0.0151s
+ == 20170317082100 AddIsDefaultToGlobalIssueTemplates: migrated (0.0152s) ======
+ # exit
+ $ docker-compose restart
+ Restarting bklan_redmine_1 ... done
+ Restarting bklan_postgresql_1 ... done
+
+http://localhost:10083/admin/plugins で "Redmine Issue Templates plugin" が現れていることを確認。
+
+「設定」から「テンプレート一覧 / 編集」を押すと、
+
+http://localhost:10083/global_issue_templates
+
+へ飛んで、「グローバルテンプレート」の新規作成等ができる。
+
+* logs の確認 [#y6857090]
+
+コンテナのログを確認できるらしい。
+
+ LANG:console
+ $ docker logs bklan_redmine_1
+ Initializing logdir...
+ Initializing datadir...
+ Symlinking dotfiles...
+ Installing configuration templates...
+ Configuring redmine...
+ Configuring redmine::database...
+ Configuring redmine::unicorn...
+ Configuring redmine::secret_token...
+ Configuring redmine::max_concurrent_ajax_uploads...
+ Configuring redmine::sudo_mode...
+ Configuring redmine::autologin_cookie...
+ Configuring redmine::backups...
+ Configuring nginx...
+ Configuring nginx::redmine...
+ Installing plugins...
+ Installing themes...
+ 2018-04-25 11:54:44,531 CRIT Supervisor running as root (no user in config file)
+ 2018-04-25 11:54:44,531 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
+ 2018-04-25 11:54:44,531 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
+ 2018-04-25 11:54:44,531 WARN Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
+ 2018-04-25 11:54:44,561 INFO RPC interface 'supervisor' initialized
+ 2018-04-25 11:54:44,562 CRIT Server 'unix_http_server' running without any HTTP authentication checking
+ 2018-04-25 11:54:44,562 INFO supervisord started with pid 1
+ 2018-04-25 11:54:45,564 INFO spawned: 'unicorn' with pid 226
+ 2018-04-25 11:54:45,566 INFO spawned: 'cron' with pid 227
+ 2018-04-25 11:54:45,568 INFO spawned: 'nginx' with pid 228
+ 2018-04-25 11:54:47,033 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+ 2018-04-25 11:54:47,034 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+ 2018-04-25 11:54:47,034 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+ 2018-04-26 17:20:47,139 WARN received SIGTERM indicating exit request
+ 2018-04-26 17:20:47,150 INFO waiting for cron, nginx, unicorn to die
+ 2018-04-26 17:20:47,184 INFO stopped: nginx (exit status 0)
+ 2018-04-26 17:20:47,186 INFO stopped: cron (terminated by SIGTERM)
+ 2018-04-26 17:20:50,190 INFO waiting for unicorn to die
+ 2018-04-26 17:20:51,416 INFO stopped: unicorn (exit status 0)
+ Initializing logdir...
+ Initializing datadir...
+ Symlinking dotfiles...
+ Installing configuration templates...
+ Configuring redmine...
+ Configuring redmine::database.
+ Configuring redmine::unicorn...
+ Configuring redmine::secret_token...
+ Configuring redmine::max_concurrent_ajax_uploads...
+ Configuring redmine::sudo_mode...
+ Configuring redmine::autologin_cookie...
+ Configuring redmine::backups...
+ Configuring nginx...
+ Configuring nginx::redmine...
+ Installing plugins...
+ Installing themes...
+ 2018-04-26 17:20:54,085 CRIT Supervisor running as root (no user in config file)
+ 2018-04-26 17:20:54,086 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
+ 2018-04-26 17:20:54,086 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
+ 2018-04-26 17:20:54,086 WARN Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
+ 2018-04-26 17:20:54,120 INFO RPC interface 'supervisor' initialized
+ 2018-04-26 17:20:54,120 CRIT Server 'unix_http_server' running without any HTTP authentication checking
+ 2018-04-26 17:20:54,120 INFO supervisord started with pid 1
+ 2018-04-26 17:20:55,123 INFO spawned: 'unicorn' with pid 220
+ 2018-04-26 17:20:55,124 INFO spawned: 'cron' with pid 221
+ 2018-04-26 17:20:55,126 INFO spawned: 'nginx' with pid 222
+ 2018-04-26 17:20:56,639 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+ 2018-04-26 17:20:56,639 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+ 2018-04-26 17:20:56,639 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
+
+あれ?
+
+自分で打ったコマンドはログに残ってない???
+
+ LANG:console
+ $ docker exec bklan_redmine_1 ls -l plugins
+ total 8
+ -rw-r--r-- 1 redmine redmine 31 Jan 9 04:38 README
+ drwxr-xr-x 13 root root 4096 Apr 26 17:13 redmine_issue_templates
+
+時刻的には 11:54 と 17:20 との間なのだけれど・・・
+
+ログはどこにどう保存されている?
+
+https://qiita.com/tily/items/adb433505da6c7812725
+
+ LANG:console
+ $ docker info | grep Log
+ Logging Driver: json-file
+ Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
+ WARNING: No memory limit support
+ WARNING: No swap limit support
+ WARNING: No kernel memory limit support
+ WARNING: No oom kill disable support
+ WARNING: No cpu cfs quota support
+ WARNING: No cpu cfs period support
+ $ docker inspect bklan_redmine_1 | grep LogPath
+ "LogPath": "/var/lib/docker/containers/285be0a6f5bf7ca6abcf73d510928fa24cb0f1414458b5bb7c807c6837148ab1/285be0a6f5bf7ca6abcf73d510928fa24cb0f1414458b5bb7c807c6837148ab1-json.log",
+ $ sudo cat /var/lib/docker/containers/285be0a6f5bf7ca6abcf73d510928fa24cb0f1414458b5bb7c807c6837148ab1/285be0a6f5bf7ca6abcf73d510928fa24cb0f1414458b5bb7c807c6837148ab1-json.log
+ {"log":"Initializing logdir...\n","stream":"stdout","time":"2018-04-25T02:54:40.669965042Z"}
+ {"log":"Initializing datadir...\n","stream":"stdout","time":"2018-04-25T02:54:40.683753877Z"}
+ {"log":"Symlinking dotfiles...\n","stream":"stdout","time":"2018-04-25T02:54:40.8159868Z"}
+ {"log":"Installing configuration templates...\n","stream":"stdout","time":"2018-04-25T02:54:40.840172496Z"}
+ {"log":"Configuring redmine...\n","stream":"stdout","time":"2018-04-25T02:54:40.852930473Z"}
+ {"log":"Configuring redmine::database...\n","stream":"stdout","time":"2018-04-25T02:54:43.897309785Z"}
+ {"log":"Configuring redmine::unicorn...\n","stream":"stdout","time":"2018-04-25T02:54:43.926696114Z"}
+ {"log":"Configuring redmine::secret_token...\n","stream":"stdout","time":"2018-04-25T02:54:43.955036714Z"}
+ {"log":"Configuring redmine::max_concurrent_ajax_uploads...\n","stream":"stdout","time":"2018-04-25T02:54:43.967426911Z"}
+ {"log":"Configuring redmine::sudo_mode...\n","stream":"stdout","time":"2018-04-25T02:54:43.980771831Z"}
+ {"log":"Configuring redmine::autologin_cookie...\n","stream":"stdout","time":"2018-04-25T02:54:43.996212052Z"}
+ {"log":"Configuring redmine::backups...\n","stream":"stdout","time":"2018-04-25T02:54:44.016879438Z"}
+ {"log":"Configuring nginx...\n","stream":"stdout","time":"2018-04-25T02:54:44.033014852Z"}
+ {"log":"Configuring nginx::redmine...\n","stream":"stdout","time":"2018-04-25T02:54:44.034918647Z"}
+ {"log":"Installing plugins...\n","stream":"stdout","time":"2018-04-25T02:54:44.345370055Z"}
+ {"log":"Installing themes...\n","stream":"stdout","time":"2018-04-25T02:54:44.392061213Z"}
+ {"log":"2018-04-25 11:54:44,531 CRIT Supervisor running as root (no user in config file)\n","stream":"stdout","time":"2018-04-25T02:54:44.531770749Z"}
+ {"log":"2018-04-25 11:54:44,531 WARN Included extra file \"/etc/supervisor/conf.d/nginx.conf\" during parsing\n","stream":"stdout","time":"2018-04-25T02:54:44.531800222Z"}
+ {"log":"2018-04-25 11:54:44,531 WARN Included extra file \"/etc/supervisor/conf.d/cron.conf\" during parsing\n","stream":"stdout","time":"2018-04-25T02:54:44.531871949Z"}
+ {"log":"2018-04-25 11:54:44,531 WARN Included extra file \"/etc/supervisor/conf.d/unicorn.conf\" during parsing\n","stream":"stdout","time":"2018-04-25T02:54:44.531884241Z"}
+ {"log":"2018-04-25 11:54:44,561 INFO RPC interface 'supervisor' initialized\n","stream":"stdout","time":"2018-04-25T02:54:44.562057115Z"}
+ {"log":"2018-04-25 11:54:44,562 CRIT Server 'unix_http_server' running without any HTTP authentication checking\n","stream":"stdout","time":"2018-04-25T02:54:44.562140575Z"}
+ {"log":"2018-04-25 11:54:44,562 INFO supervisord started with pid 1\n","stream":"stdout","time":"2018-04-25T02:54:44.562318181Z"}
+ {"log":"2018-04-25 11:54:45,564 INFO spawned: 'unicorn' with pid 226\n","stream":"stdout","time":"2018-04-25T02:54:45.566891232Z"}
+ {"log":"2018-04-25 11:54:45,566 INFO spawned: 'cron' with pid 227\n","stream":"stdout","time":"2018-04-25T02:54:45.566919029Z"}
+ {"log":"2018-04-25 11:54:45,568 INFO spawned: 'nginx' with pid 228\n","stream":"stdout","time":"2018-04-25T02:54:45.568444494Z"}
+ {"log":"2018-04-25 11:54:47,033 INFO success: unicorn entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-25T02:54:47.033996562Z"}
+ {"log":"2018-04-25 11:54:47,034 INFO success: cron entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-25T02:54:47.034113196Z"}
+ {"log":"2018-04-25 11:54:47,034 INFO success: nginx entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-25T02:54:47.034208459Z"}
+ {"log":"2018-04-26 17:20:47,139 WARN received SIGTERM indicating exit request\n","stream":"stdout","time":"2018-04-26T08:20:47.144340193Z"}
+ {"log":"2018-04-26 17:20:47,150 INFO waiting for cron, nginx, unicorn to die\n","stream":"stdout","time":"2018-04-26T08:20:47.150586828Z"}
+ {"log":"2018-04-26 17:20:47,184 INFO stopped: nginx (exit status 0)\n","stream":"stdout","time":"2018-04-26T08:20:47.185226634Z"}
+ {"log":"2018-04-26 17:20:47,186 INFO stopped: cron (terminated by SIGTERM)\n","stream":"stdout","time":"2018-04-26T08:20:47.1862901Z"}
+ {"log":"2018-04-26 17:20:50,190 INFO waiting for unicorn to die\n","stream":"stdout","time":"2018-04-26T08:20:50.190692043Z"}
+ {"log":"2018-04-26 17:20:51,416 INFO stopped: unicorn (exit status 0)\n","stream":"stdout","time":"2018-04-26T08:20:51.416801769Z"}
+ {"log":"Initializing logdir...\n","stream":"stdout","time":"2018-04-26T08:20:52.302093186Z"}
+ {"log":"Initializing datadir...\n","stream":"stdout","time":"2018-04-26T08:20:52.316605695Z"}
+ {"log":"Symlinking dotfiles...\n","stream":"stdout","time":"2018-04-26T08:20:52.55894422Z"}
+ {"log":"Installing configuration templates...\n","stream":"stdout","time":"2018-04-26T08:20:52.603558203Z"}
+ {"log":"Configuring redmine...\n","stream":"stdout","time":"2018-04-26T08:20:52.619022439Z"}
+ {"log":"Configuring redmine::database.\n","stream":"stdout","time":"2018-04-26T08:20:53.660223208Z"}
+ {"log":"Configuring redmine::unicorn...\n","stream":"stdout","time":"2018-04-26T08:20:53.689481008Z"}
+ {"log":"Configuring redmine::secret_token...\n","stream":"stdout","time":"2018-04-26T08:20:53.717499341Z"}
+ {"log":"Configuring redmine::max_concurrent_ajax_uploads...\n","stream":"stdout","time":"2018-04-26T08:20:53.729841755Z"}
+ {"log":"Configuring redmine::sudo_mode...\n","stream":"stdout","time":"2018-04-26T08:20:53.743083789Z"}
+ {"log":"Configuring redmine::autologin_cookie...\n","stream":"stdout","time":"2018-04-26T08:20:53.758485511Z"}
+ {"log":"Configuring redmine::backups...\n","stream":"stdout","time":"2018-04-26T08:20:53.779061466Z"}
+ {"log":"Configuring nginx...\n","stream":"stdout","time":"2018-04-26T08:20:53.795562205Z"}
+ {"log":"Configuring nginx::redmine...\n","stream":"stdout","time":"2018-04-26T08:20:53.797546173Z"}
+ {"log":"Installing plugins...\n","stream":"stdout","time":"2018-04-26T08:20:53.847613396Z"}
+ {"log":"Installing themes...\n","stream":"stdout","time":"2018-04-26T08:20:53.900312092Z"}
+ {"log":"2018-04-26 17:20:54,085 CRIT Supervisor running as root (no user in config file)\n","stream":"stdout","time":"2018-04-26T08:20:54.086123178Z"}
+ {"log":"2018-04-26 17:20:54,086 WARN Included extra file \"/etc/supervisor/conf.d/nginx.conf\" during parsing\n","stream":"stdout","time":"2018-04-26T08:20:54.086154885Z"}
+ {"log":"2018-04-26 17:20:54,086 WARN Included extra file \"/etc/supervisor/conf.d/cron.conf\" during parsing\n","stream":"stdout","time":"2018-04-26T08:20:54.08621893Z"}
+ {"log":"2018-04-26 17:20:54,086 WARN Included extra file \"/etc/supervisor/conf.d/unicorn.conf\" during parsing\n","stream":"stdout","time":"2018-04-26T08:20:54.086231501Z"}
+ {"log":"2018-04-26 17:20:54,120 INFO RPC interface 'supervisor' initialized\n","stream":"stdout","time":"2018-04-26T08:20:54.120341001Z"}
+ {"log":"2018-04-26 17:20:54,120 CRIT Server 'unix_http_server' running without any HTTP authentication checking\n","stream":"stdout","time":"2018-04-26T08:20:54.120442829Z"}
+ {"log":"2018-04-26 17:20:54,120 INFO supervisord started with pid 1\n","stream":"stdout","time":"2018-04-26T08:20:54.120689018Z"}
+ {"log":"2018-04-26 17:20:55,123 INFO spawned: 'unicorn' with pid 220\n","stream":"stdout","time":"2018-04-26T08:20:55.125563813Z"}
+ {"log":"2018-04-26 17:20:55,124 INFO spawned: 'cron' with pid 221\n","stream":"stdout","time":"2018-04-26T08:20:55.125597336Z"}
+ {"log":"2018-04-26 17:20:55,126 INFO spawned: 'nginx' with pid 222\n","stream":"stdout","time":"2018-04-26T08:20:55.126564775Z"}
+ {"log":"2018-04-26 17:20:56,639 INFO success: unicorn entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-26T08:20:56.639592517Z"}
+ {"log":"2018-04-26 17:20:56,639 INFO success: cron entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-26T08:20:56.639702028Z"}
+ {"log":"2018-04-26 17:20:56,639 INFO success: nginx entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-04-26T08:20:56.639783323Z"}
+
+ふむ。これ以上の情報は残ってないと。。。
+
+O'Reilly の Docker 本の冒頭ではコマンドログも残るような書き方がしてあったのだけれど、
+他の情報を見ていると、どうやら stdout と stderr だけがログに残るみたい。
+
+入力したコマンドが残っていれば後から dockerfile を作るときに便利だと思うのだけれど・・・
+
+* set -x しておく? [#wf051216]
+
+シェルコンソールから set -x しておくと、打ち込んだコマンドが標準エラー出力へ印字されるようになる。
+
+ LANG:console
+ $ set -x
+ $ ls
+ + ls -F --color
+ docker-compose.yml
+ $ set +x
+ + set +x
+ $ ls
+ docker-compose.yml
+
+そこで、例えば docker コンテナの .bashrc に set +x しておくと logs
+にコマンドを残せるのだけれど・・・
+
+やってみるとオートコンプリートなんかのシェルマクロも全部標準出力に出てきて非常に作業しづらい。
+
+うーむ、一長一短な感じ。
+
+* 他のプラグインも入れる [#vd5edfcc]
+
+- redmine_wiki_extensions
+
+ LANG:console
+ $ docker exec -it bklan_redmine_1 bash
+ # cd plugins/
+ # git clone https://github.com/haru/redmine_wiki_extensions.git
+ # cd redmine_wiki_extensions
+ # git tag | tail
+ redmine_wiki_extensions-0.1.5
+ redmine_wiki_extensions-0.1.5.1
+ redmine_wiki_extensions-0.2.0
+ redmine_wiki_extensions-0.2.1
+ redmine_wiki_extensions-0.2.2
+ redmine_wiki_extensions-0.2.4
+ redmine_wiki_extensions-0.2.5
+ redmine_wiki_extensions-0.2.5.1
+ redmine_wiki_extensions-0.3.0
+ redmine_wiki_extensions-0.3.1
+ # git checkout redmine_wiki_extensions-0.3.1
+ Note: checking out 'redmine_wiki_extensions-0.3.1'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 9dc86e6... fixes #655 recent macro returns wrong page name.
+ # cd ..
+ # git clone https://github.com/martin-denizet/redmine_custom_css
+ # git clone https://github.com/martin-denizet/redmine_custom_css.git
+ Cloning into 'redmine_custom_css'...
+ remote: Counting objects: 148, done.
+ remote: Total 148 (delta 0), reused 0 (delta 0), pack-reused 148
+ Receiving objects: 100% (148/148), 236.48 KiB | 508.00 KiB/s, done.
+ Resolving deltas: 100% (55/55), done.
+ # cd redmine_custom_css/
+ # git tag | tail -5
+ 0.1.3
+ 0.1.4
+ 0.1.5
+ 0.1.6
+ 0.1.7
+ # git checkout 0.1.7
+ Note: checking out '0.1.7'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 506619a... Merge branch 'release/0.1.7'. Publish 0.1.7, fixes 3.4.x compatibility. Thanks @virtualmarc
+ # git clone https://github.com/martin-denizet/redmine_custom_css.git
+ Cloning into 'redmine_custom_css'...
+ remote: Counting objects: 148, done.
+ remote: Total 148 (delta 0), reused 0 (delta 0), pack-reused 148
+ Receiving objects: 100% (148/148), 236.48 KiB | 508.00 KiB/s, done.
+ Resolving deltas: 100% (55/55), done.
+ # cd redmine_custom_css/
+ # git tag | tail -5
+ 0.1.3
+ 0.1.4
+ 0.1.5
+ 0.1.6
+ 0.1.7
+ # git checkout 0.1.7
+ Note: checking out '0.1.7'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 506619a... Merge branch 'release/0.1.7'. Publish 0.1.7, fixes 3.4.x compatibility. Thanks @virtualmarc
+ # cd ..
+ # git clone https://github.com/suer/redmine_absolute_dates
+ Cloning into 'redmine_absolute_dates'...
+ remote: Counting objects: 78, done.
+ remote: Total 78 (delta 0), reused 0 (delta 0), pack-reused 78
+ Unpacking objects: 100% (78/78), done.
+ # cd redmine_absolute_dates/
+ # git tag | tail -5
+ 0.0.2
+ 0.0.3
+ for-redmine-1.2
+ for-redmine-2.0
+ # git checkout 0.0.3
+ Note: checking out '0.0.3'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 0e414fe... Bumped: 0.0.3
+ # cd ..
+ # git clone https://github.com/bdemirkir/sidebar_hide
+ Cloning into 'sidebar_hide'...
+ remote: Counting objects: 251, done.
+ remote: Total 251 (delta 0), reused 0 (delta 0), pack-reused 251
+ Receiving objects: 100% (251/251), 101.29 KiB | 434.00 KiB/s, done.
+ Resolving deltas: 100% (89/89), done.
+ # cd sidebar_hide/
+ # git tag | tail -5
+ 0.0.4
+ 0.0.5
+ 0.0.6
+ 0.0.7
+ 0.0.8
+ # git checkout 0.0.8
+ Note: checking out '0.0.8'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 5edf9fa... Bump the version
+ # git clone https://github.com/peclik/clipboard_image_paste.git
+ Cloning into 'clipboard_image_paste'...
+ remote: Counting objects: 456, done.
+ remote: Total 456 (delta 0), reused 0 (delta 0), pack-reused 456
+ Receiving objects: 100% (456/456), 265.76 KiB | 770.00 KiB/s, done.
+ Resolving deltas: 100% (168/168), done.
+ # cd clipboard_image_paste/
+ # git tag | tail -5
+ v1.5
+ v1.6
+ v1.7
+ v1.8
+ v1.9
+ # git checkout v1.9
+ Note: checking out 'v1.9'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 761bf2c... releasing v 1.9
+ # cd ..
+ # git clone https://github.com/tkusukawa/redmine_wiki_lists.git
+ Cloning into 'redmine_wiki_lists'...
+ remote: Counting objects: 385, done.
+ remote: Total 385 (delta 0), reused 0 (delta 0), pack-reused 385
+ Receiving objects: 100% (385/385), 101.85 KiB | 861.00 KiB/s, done.
+ Resolving deltas: 100% (212/212), done.
+ # cd redmine_wiki_lists/
+ # git tag | tail -5
+ 0.0.4
+ 0.0.6
+ 0.0.7
+ 0.0.8
+ 0.0.9
+ # git checkout 0.0.9
+ Note: checking out '0.0.9'.
+
+ You are in 'detached HEAD' state. You can look around, make experimental
+ changes and commit them, and you can discard any commits you make in this
+ state without impacting any branches by performing another checkout.
+
+ If you want to create a new branch to retain commits you create, you may
+ do so (now or later) by using -b with the checkout command again. Example:
+
+ git checkout -b <new-branch-name>
+
+ HEAD is now at 4f8a726... Version 0.0.9
+ # cd ..
+ # git clone https://github.com/gatATAC/redmine_startpage
+ Cloning into 'redmine_startpage'...
+ remote: Counting objects: 109, done.
+ remote: Total 109 (delta 0), reused 0 (delta 0), pack-reused 109
+ Receiving objects: 100% (109/109), 15.52 KiB | 3.88 MiB/s, done.
+ Resolving deltas: 100% (28/28), done.
+ # git clone https://github.com/Restream/redmine_issue_checklist.git
+ Cloning into 'redmine_issue_checklist'...
+ remote: Counting objects: 251, done.
+ remote: Total 251 (delta 0), reused 0 (delta 0), pack-reused 251
+ Receiving objects: 100% (251/251), 387.03 KiB | 760.00 KiB/s, done.
+ Resolving deltas: 100% (82/82), done.
+ # cd ..
+ # bundle exec rake redmine:plugins:migrate RAILS_ENV=production
+ rake aborted!
+ LoadError: cannot load such file -- redcloth3
+ /home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
+ /home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
+ /home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
+ /home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
+ /home/redmine/redmine/plugins/redmine_wiki_extensions/init.rb:22:in `<top (required)>'
+ ...
+ # ## https://istb16.wordpress.com/2017/07/19/redmine-4-3-2%E3%81%AB%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%A7-loaderror-redcloth3-%E3%82%A8%E3%83%A9%E3%83%BC/
+ # ## によると、最新版にしなくちゃならないのかも。
+ # cd plugins/redmine_wiki_extensions
+ # git checkout master
+ Previous HEAD position was 9dc86e6... fixes #655 recent macro returns wrong page name.
+ Branch 'master' set up to track remote branch 'master' from 'origin'.
+ Switched to a new branch 'master'
+ # cd ../..
+ # bundle exec rake redmine:plugins:migrate RAILS_ENV=production
+ rake aborted!
+ NameError: uninitialized constant KbArticle
+ /home/redmine/redmine/plugins/clipboard_image_paste/lib/clipboard_image_paste/attachment_patch.rb:130:in `<top (required)>'
+ /home/redmine/redmine/plugins/clipboard_image_paste/init.rb:33:in `block in <top (required)>'
+ # cd plugins/clipboard_image_paste/
+ # git checkout master
+ Previous HEAD position was 761bf2c... releasing v 1.9
+ Switched to branch 'master'
+ Your branch is up to date with 'origin/master'.
+ # cd ../..
+ # bundle exec rake redmine:plugins:migrate RAILS_ENV=production
+ # ## うまく行った
+ # cd plugin
+ # for dir in `ls -F | grep /`; do cd $dir; echo "==== $dir"; git status; cd ..; done
+ ==== clipboard_image_paste/
+ On branch master
+ Your branch is up to date with 'origin/master'.
+
+ nothing to commit, working tree clean
+ ==== redmine_absolute_dates/
+ HEAD detached at 0.0.3
+ nothing to commit, working tree clean
+ ==== redmine_custom_css/
+ HEAD detached at 0.1.7
+ nothing to commit, working tree clean
+ ==== redmine_issue_checklist/
+ On branch master
+ Your branch is up to date with 'origin/master'.
+
+ nothing to commit, working tree clean
+ ==== redmine_issue_templates/
+ HEAD detached at 0.1.9
+ nothing to commit, working tree clean
+ ==== redmine_startpage/
+ On branch master
+ Your branch is up to date with 'origin/master'.
+
+ nothing to commit, working tree clean
+ ==== redmine_wiki_extensions/
+ On branch master
+ Your branch is up to date with 'origin/master'.
+
+ nothing to commit, working tree clean
+ ==== redmine_wiki_lists/
+ HEAD detached at 0.0.9
+ nothing to commit, working tree clean
+ ==== sidebar_hide/
+ HEAD detached at 0.0.8
+ nothing to commit, working tree clean
+ # exit
+ $ docker-compose restart
+ Restarting bklan_redmine_1 ... done
+ Restarting bklan_postgresql_1 ... done
+
+これでうまく行った。
+
+** redmine_startpage の設定 [#cec61212]
+
+トップへのアクセスを /projects/bklan へ飛ばしたい。
+
+プラグインの「設定」から、~
+http://localhost:10083/settings/plugin/redmine_startpage で設定。
+
+&ref(redmine_startpage-settings.png,,50%);
+
+あれ?
+
+&ref(redmine_startpage-error.png,border,50%);
+
+ LANG:console
+ $ docker exec -it bklan_redmine_1 bash
+ # bundle exec rake routes | grep /projects/:id\(.:format\)
+ project GET /projects/:id(.:format) projects#show
+ PATCH /projects/:id(.:format) projects#update
+ PUT /projects/:id(.:format) projects#update
+ DELETE /projects/:id(.:format) projects#destroy
+ # exit
+ $
+
+ああ、そういうことか。
+
+&ref(redmine_startpage-settings2.png,,50%);
+
+これで、http://localhost:10083/ へのアクセスが http://localhost:10083/projects/bklan
+へ飛ばされるようになった。
+
+** WikiExtention の設定 [#c83e49c1]
+
+プロジェクトの「設定」-「モジュール」で enable にする。~
+http://localhost:10083/projects/bklan/settings/modules
+
+プロジェクトの「設定」に「WikiExtention」のタブが現れる。~
+http://dora.bk.tsukuba.ac.jp:10083/projects/bklan/settings/wiki_extensions
+
+「プロジェクトメニューにタブを追加」にて、任意の Wiki ページへ飛ばすタブを作れる。
+
+* dockerfile について [#me2a79e1]
+
+- Dockerfileはなぜ複雑になるのか~
+https://qiita.com/port-development/items/8ab04aee45dc7f5f96ab ~
+~
+
+
* Redmine について [#h0c6d72a]
-Redmine.JP~
@@ -695,13 +1268,49 @@
-- View Customize - https://qiita.com/y_hokkey/items/7c02a3af319b353136d5#view-customize
-- Userbility = https://qiita.com/y_hokkey/items/7c02a3af319b353136d5#userbility
- デザインの格好良いテーマ
--- https://qiita.com/y_hokkey/items/7c02a3af319b353136d5#%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3%E3%81%AE%E6%A0%BC%E5%A5%BD%E8%89%AF%E3%81%84%E3%83%86%E3%83%BC%E3%83%9E
+-- https://qiita.com/y_hokkey/items/7c02a3af319b353136d5#%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3%E3%81%AE%E6%A0%BC%E5%A5%BD%E8%89%AF%E3%81%84%E3%83%86%E3%83%BC%E3%83%9E ~
+~
+-Redmineにプラグインを入れる~
+http://www.torutk.com/projects/swe/wiki/Redmine%E3%81%AB%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B ~
+~
-
* その他やりたいこと [#f31e6def]
- LDAP 認証
+* ちょっと脱線 [#adabba93]
+
+nginx の簡単な動かし方~
+https://github.com/nginxinc/docker-nginx/tree/590f9ba27d6d11da346440682891bee6694245f5/mainline/alpine
+
+ LANG:console
+ $ mkdir docker-nginx
+ $ mkdir html
+ $ jed default.conf
+ $ jed html/index.html
+ $ docker run -p 10080:80 \
+ -v `pwd`/default.conf:/etc/nginx/conf.d/default.conf \
+ -v `pwd`/html:/usr/share/nginx/html \
+ -d --rm \
+ nginx:mainline-alpine
+
+これで動かせた。
+
+nginx:mainline-alpine は 18M しかない非常に小さなイメージだ。
+
+php も動かすなら、
+ LANG:console
+ $ docker run --name php-server -p 9000:9000 --rm -d php:fpm-alpine
+ $ docker run --name nginx-server \
+ -p 10080:80 \
+ -v `pwd`/default.conf:/etc/nginx/conf.d/default.conf \
+ -v `pwd`/html:/usr/share/nginx/html \
+ --link php-server:php-server \
+ -d --rm \
+ nginx:mainline-alpine
+
+こんな感じかと思ったんだけど、、、まだうまく行っていない。
+
* コメント・質問 [#c57c65f7]
-#article_kcaptcha
+#article();