Fix grep and some docker commands

This commit is contained in:
IamTheFij 2017-04-20 01:23:59 +00:00
parent 0e2ec4a9d1
commit b3b3c9989c

View File

@ -2,12 +2,11 @@
# This is used to debug and will not daemonize or restart # 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` # To run this in production remove the `--rm` flag and replace with `-d --restart unless-stopped`
tsa_container=$(cloudron list | awk '/io.concourse.cloudron/{print $1;}') tsa_container=$(cloudron list | awk '/ci.concourse.cloudron/{print $1;}')
tsa_hostname=$(cloudron exec --app $tsa_container env | grep HOSTNAME | sed s/.*=//) 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/.*=//) tsa_port=$(cloudron exec --app $tsa_container env | grep TSA_PORT | sed s/.*=//)
docker run \ sudo docker run \
--rm \ --rm \
--name concourse_worker \
--privileged \ --privileged \
--network cloudron \ --network cloudron \
--volumes-from $tsa_container \ --volumes-from $tsa_container \