Mercurial > sat_docs
diff docker/libervia_cont.sh @ 93:70f65a6b3392
docker (libervia_cont): added SAT_CONT_DK_EXTRA environment variable for specifying extra options when running containers
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 24 Feb 2016 15:42:48 +0100 |
parents | 5a0ed7f94ab8 |
children | 33f9610480ea |
line wrap: on
line diff
--- a/docker/libervia_cont.sh Wed Feb 24 15:23:38 2016 +0100 +++ b/docker/libervia_cont.sh Wed Feb 24 15:42:48 2016 +0100 @@ -23,6 +23,7 @@ # SAT_CONT_TLS_DIR for TLS certificates directory # SAT_CONT_DOMAIN for the host name # SAT_CONT_BACKUP_DIR is the directory where tar.gz backup will be written +# SAT_CONT_DK_EXTRA is used for extra options (used with all containers but sat_data) CONTAINERS="prosody sat_pubsub salut sat libervia" @@ -244,7 +245,7 @@ *) printf "Unkown container $CONT\n"; exit 1 esac printf "Launching $CONT... " - docker_id=$(docker run $OPTS $ACCOUNT/$CONT 2>&1) + docker_id=$(docker run $OPTS $SAT_CONT_DK_EXTRA $ACCOUNT/$CONT 2>&1) if [ $? -eq 0 ]; then printf "OK ($docker_id)\n" else