Fix some readme and script bugs in examples.

This commit is contained in:
Max Forbes
2014-09-10 13:34:36 -07:00
parent ffcfdd0e2d
commit 42baed492b
3 changed files with 10 additions and 10 deletions

View File

@@ -23,7 +23,6 @@ This example assumes that you have forked the repository and [turned up a Kubern
$ cd kubernetes
$ hack/dev-build-and-up.sh
$ hack/build-go.sh
This example also assumes that you have [Docker](http://docker.io) installed on your local machine.
@@ -39,7 +38,7 @@ $ gcutil addfirewall --allowed=tcp:8080 --target_tags=kubernetes-minion kubernet
```shell
$ cd kubernetes/examples/update-demo
$ ./build-images.sh
$ images/build-images.sh
```
### Step Two: Turn up the UX for the demo

View File

@@ -16,17 +16,18 @@
# This script will build and push the images necessary for the demo.
if (( $# != 1 )); then
# If a user is provided, then use it. If not, environment var must be set.
if [ $# -eq 1 ] ; then
DOCKER_HUB_USER=$1
elif [ -z "$DOCKER_HUB_USER" ] ; then
echo "Usage: $0 <docker hub user name>"
exit 1
fi
DOCKER_USER=$1
set -x
docker build -t update-demo-base base
docker build -t $DOCKER_USER/update-demo:kitten kitten
docker build -t $DOCKER_USER/update-demo:nautilus nautilus
sudo docker build -t update-demo-base images/base
sudo docker build -t $DOCKER_HUB_USER/update-demo:kitten images/kitten
sudo docker build -t $DOCKER_HUB_USER/update-demo:nautilus images/nautilus
docker push $DOCKER_USER/update-demo
sudo docker push $DOCKER_HUB_USER/update-demo