Commit cfdff929 authored by JooHan Hong's avatar JooHan Hong

gitlab-runner, init1

parent 8b019929
Pipeline #5143 passed with stages
in 2 seconds
...@@ -34,30 +34,41 @@ Specific Runner를 통해 Job을 수행하는 것이다. ...@@ -34,30 +34,41 @@ Specific Runner를 통해 Job을 수행하는 것이다.
## GitLAB Runner Install ## GitLAB Runner Install
- redhat 계열 - **redhat 계열**
```bash ```bash
# curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash # curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
...중략
# yum install gitlab-runner # yum install gitlab-runner
# gitlab-runner register
Runtime platform arch=amd64 os=linux pid=3037 revision=ac8e767a version=12.6.0
Running in system-mode.
``` ```
- Debian 계열 - **Debian 계열**
```bash
# curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | bash
...중략
# apt install gitlab-runner
## GitLAB Runner Register ```
## GitLAB Runner Register (Nodes)
GitLab Runner 패키지를 설치했으면, 다음과 같이 등록(register)을 수행해야 한다.
```bash ```bash
# gitlab-runner register
Runtime platform arch=amd64 os=linux pid=3037 revision=ac8e767a version=12.6.0
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://gitlab.hongsnet.net https://gitlab.hongsnet.net
Please enter the gitlab-ci token for this runner: Please enter the gitlab-ci token for this runner:
M4y6veuzG2VG_nH7ZSdh XXXXXXXXX
Please enter the gitlab-ci description for this runner: Please enter the gitlab-ci description for this runner:
[TB2.hongsnet.net]: [TB2.hongsnet.net]:
Please enter the gitlab-ci tags for this runner (comma separated): Please enter the gitlab-ci tags for this runner (comma separated):
...@@ -68,8 +79,17 @@ shell ...@@ -68,8 +79,17 @@ shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
``` ```
Token의 정보는 GitLAB에서 확인할 수 있다.
> 프로젝트 -> Settings -> CI/CD -> Runners 이동
![runner_gitlab](./images/gitlab-runner_lab.png)
## GitLAB Runner Register
위와 같이 Runner가 등록되었으면, 다음과 같은 현황을 확인할 수 있다.
![runner_register](./images/gitlab-runner.png)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment