このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
最近の更新
今回はGitLab RunnerのexecutorにDockerを採用するので、まずDockerをインストールして起動しておきます。
sudo yum install -y docker sudo systemctl enable docker sudo systemctl start docker
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 sudo chmod +x /usr/local/bin/gitlab-runner sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash sudo /usr/local/bin/gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner sudo systemctl enable gitlab-runner sudo systemctl start gitlab-runner
gitlab_ci_token=StsS2RyM8H1XXXXsAA
gitlab-runner register \
--url https://gitlab.hogehoeg.com/ \
--registration-token "$gitlab_ci_token" \
--name gitlab-runner \
--tag-list gitlab-runner \
--executor docker
docker run -d -it --name=test-containter python:3.6.6 bash
docker exec -it test-containter bash
pip install --upgrade pip
root@1e012148cd30:/# exit
docker commit test-containter python:3.6.6
docker stop test-containter docker rm test-containter