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:
parent
b13a629954
commit
209f4af1dc
4
run.sh
4
run.sh
@ -3,9 +3,11 @@
|
|||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
SOURCE=$(pwd)/android
|
SOURCE=$(pwd)/android
|
||||||
|
CONTAINER=cyanogenmod
|
||||||
|
REPOSITORY=stucki/cyanogenmod
|
||||||
|
|
||||||
test -d $SOURCE || mkdir $SOURCE
|
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 $?
|
exit $?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user