Commit 2dbf540f authored by zauberstuhl's avatar zauberstuhl

Start images with PRSHA and PRREPO env if exists

parent 6913e19b
......@@ -42,7 +42,14 @@ function get() {
# start_app "g1" "3000" "testing_diaspora:v1.0.1"
function start_app() {
docker run --name=$1 -e DATABASE=$1 -e PORT=$2 -p $2:$2 --net=host -d thefederation/$3
params=""
if [ ! -z ${PRSHA} ]; then
echo "!!!!!!! Custom build active !!!!!!!"
echo "Using repository $PRREPO"
echo "With SHA $PRSHA"
params="-e PRSHA=$PRSHA -e PRREPO=$PRREPO"
fi
docker run --name=$1 $params -e DATABASE=$1 -e PORT=$2 -p $2:$2 --net=host -d thefederation/$3
}
# stop_app "g1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment