1
0
mirror of https://github.com/stucki/docker-lineageos synced 2025-01-09 17:39:47 -05:00

Always connect to the same container

This commit is contained in:
Michael Stucki 2014-02-02 23:55:33 +01:00
parent b13a629954
commit 209f4af1dc

4
run.sh
View File

@ -3,9 +3,11 @@
cd $(dirname $0)
SOURCE=$(pwd)/android
CONTAINER=cyanogenmod
REPOSITORY=stucki/cyanogenmod
test -d $SOURCE || mkdir $SOURCE
docker run -v $SOURCE:/home/cmbuild/android -i -t stucki/cyanogenmod sh -c "exec >/dev/tty 2>/dev/tty </dev/tty && /bin/bash"
docker start -i $CONTAINER 2>/dev/null || docker run -v $SOURCE:/home/cmbuild/android -i -t -name $CONTAINER $REPOSITORY sh -c "exec >/dev/tty 2>/dev/tty </dev/tty && /bin/bash"
exit $?