0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker版 gitlab-runner のinstall

Last updated at Posted at 2019-03-10

はじめに

docker版 gitlab-runner のinstall手順。
よく忘れてしまうのでメモ。
(OSはCentos7.6を利用)

インストール

gitlab-runner(latest) インストール
dockerが動いている環境で以下を実行

# docker run -d --name gitlab-runner --restart always \
>   -v /srv/gitlab-runner/config:/etc/gitlab-runner \
>   -v /var/run/docker.sock:/var/run/docker.sock \
>   gitlab/gitlab-runner:latest

Unable to find image 'gitlab/gitlab-runner:latest' locally
Trying to pull repository docker.io/gitlab/gitlab-runner ...
latest: Pulling from docker.io/gitlab/gitlab-runner

登録

インストールされたgitlab-runnerコンテナをGitLabサーバに登録

# docker exec -it gitlab-runner gitlab-runner register

Running in system-mode.
(あとは表示にしたがって必要項目を入力していく)

登録時に入力求められるTokenは、GitLabのダッシュボード(設定 > CI/CD)から確認する
例)※Tokenはリセット済み
スクリーンショット 2019-03-10 9.23.08.png

ref

以下が公式ドキュメント
https://docs.gitlab.com/runner/install/docker.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?