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
$ sudo mkdir -p /etc/systemd/system/docker.service.d/ | |
$ sudo vi /etc/systemd/system/docker.service.d/http-proxy.conf | |
$ sudo vi /etc/systemd/system/docker.service.d/https-proxy.conf |
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
[Service] | |
Environment="HTTPS_PROXY=http://your-proxy:your-proxy-port" "NO_PROXY=localhost,127.0.0.1,*.your.localnet" |
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
$ sudo systemctl daemon-reload | |
$ sudo systemctl restart docker |
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
$ systemctl show - property=Environment docker | |
Environment=HTTP_PROXY=http://your-proxy:your-proxy-port/ NO_PROXY=localhost,127.0.0.1,*.your.localnet HTTPS_PROXY=http://your-proxy:your-proxy-port/ |
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
sudo date "+%Y%m%d %T" -s "20180801 21:43:32" | |
20180801 21:43:32 |
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
$ docker run -d - name arm-runner \ | |
-v $(pwd)/.runner:/etc/gitlab-runner \ | |
- restart=always \ | |
klud/gitlab-runner | |
Unable to find image 'klud/gitlab-runner:latest' locally | |
latest: Pulling from klud/gitlab-runner | |
95d54dd4bdad: Pull complete | |
72bf7d76c392: Pull complete | |
2fccc182bcc6: Pull complete |
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
$ docker run -d - name arm-runner - restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v $(pwd)/.runner:/etc/gitlab-runner \ | |
klud/gitlab-runner | |
021a78260a8adcdabacd1f00e9885348a3462cb674617901d00d881c702ef087 | |
$ |
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
$ docker exec -it arm-runner gitlab-runner register | |
Running in system-mode. | |
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): | |
https://gitlab.com/ | |
Please enter the gitlab-ci token for this runner: | |
the_token_that_is_yours_and_yours_alone | |
Please enter the gitlab-ci description for this runner: | |
[021a78260a8a]: Raspberry Pi 3B+ Runner (Hypriot) | |
Please enter the gitlab-ci tags for this runner (comma separated): |
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
$ docker exec -it arm-runner \ | |
gitlab-runner register -n \ | |
- url https://gitlab.com/ \ | |
- registration-token the_token_that_is_yours_and_yours_alone \ | |
- executor docker \ | |
- description "Raspberry Pi 3B+ Runner (Hypriot)" \ | |
- docker-image "klud/docker:17.06.2" \ | |
- tag-list "ARM" \ | |
- docker-privileged | |
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
Cannot connect to the Docker daemon. Is the docker daemon running on this host?. | |
Running with gitlab-runner 11.1.0 (081978aa) | |
on Raspberry Pi 3B+ Runner (Hypriot) dca49eeb | |
Using Docker executor with image docker … | |
Pulling docker image gitlab/gitlab-runner-helper:arm-081978aa … | |
Using docker image sha256:4de44d1f76654c5a9032c4e26bc19c3b559ef1f617ab21738869b007f09b9f15 for gitlab/gitlab-runner-helper:arm-081978aa … | |
Pulling docker image docker … | |
Using docker image sha256:b2ff6f46b64f84f5ddbc5216f8931dfd1c0daa7bc37484d9f8b6240ebf3e6643 for docker … | |
Running on runner-dca49eeb-project-17323-concurrent-0 via 021a78260a8a… | |
Cloning repository… |