Last active
May 2, 2018 00:08
-
-
Save nicobytes/8e9f17699d8992371eda65fba5442f02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim ~/.ssh/config | |
Host name | |
HostName xxxx | |
Port 22 | |
User root | |
IdentityFile ~/.ssh/your_key | |
ssh name | |
Docker in ubuntu | |
for find docker port | |
netstat -tunlp | |
for init docker | |
docker swarm init --advertise-addr x.x.x.x:port | |
docker node ls | |
- https://www.digitalocean.com/community/tutorials/how-to-set-up-continuous-integration-pipelines-with-gitlab-ci-on-ubuntu-16-04 | |
- https://docs.gitlab.com/runner/commands/#gitlab-runner-list | |
- https://github.com/tiangolo/full-stack/blob/master/docker-swarm-cluster-deploy.md | |
docker service ls | |
gitlab-runner \ | |
register -n \ | |
--name "Local Docker Runner" \ | |
--executor docker \ | |
--docker-image docker:latest \ | |
--docker-volumes /var/run/docker.sock:/var/run/docker.sock \ | |
--url https://url \ | |
--registration-token xxxx \ | |
--tag-list local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment