зеркало из https://github.com/golang/build.git
c514b80fed
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> |
||
---|---|---|
.. | ||
Dockerfile | ||
Makefile | ||
README | ||
go_nacl_386_exec | ||
go_nacl_amd64p32_exec |
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