Cleanup and optimize Dockerfiles for making images smaller.
Before:
REPOSITORY TAG IMAGE ID CREATED SIZE
go-builders/linux-x86-sid latest 9b9e88b7655c 55 seconds ago 1.12GB
go-builders/linux-x86-std-kube latest 91a5a7a8cb1f 8 seconds ago 986MB
After:
REPOSITORY TAG IMAGE ID CREATED SIZE
go-builders/linux-x86-sid latest aab9e758925e 7 seconds ago 731MB
go-builders/linux-x86-std-kube latest 8309123c2745 2 minutes ago 577MB
Change-Id: I613896faf0d298448995952d265b1729cd03392c
Reviewed-on: https://go-review.googlesource.com/40409
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
The Makefile used to create the Docker image used by the Kubernetes builder
creates an image with a different name than the dashboard expects. This
change updates the dashboard to pull the image created by the Makefile.
Change-Id: Idcf8f5867d9995205c6c8482a7e8bfa1b63d9551
Reviewed-on: https://go-review.googlesource.com/28416
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
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>