LoginSignup
2
3

More than 5 years have passed since last update.

GitLab on DockerのGitLab-Runnerの設定手順

Posted at

shared runner登録

registration tokenの確認

Screenshot from 2018-02-19 11-31-54.png

gitlab-runner登録コマンドの実行

入力
docker exec -it docker_gitlab-runner_1 gitlab-runner register
出力
Running in system-mode.                            

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab 

Please enter the gitlab-ci token for this runner:


Please enter the gitlab-ci description for this runner:
[c75554f46727]: docker_gitlab-runner_1

Please enter the gitlab-ci tags for this runner (comma separated):
shell,shared

Whether to run untagged builds [true/false]:
[false]: 

Whether to lock the Runner to current project [true/false]:
[true]: 

Registering runner... succeeded                     runner=
Please enter the executor: parallels, docker-ssh+machine, kubernetes, docker, docker-ssh, virtualbox, docker+machine, shell, ssh:
shell

Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!

gitlab-runner登録結果の確認

Screenshot from 2018-02-19 11-32-12.png

specific runner登録

registration tokenの確認

Screenshot from 2018-02-19 14-58-53.png

gitlab-runner登録コマンドの実行

入力
docker exec -it docker_gitlab-specific-runner_1 gitlab-runner register
出力
Running in system-mode.                            

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab

Please enter the gitlab-ci token for this runner:


Please enter the gitlab-ci description for this runner:
[e753bf486618]: docker_gitlab-specific-runner_1

Please enter the gitlab-ci tags for this runner (comma separated):
shell,shared

Whether to run untagged builds [true/false]:
[false]: 

Whether to lock the Runner to current project [true/false]:
[true]: 

Registering runner... succeeded                     runner=
Please enter the executor: ssh, docker+machine, docker-ssh+machine, docker, docker-ssh, parallels, shell, virtualbox, kubernetes:
shell

Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! 

gitlab-runner登録結果の確認

Screenshot from 2018-02-19 15-11-12.png

2
3
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
2
3