2015-07-14 00:13:09 +00:00
|
|
|
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
|
|
|
|
|
|
|
|
<!-- BEGIN STRIP_FOR_RELEASE -->
|
|
|
|
|
2015-07-16 17:02:26 +00:00
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
2015-07-13 22:15:35 +00:00
|
|
|
|
2015-07-16 17:02:26 +00:00
|
|
|
<h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2>
|
2015-07-14 00:13:09 +00:00
|
|
|
|
2015-07-16 17:02:26 +00:00
|
|
|
If you are using a released version of Kubernetes, you should
|
|
|
|
refer to the docs that go with that version.
|
2015-07-14 00:13:09 +00:00
|
|
|
|
2015-12-14 18:37:38 +00:00
|
|
|
<!-- TAG RELEASE_LINK, added by the munger automatically -->
|
2015-07-16 17:02:26 +00:00
|
|
|
<strong>
|
2015-11-03 18:17:57 +00:00
|
|
|
The latest release of this document can be found
|
|
|
|
[here](http://releases.k8s.io/release-1.1/examples/guestbook-go/_src/README.md).
|
2015-07-16 17:02:26 +00:00
|
|
|
|
|
|
|
Documentation for other releases can be found at
|
|
|
|
[releases.k8s.io](http://releases.k8s.io).
|
|
|
|
</strong>
|
|
|
|
--
|
2015-07-13 22:15:35 +00:00
|
|
|
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- END STRIP_FOR_RELEASE -->
|
|
|
|
|
|
|
|
<!-- END MUNGE: UNVERSIONED_WARNING -->
|
2015-07-17 22:35:41 +00:00
|
|
|
|
2014-09-12 17:35:02 +00:00
|
|
|
## Building and releasing Guestbook Image
|
|
|
|
|
2014-09-26 00:31:59 +00:00
|
|
|
This process employs building two docker images, one compiles the source and the other hosts the compiled binaries.
|
2014-09-12 17:35:02 +00:00
|
|
|
|
|
|
|
Releasing the image requires that you have access to the docker registry user account which will host the image.
|
|
|
|
|
|
|
|
To build and release the guestbook image:
|
|
|
|
|
2014-09-23 23:44:27 +00:00
|
|
|
cd examples/guestbook-go/_src
|
2014-09-12 17:35:02 +00:00
|
|
|
./script/release.sh
|
|
|
|
|
|
|
|
#### Step by step
|
|
|
|
|
|
|
|
If you may want to, you can build and push the image step by step.
|
|
|
|
|
|
|
|
###### Start fresh before building
|
|
|
|
|
|
|
|
./script/clean.sh 2> /dev/null
|
|
|
|
|
|
|
|
###### Build
|
|
|
|
|
|
|
|
Builds a docker image that builds the app and packages it into a minimal docker image
|
|
|
|
|
|
|
|
./script/build.sh
|
|
|
|
|
|
|
|
###### Push
|
|
|
|
|
|
|
|
Accepts an optional tag (defaults to "latest")
|
|
|
|
|
|
|
|
./script/push.sh [TAG]
|
|
|
|
|
|
|
|
###### Clean up
|
|
|
|
|
|
|
|
./script/clean.sh
|
2015-05-14 22:12:45 +00:00
|
|
|
|
|
|
|
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
2015-05-14 22:12:45 +00:00
|
|
|
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/guestbook-go/_src/README.md?pixel)]()
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- END MUNGE: GENERATED_ANALYTICS -->
|