Install and set up Gitlab CI Runner to use Docker
2016-03-29 03:15
806 查看
GitLab CI allows you to use Docker Engine to build and test docker-based projects.
We will follow the official guide: Using Docker Build
Here we choose the first method "Use shell executor".
1.Install GitLab Runner:
Here we install gitlab-ci-multi-runner on linux. Follow this official guide until "Register the runner": Install using
official GitLab repositories
2. Register the runner:
Using Docker Build is trying to register the runner in non-interactive way. Somehow it doesn't work. Here we follow the registration step in Install
using official GitLab repositories, installing in interactive way.
As we can see from the above picture, we will need to provide coordinator URL and token. They can be found in your repository at "Settings" -> "Runners":
After registering, we should be able to see the runner in "Settings" -> "Runners":
3. Install docker, set up privileges.
Just continue following Using Docker Build
4. Register multiple runners and make them run builds concurrently.
The runner config file is located at:
/etc/gitlab-runner/config.toml
The concurrent is default to 1. Here we use 3 concurrent runners, so we set it to 3.
We will follow the official guide: Using Docker Build
Here we choose the first method "Use shell executor".
1.Install GitLab Runner:
Here we install gitlab-ci-multi-runner on linux. Follow this official guide until "Register the runner": Install using
official GitLab repositories
2. Register the runner:
Using Docker Build is trying to register the runner in non-interactive way. Somehow it doesn't work. Here we follow the registration step in Install
using official GitLab repositories, installing in interactive way.
As we can see from the above picture, we will need to provide coordinator URL and token. They can be found in your repository at "Settings" -> "Runners":
After registering, we should be able to see the runner in "Settings" -> "Runners":
3. Install docker, set up privileges.
Just continue following Using Docker Build
4. Register multiple runners and make them run builds concurrently.
The runner config file is located at:
/etc/gitlab-runner/config.toml
The concurrent is default to 1. Here we use 3 concurrent runners, so we set it to 3.
相关文章推荐
- Docker常用命令
- 如何安装Docker
- Docker使用Dockerfile构建镜像
- Self-Paced Training (3) - Docker Operations
- docker(2)
- 技术干货 | 初次微服务体验:从Docker容器农场说起
- docker 文件位置[备忘]
- docker: useful commands
- 玩转docker镜像和镜像构建
- 3分钟,9个Q&A让你快速知道Docker到底是什么
- [读书笔记]Docker与容器安全
- (原) ubuntu下用pycharm2016.1专业版配docker编译环境(docker Interpreter)
- 自定义Docker容器的 hostname
- 让Docker功能更强大的10个开源工具
- Docker —— 从入门到实践
- Self-Paced Training (2) - Docker Fundamentals
- docker
- Docker使用笔记
- 使用Docker在Ubuntu下安装Skype报错
- Dockerfile