Skip to content

Instantly share code, notes, and snippets.

@RaghavSood
Created July 20, 2020 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaghavSood/774d1cf4c5ebb9f22bfe837543826a3f to your computer and use it in GitHub Desktop.
Save RaghavSood/774d1cf4c5ebb9f22bfe837543826a3f to your computer and use it in GitHub Desktop.
{pkgs ? import<nixpkgs>, config, ...}: {
docker-containers."drone-agent-1" = {
image = "drone/drone-runner-docker:1";
environment = {
"DRONE_LOGS_DEBUG" = "true";
"DRONE_LOGS_TEXT" = "true";
"DRONE_LOGS_PRETTY" = "false";
"DRONE_LOGS_COLOR" = "false";
"DRONE_RPC_HOST" = "drone.example.com";
"DRONE_RPC_PROTO" = "https";
"DRONE_RPC_SECRET" = "secret";
"DRONE_RUNNER_CAPACITY" = "3";
"DRONE_RUNNER_NAME" = "drone-agent-1";
};
volumes = [ "/var/run/docker.sock:/var/run/docker.sock" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment