LoginSignup
2
3

More than 5 years have passed since last update.

[メモ]CentOS7にGitlab-runnerとDockerを構築

Last updated at Posted at 2018-01-26

Docker のインストール

1. 必要なパッケージのインストール

$ sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

2. DockerCE リポジトリの追加

$ sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

3. インストール

$ sudo yum install docker-ce

4. Docker 起動

$ sudo systemctl start docker
$ sudo docker run hello-world

GitLab Runner

1. Gitlab 公式リポジトリの追加

$ curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash

2. 最新バージョンのGitlab Runner のインストール

$ yum install gitlab-runner

3. GitlabRunnerの登録

$ gitlab-runner register
# 必要な情報を入力していく
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