メインコンテンツまでスキップ

バイナリファイル

ヒント

Python/Ansible/Systemd 環境のセットアップ方法については、手動インストールを参照してください!

お使いのプラットフォーム向けの *.tar.gzリリースページからダウンロードします。展開して、次のコマンドで Semaphore をセットアップします。

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

これで 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