Pull the newest image before running Twister from the remote docker image

This commit is contained in:
Martin Honermeyer 2014-05-26 10:25:25 +02:00 committed by Martin Honermeyer
parent 2689a5af88
commit 9eaf6ebc3b

View File

@ -21,6 +21,8 @@ build)
run) run)
if [ $MODE == "--remote" ]; then if [ $MODE == "--remote" ]; then
IMAGE_NAME=$REMOTE_IMAGE_NAME IMAGE_NAME=$REMOTE_IMAGE_NAME
echo Pulling new version of $IMAGE_NAME
docker pull $IMAGE_NAME
fi fi
echo Running $IMAGE_NAME echo Running $IMAGE_NAME
docker run -d -p 28332:28332 -v $HOME/.twister:/root/.twister $IMAGE_NAME docker run -d -p 28332:28332 -v $HOME/.twister:/root/.twister $IMAGE_NAME