Adapt docker start scripts to new directory structure.

This commit is contained in:
Andrey Antukh
2016-11-20 20:40:30 +01:00
parent 249db6bd4b
commit 661e2d821e
2 changed files with 4 additions and 16 deletions

View File

@@ -14,27 +14,15 @@ function build_image {
sudo docker build --rm=true -t $IMGNAME:$REV docker/
}
function initialize {
if [ ! -e ./uxbox ]; then
git clone git@github.com:uxbox/uxbox.git
fi
if [ ! -e ./uxbox-backend ]; then
git clone git@github.com:uxbox/uxbox-backend.git
fi
}
function run_image {
kill_container
initialize
if ! $(sudo docker images|grep $IMGNAME |grep -q $REV); then
build_image
fi
sudo docker run -ti \
-v `pwd`/uxbox:/home/uxbox/uxbox \
-v `pwd`/uxbox-backend:/home/uxbox/uxbox-backend \
-v `pwd`:/home/uxbox/uxbox \
-v $HOME/.m2:/home/uxbox/.m2 \
-v $HOME/.gitconfig:/home/uxbox/.gitconfig \
-p 3449:3449 -p 6060:6060 -p 9090:9090 $IMGNAME:$REV