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

16 lines
459 B
Bash
Raw Normal View History

2014-02-02 11:52:53 +01:00
#!/bin/sh
cd $(dirname $0)
SOURCE=$(pwd)/android
2014-02-02 23:55:33 +01:00
CONTAINER=cyanogenmod
REPOSITORY=stucki/cyanogenmod
2014-02-02 11:52:53 +01:00
2014-02-16 12:50:24 +01:00
# Create a shared folder which will be used as working directory.
2014-02-02 11:52:53 +01:00
test -d $SOURCE || mkdir $SOURCE
2014-02-16 12:50:24 +01:00
# Try to start an existing/stopped container with the given name $CONTAINER. Otherwise, run a new one.
docker start -i $CONTAINER 2>/dev/null || docker run -v $SOURCE:/home/cmbuild/android -i -t -name $CONTAINER $REPOSITORY "screen -s /bin/bash"
2014-02-02 11:52:53 +01:00
exit $?