k3s/examples/guestbook-go/_src
Brendan Burns 31f4aba785 Fix some paths in the Dockerfiles. 2014-09-23 20:58:08 +00:00
..
guestbook Fix some paths in the Dockerfiles. 2014-09-23 20:58:08 +00:00
public Updated guestbook based on suggestions in the pull request 2014-09-18 22:37:52 +05:30
script Updated guestbook based on suggestions in the pull request 2014-09-18 22:37:52 +05:30
Dockerfile Fix some paths in the Dockerfiles. 2014-09-23 20:58:08 +00:00
README.md Updated guestbook based on suggestions in the pull request 2014-09-18 22:37:52 +05:30
main.go Updated guestbook based on suggestions in the pull request 2014-09-18 22:37:52 +05:30

README.md

Building and releasing Guestbook Image

Guestbook build process employs the usage of docker-in-docker to build an image within another. This requires that the build image has access to the docker program's binary, which defaults to the docker available on your host machine. In the case of boot2docker, DOCKER_BIN must be set to the binary's location in the boot2docker's vm.

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:

cd examples/guestbook-go/src
./script/release.sh

If you're using boot2docker, specify the DOCKER_BIN environment variable

DOCKER_BIN="$(boot2docker ssh which docker)" ./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

If you're using boot2docker, specify the DOCKER_BIN environment variable

DOCKER_BIN="$(boot2docker ssh which docker)" ./script/build.sh
Push

Accepts an optional tag (defaults to "latest")

./script/push.sh [TAG]
Clean up
./script/clean.sh