#author("2024-05-06T05:43:53+00:00","default:hotate","hotate") #author("2024-05-06T08:15:52+00:00","default:hotate","hotate") #contents &tag(構成管理,Subversion,Git,Mercurial); * 情報 [#d12a78f6] - https://www.scm-manager.org - https://github.com/scm-manager/scm-manager ** v3.0 [#c741175f] - [[SCM-Manager 3.0.0 | SCM-Manager>https://scm-manager.org/blog/posts/2024-01-16-scm-manager-3-0-0/]] Because the old version of Jetty (the underlying webserver) ran out of maintenance, we finally had to upgrade Jetty to the newer version. - [[Migrate from v2 to v3 | SCM-Manager>https://scm-manager.org/docs/3.1.x/en/migrate-scm-manager-from-v2/]] While in version 2 the configuration was split into different files, environment variables and Java properties, the configuration is now stored in a single file config.yml in the conf directory of the SCM installation folder. -- コメント:[[macOS]] 14.4.1 ([[Sonoma]]) にてv3.1.0の動作を確認した。環境設定は(1) ポート番号、(2) ホームディレクトリ(既存)の変更のみで済んだ。(2024/05/06) -- コメント:[[macOS]] 14.4.1 ([[Sonoma]]) にてv3.1.0の動作を確認した。環境設定は「ポート番号」の変更のみで済んだ。既存ホームディレクトリ内の認証、設定、リポジトリがそのまま引き継がれた。(2024/05/06) -- [[Mac OS X | SCM-Manager>https://scm-manager.org/docs/3.1.x/en/installation/osx/]] Home directory SCM-Manager stores all its information in its home directory at ~/Library/Application\ Support/SCM-Manager. * インストール [#e6586b07] ** [[macOS]] [#g3bb12f4] - [[Mac OS X | SCM-Manager>https://www.scm-manager.org/docs/2.2.x/en/installation/osx/]] To install SCM-Manager on OS X we offer a Homebrew tap. - [[Homebrew]]のリポジトリが更新されてインストール出来た。(2021/11/15) -- [[SCM-Manager 2.25.0 | SCM-Manager>https://scm-manager.org/blog/posts/2021-10-22-scm-manager-2-25-0/]] - v2.46.0ではtapせずにインストール出来た。(2023/08/27) $ brew install scm-manager - %%必ずscm-manager/tapを追加すること。デフォルトでもscm-managerは利用できるが、バージョンが古いことがある。(2022/05/01)%% To install SCM-Manager with homebrew we had to add the SCM-Manager tap: $ brew tap scm-manager/tap - %%[[Homebrew]]のリポジトリは更新されていないが、下記から"Generic Linux/Unix users"版をダウンロードして更新可能。(2021/07/23)%% -- %% https://github.com/scm-manager/homebrew-tap/blob/HEAD/Formula/scm-server.rb %% -- %%[[SCM-Manager 2.21.0 | SCM-Manager>https://www.scm-manager.org/blog/posts/2021-07-21-scm-manager-2-21-0/]]%% -- %%ただし、[[launchctl]]を利用して起動し、[[Homebrew]]でインストールした[[Java]](jdk@11)を利用する場合、bin/scm-server内にて環境変数を直接設定する必要がある。%% JAVA_HOME=`/usr/libexec/java_home` *** [[launchctl]] [#zb2ce794] - homebrew.mxcl.scm-manager.plist の記載例 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>homebrew.mxcl.scm-manager</string> <key>ProgramArguments</key> <array> <string>/opt/homebrew/bin/scm-server</string> <string>console</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> ** [[Windows]] [#mba37a31] - [[v2.27.0>https://scm-manager.org/blog/posts/2021-11-17-scm-manager-2-27-0/]]をインストールして、[[Windowsサービス]]の登録、起動、v1リポジトリのマイグレーション、[[LDAP]]認証に成功した。(2021/11/17) -- [[Download | SCM-Manager>https://scm-manager.org/download/2.27.0/]] 2.27.0 - (2021-11-16) *** [[Windowsサービス]] [#meb12716] - https://scm-manager.org/docs/2.47.x/en/installation/windows/#install-scm-manager Now we have to open a Terminal (PowerShell, Bash or CMD), in order to install the SCM-Manager as Windows Service. Navigate to the location of the SCM-Manager installation with the terminal and execute the following commands to install and start the service. scm-server.exe install scm-server.exe start * 設定 [#u5194bda] ** フォルダ構成 [#ee0ae115] - [[Base Directory | SCM-Manager>https://scm-manager.org/docs/2.46.x/en/administration/basedirectory/]] Mac OS X ~/Library/Application Support/SCM-Manager ** [[ログ]]出力 [#lc5396a2] - [[Logging | SCM-Manager>https://www.scm-manager.org/docs/2.46.x/en/administration/logging/]] Mac OS X ~/Library/Logs/SCM-Manager ** パスワード [#lfa149d4] - [[How to reset your admin password in SCM Manager · GitHub>https://gist.github.com/miglen/dc9341c0676029ad66b4]] Recently I had some troubles in resetting the SCM Manager admin password and here's simply how to do it. * プラグイン [#tabdaf1d] ** [[Jenkins]] [#j7bad4cc] - [[sdorra / scm-manager / wiki / jenkins-plugin — Bitbucket>https://bitbucket.org/sdorra/scm-manager/wiki/jenkins-plugin]] The jenkins plugin will ping your Jenkins CI server when a new commit is pushed to SCM-Manager. * CLI Client [#e1eee626] - [[CLI Client | SCM-Manager>https://scm-manager.org/docs/2.47.x/en/user/cli/]] Usage With scm --help the existing commands can be displayed on the top level. Otherwise the CLI client largely documents itself. For this purpose, the --help option can be appended at any point. -- コメント: "scm generate-completion"でコマンド内容を確認できる。各コマンドのヘルプは"-h"を付ければ良い。[[バックアップ]]用に"export"コマンドが欲しいところだが、残念ながら見当たらない。(2023/10/22) $ scm repo -h $ scm repo create -h * 問題 [#f77c2d99] ** [[Mercurial]] [#ibbb37e1] - [[Python3]]では動作しない様子。(2021/07/23) -- https://github.com/scm-manager/scm-manager/issues/507 It appears that the mercurial settings is expecting python2.x (2.7?), however on arch (and likely on all in the near future?) python referes to python3.x. * 更新 [#zeb560a4] ** v2マイグレーション [#r8d3019b] - [[Migrate from v1 to v2 | SCM-Manager>https://www.scm-manager.org/docs/2.1.x/en/migrate-scm-manager-from-v1/]] When SCM-Manager starts for the first time, you have to choose how to migrate your existing repositories. -- コメント:リポジトリの移行は正常に出来た。v1向けプラグインの設定が残っていると、起動時にエラーが発生し失敗するので、設定ファイルを削除すると良い。[[Jenkins]], [[LDAP]]プラグインで発生した。(2021/11/18)