NixOS module for a drone ci runner in docker #147
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: pub-solar/os#147
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/add-module-to-run-kvm-capable-drone-runner-in-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add module to run a drone exec runner within a docker container as user process by still providing kvm support
@ -0,0 +43,4 @@
in
{
options.pub-solar.docker-ci-runner = {
enable = lib.mkEnableOption "Enables a docker container running a drone exec runner as unprivileged user.";
Where can I find the mentioned systemd service, or did I miss something?
Haha kinda misleading. I will reword this. But a docker container is created and for that NixOS adds a docker-drone-ci-runner.service.
@ -0,0 +36,4 @@
cp -a /run/vars /run/runtime-vars
env | grep "DRONE" >> /run/runtime-vars
su - -s /bin/bash build sh -c "/usr/local/bin/drone-runner-exec daemon /run/runtime-vars"
Is this meant to be the same
vars
as in line 93?/run/runtime-vars
vs./run/vars
?Ah, read two lines above, nvm :D
@ -0,0 +56,4 @@
nixCacheLocation = lib.mkOption {
description = ''
Location of nix cache that is shared between builds
'';
We should have a default here
Ack
@ -0,0 +69,4 @@
};
runnerVarsFile = lib.mkOption {
description = ''
I'd discuss age encryption here.
It is not necessarily age. It just requires a file to be used for vars which can also be provied like this
LGTM
@ -0,0 +43,4 @@
in
{
options.pub-solar.docker-ci-runner = {
enable = lib.mkEnableOption "Enables a docker container running a drone exec runner as unprivileged user.";
Where can I find the mentioned systemd service, or did I miss something?
Haha kinda misleading. I will reword this. But a docker container is created and for that NixOS adds a docker-drone-ci-runner.service.
a1cc9ea05a
to25ad234f2a