concourse-app/concourse_worker.sh

18 lines
700 B
Bash
Raw Permalink Normal View History

2017-04-18 21:46:15 +00:00
#! /bin/bash
# This is used to debug and will not daemonize or restart
# To run this in production remove the `--rm` flag and replace with `-d --restart unless-stopped`
2017-04-20 01:23:59 +00:00
tsa_container=$(cloudron list | awk '/ci.concourse.cloudron/{print $1;}')
2017-04-18 21:46:15 +00:00
tsa_hostname=$(cloudron exec --app $tsa_container env | grep HOSTNAME | sed s/.*=//)
tsa_port=$(cloudron exec --app $tsa_container env | grep TSA_PORT | sed s/.*=//)
2017-04-20 01:23:59 +00:00
sudo docker run \
2017-04-19 01:41:25 +00:00
--rm \
--privileged \
--network cloudron \
--volumes-from $tsa_container \
concourse/concourse worker \
--tsa-host $tsa_hostname \
--tsa-port $tsa_port \
--tsa-public-key /app/data/tsa_host_key.pub \
--tsa-worker-private-key /app/data/worker_key