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

Fix some typos

This commit is contained in:
Michael Stucki 2014-07-18 23:48:18 +02:00
parent 9fd7f89abd
commit b028d884c5
2 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ The main working directory is a shared folder on the host system, so the Docker
**NOTES:**
* You will need to [install Docker][Docker_Installation] to proceed!
* If an image does not exists, ```docker build``` is executed first
* If an image does not exist, ```docker build``` is executed first
* When running ```docker build```, the whole folder incl. the "android" working directory is transferred to the Docker daemon. The only way to work around this currently is to move the "android" folder away, then rebuild, and move it back into place again.
For more information, see [dotcloud/docker#2224].

10
run.sh
View File

@ -7,8 +7,8 @@ CONTAINER_HOME=/home/cmbuild
CONTAINER=cyanogenmod
REPOSITORY=stucki/cyanogenmod
# Create a shared folder which will be used as working directory if it
# does not already exists.
# Create a shared folder which will be used as working directory if it
# does not already exist.
mkdir -p $SOURCE
# Build image if needed
@ -20,15 +20,15 @@ elif [[ -z $IMAGE_EXISTS ]]; then
docker build --no-cache --rm -t $REPOSITORY .
fi
# With the given name $CONTAINER, reconnect to running container, start
# an existing/stopped container or run a new one if one does not exists.
# With the given name $CONTAINER, reconnect to running container, start
# an existing/stopped container or run a new one if one does not exist.
IS_RUNNING=$(docker inspect -f '{{.State.Running}}' $CONTAINER 2>/dev/null)
if [[ $IS_RUNNING == "true" ]]; then
docker attach $CONTAINER
elif [[ $IS_RUNNING == "false" ]]; then
docker start -i $CONTAINER
else
docker run -v $SOURCE:$CONTAINER_HOME/android -i -t --name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash";
docker run -v $SOURCE:$CONTAINER_HOME/android -i -t --name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash"
fi
exit $?