Skip to content

Commit

Permalink
start a concourse worker
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 26, 2020
1 parent 6c67924 commit 7b9adfe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
@@ -1 +1,2 @@
use nix
PATH="$(pwd)/.bin:$PATH"
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
/.bin/fly
/gitea/backups-*.key
/gitea/concourse_password
/gitea/result
Expand Down
13 changes: 13 additions & 0 deletions gitea/configuration.nix
Expand Up @@ -237,6 +237,19 @@ in {
CONCOURSE_POSTGRES_DATABASE = "concourse";
};
};

concourse-worker = {
image = "${concourse-image}";
cmd = [ "worker" ];
ports = [ "7777:7777" "7788:7788" ];
extraDockerOptions = [ "--privileged" "--link=concourse-web" ];
volumes = [ "/home/concourse:/home/concourse:ro" ];
environment = {
CONCOURSE_TSA_HOST = "concourse-web:2222";
CONCOURSE_TSA_PUBLIC_KEY = "/home/concourse/tsa_host_key.pub";
CONCOURSE_TSA_WORKER_PRIVATE_KEY = "/home/concourse/worker_key";
};
};
};

## backups
Expand Down

0 comments on commit 7b9adfe

Please sign in to comment.