cicd

1
2
3
4
5
6
7
8
9
10
11
12
13
sudo docker run -d --name gitlab-runner-elk --restart always \
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
gitlab/gitlab-runner:latest
sudo docker exec -it gitlab-runner-elk gitlab-ci-multi-runner register -n \
--url http://git.intra.weibo.com/ \
--registration-token 2Kpu1BYH1_Jq4QigaTAe \
--executor docker \
--description "docker_elk_runner" \
--docker-image "docker:stable" \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock