mirror of https://github.com/k3s-io/k3s
Merge pull request #1263 from jbeda/master
Revert stuff Max pushed directly by accident.pull/6/head
commit
a6e4d77faf
|
@ -5,7 +5,7 @@
|
||||||
1. You need a Google Cloud Platform account with billing enabled. Visit
|
1. You need a Google Cloud Platform account with billing enabled. Visit
|
||||||
[http://cloud.google.com/console](http://cloud.google.com/console) for more details.
|
[http://cloud.google.com/console](http://cloud.google.com/console) for more details.
|
||||||
2. Make sure you can start up a GCE VM. At least make sure you can do the [Create an instance](https://developers.google.com/compute/docs/quickstart#addvm) part of the GCE Quickstart.
|
2. Make sure you can start up a GCE VM. At least make sure you can do the [Create an instance](https://developers.google.com/compute/docs/quickstart#addvm) part of the GCE Quickstart.
|
||||||
3. You need to have the Google Cloud Storage API, and the Google Cloud Storage JSON API enabled.
|
3. You need to have the Google Storage API, and the Google Storage JSON API enabled.
|
||||||
4. You must have Go (version 1.2 or later) installed: [www.golang.org](http://www.golang.org).
|
4. You must have Go (version 1.2 or later) installed: [www.golang.org](http://www.golang.org).
|
||||||
5. You must have the [`gcloud` components](https://developers.google.com/cloud/sdk/) installed.
|
5. You must have the [`gcloud` components](https://developers.google.com/cloud/sdk/) installed.
|
||||||
6. Ensure that your `gcloud` components are up-to-date by running `gcloud components update`.
|
6. Ensure that your `gcloud` components are up-to-date by running `gcloud components update`.
|
||||||
|
|
|
@ -23,6 +23,7 @@ This example assumes that you have forked the repository and [turned up a Kubern
|
||||||
|
|
||||||
$ cd kubernetes
|
$ cd kubernetes
|
||||||
$ hack/dev-build-and-up.sh
|
$ 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.
|
This example also assumes that you have [Docker](http://docker.io) installed on your local machine.
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ $ gcutil addfirewall --allowed=tcp:8080 --target_tags=kubernetes-minion kubernet
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ cd kubernetes/examples/update-demo
|
$ cd kubernetes/examples/update-demo
|
||||||
$ images/build-images.sh
|
$ ./build-images.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step Two: Turn up the UX for the demo
|
### Step Two: Turn up the UX for the demo
|
||||||
|
|
|
@ -16,18 +16,17 @@
|
||||||
|
|
||||||
# This script will build and push the images necessary for the demo.
|
# This script will build and push the images necessary for the demo.
|
||||||
|
|
||||||
# If a user is provided, then use it. If not, environment var must be set.
|
if (( $# != 1 )); then
|
||||||
if [ $# -eq 1 ] ; then
|
|
||||||
DOCKER_HUB_USER=$1
|
|
||||||
elif [ -z "$DOCKER_HUB_USER" ] ; then
|
|
||||||
echo "Usage: $0 <docker hub user name>"
|
echo "Usage: $0 <docker hub user name>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DOCKER_USER=$1
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sudo docker build -t update-demo-base images/base
|
docker build -t update-demo-base base
|
||||||
sudo docker build -t $DOCKER_HUB_USER/update-demo:kitten images/kitten
|
docker build -t $DOCKER_USER/update-demo:kitten kitten
|
||||||
sudo docker build -t $DOCKER_HUB_USER/update-demo:nautilus images/nautilus
|
docker build -t $DOCKER_USER/update-demo:nautilus nautilus
|
||||||
|
|
||||||
sudo docker push $DOCKER_HUB_USER/update-demo
|
docker push $DOCKER_USER/update-demo
|
||||||
|
|
Loading…
Reference in New Issue