バイナリファイル
ヒント
Python/Ansible/Systemd 環境のセットアップ方法については、手動インストールを参照してください!
お使いのプラットフォーム向けの *.tar.gz をリリースページからダウンロードします。展開して、次のコマンドで Semaphore をセットアップしま す。
- Linux (x64)
- Linux (ARM64)
- Windows (x64)
wget https://github.com/semaphoreui/semaphore/releases/download/v2.17.15/semaphore_2.17.15_linux_amd64.tar.gz
tar xf semaphore_2.17.15_linux_amd64.tar.gz
./semaphore setup
wget https://github.com/semaphoreui/semaphore/releases/download/v2.17.15/semaphore_2.17.15_linux_arm64.tar.gz
tar xf semaphore_2.17.15_linux_arm64.tar.gz
./semaphore setup
Invoke-WebRequest `
-Uri ("https://github.com/semaphoreui/semaphore/releases/" +
"download/v2.17.15/semaphore_2.17.15_windows_amd64.zip") `
-OutFile semaphore.zip
Expand-Archive -Path semaphore.zip -DestinationPath ./
./semaphore setup
これで Semaphore を起動できます。
./semaphore server --config=./config.json
Semaphore には次の URL からアクセスできます: https://localhost:3000。
サービスとして実行する
より詳しい情報については、Systemd サービスの詳細ドキュメントを参照してください。
パッケージマネージャーまたはバイナリファイルのダウンロードで Semaphore をインストールした場合は、Semaphore サービスを手動で作成する必要があります。
systemd のサービスファイルを作成します。
/path/to/semaphore と /path/to/config.json は、お使いの semaphore と設定ファイルのパスに置き換えてください。
sudo cat > /etc/systemd/system/semaphore.service <<EOF
[Unit]
Description=Semaphore Ansible
Documentation=https://github.com/semaphoreui/semaphore
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/path/to/semaphore server --config=/path/to/config.json
SyslogIdentifier=semaphore
Restart=always
RestartSec=10s
[Install]
WantedBy=multi-user.target
EOF
Semaphore サービスを起動します。
sudo systemctl daemon-reload
sudo systemctl start semaphore
Semaphore サービスの状態を確認します。
sudo systemctl status semaphore
Semaphore サービスを自動起動にするには、次を実行します。
sudo systemctl enable semaphore