1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00
docker-lineageos/run.sh

14 lines
335 B
Bash
Raw Normal View History

2014-02-02 05:52:53 -05:00
#!/bin/sh
cd $(dirname $0)
SOURCE=$(pwd)/android
2014-02-02 17:55:33 -05:00
CONTAINER=cyanogenmod
REPOSITORY=stucki/cyanogenmod
2014-02-02 05:52:53 -05:00
test -d $SOURCE || mkdir $SOURCE
2014-02-03 03:13:04 -05:00
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 && screen -s /bin/bash"
2014-02-02 05:52:53 -05:00
exit $?