mirror of
https://github.com/stucki/docker-lineageos
synced 2024-12-19 17:12:29 -05:00
Add comments
This commit is contained in:
parent
ecb2213c82
commit
1d4a3f2118
1
build.sh
1
build.sh
@ -4,6 +4,7 @@ cd $(dirname $0)
|
||||
|
||||
SOURCE=$(pwd)/android
|
||||
|
||||
# Create a shared folder which will be used as working directory.
|
||||
test -d $SOURCE || mkdir $SOURCE
|
||||
|
||||
docker build -t stucki/cyanogenmod .
|
||||
|
4
run.sh
4
run.sh
@ -6,8 +6,12 @@ SOURCE=$(pwd)/android
|
||||
CONTAINER=cyanogenmod
|
||||
REPOSITORY=stucki/cyanogenmod
|
||||
|
||||
# Create a shared folder which will be used as working directory.
|
||||
test -d $SOURCE || mkdir $SOURCE
|
||||
|
||||
# Try to start an existing/stopped container with the given name $CONTAINER. Otherwise, run a new one.
|
||||
# The exec stuff at the end is a workaround which is currently needed (docker 0.8.0) to run screen within docker...
|
||||
# see https://github.com/dotcloud/docker/issues/728
|
||||
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"
|
||||
|
||||
exit $?
|
||||
|
Loading…
Reference in New Issue
Block a user