build/env/linux-x86-nacl
Evan Brown c514b80fed env: add additional target for building env images
Revise Makefile in linux-x86-std-kube and linux-x86-nacl:

- Support a target named `dev` that allows specifying a non-default
  Docker repository name.

- Replace hard-coded image names with the directory name that Makefile
  resides in. This uses the existing convention of naming directories
  according to image name.

- When Dockerfile inherits from a custom image (i.e., linux-x86-nacl
  inherits FROM linux-x86-std-kube), use sed to dynamically set the
  repository prefix in the Dockerfile.

Change-Id: I372c834175a38bb34d80a18f2f0e23c5a1d007af
Reviewed-on: https://go-review.googlesource.com/19021
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-28 03:51:04 +00:00
..
Dockerfile env: add additional target for building env images 2016-01-28 03:51:04 +00:00
Makefile env: add additional target for building env images 2016-01-28 03:51:04 +00:00
README env: add additional target for building env images 2016-01-28 03:51:04 +00:00
go_nacl_386_exec env: update nacl builders to be VM-based 2015-02-18 22:34:01 +00:00
go_nacl_amd64p32_exec env: update nacl builders to be VM-based 2015-02-18 22:34:01 +00:00

README

# Building Docker image
If you have access to the Go build staging project (`go-dashboard-dev`) or
production project (`symbolic-datum-552`), use the `make staging` or `make
prod` targets to build a Docker image and push it to the correct Docker
repository.

To build the image for your own dev environment, first build the
`linux-x86-std-kube` image with `make dev REPO=your/docker/repo/prefix`, then
build this image using the same repo prefix, i.e.,
`make dev REPO=your/docker/repo/prefix`.


# Running locally
$ export BUILD=nacl-amd64p32-temp
$ export BUILDREV=59b1bb4bf045 
$ docker run \
     -v $HOME/keys/$BUILD.buildkey:/.gobuildkey \
     gobuilders/linux-x86-nacl \
     /usr/local/bin/builder -rev=$BUILDREV -buildroot=/ -v -cmd=/usr/local/bin/build-command.pl $BUILD