Add new docker gitLab runner for gitlab.bsc.es #93

Closed
rarias wants to merge 1 commits from docker-gitlab-runner into old-master
Owner

Add a new gitlab runner that runs in docker but it can use the nix store of hut, so we can reuse most of the builds from there. New derivations can be persistently built by the host nix daemon as the socket is shared with the container.

I tried to isolate the network from docker so we only expose the proxy to the container, as otherwise it can communicate with other hosts in the LAN or other services running in localhost.

This runner will be used by other groups to build NixOS images.

Add a new gitlab runner that runs in docker but it can use the nix store of hut, so we can reuse most of the builds from there. New derivations can be persistently built by the host nix daemon as the socket is shared with the container. I tried to isolate the network from docker so we only expose the proxy to the container, as otherwise it can communicate with other hosts in the LAN or other services running in localhost. This runner will be used by other groups to build NixOS images.
rarias added 1 commit 2025-03-28 14:10:05 +01:00
It uses docker based on alpine and the host nix store, so we can perform
builds but isolate them from the system.
rarias requested review from arocanon 2025-03-28 14:10:13 +01:00
rarias requested review from abonerib 2025-03-28 14:10:14 +01:00
abonerib reviewed 2025-03-28 16:01:03 +01:00
@ -35,0 +80,4 @@
ProxyCommand nc -X connect -x hut:23080 %h %p
EOF
cat >> "$HOME/.ssh/known_hosts" << EOF
bscpm03.bsc.es ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM2NuSUPsEhqz1j5b4Gqd+MWFnRqyqY57+xMvBUqHYUS
Collaborator

Is this still bscpm03?

Is this still bscpm03?
rarias marked this conversation as resolved
rarias force-pushed docker-gitlab-runner from 7db60299d5 to 3c407e1af9 2025-04-03 18:24:30 +02:00 Compare
abonerib approved these changes 2025-04-08 17:37:48 +02:00
Author
Owner

Merged in edf744db8d

Merged in https://jungle.bsc.es/git/rarias/jungle/commit/edf744db8d83153f497db566933eeafa965b9f63
rarias closed this pull request 2025-04-08 17:45:01 +02:00

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rarias/jungle#93
No description provided.