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:** **NOTES:**
* You will need to [install Docker][Docker_Installation] to proceed! * 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. * 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]. For more information, see [dotcloud/docker#2224].

6
run.sh
View File

@ -8,7 +8,7 @@ CONTAINER=cyanogenmod
REPOSITORY=stucki/cyanogenmod REPOSITORY=stucki/cyanogenmod
# Create a shared folder which will be used as working directory if it # Create a shared folder which will be used as working directory if it
# does not already exists. # does not already exist.
mkdir -p $SOURCE mkdir -p $SOURCE
# Build image if needed # Build image if needed
@ -21,14 +21,14 @@ elif [[ -z $IMAGE_EXISTS ]]; then
fi fi
# With the given name $CONTAINER, reconnect to running container, start # With the given name $CONTAINER, reconnect to running container, start
# an existing/stopped container or run a new one if one does not exists. # 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) IS_RUNNING=$(docker inspect -f '{{.State.Running}}' $CONTAINER 2>/dev/null)
if [[ $IS_RUNNING == "true" ]]; then if [[ $IS_RUNNING == "true" ]]; then
docker attach $CONTAINER docker attach $CONTAINER
elif [[ $IS_RUNNING == "false" ]]; then elif [[ $IS_RUNNING == "false" ]]; then
docker start -i $CONTAINER docker start -i $CONTAINER
else 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 fi
exit $? exit $?