perkeep/misc/docker
mpl 753bd38ca9 misc/docker/server: build with make.go
So far, when building camlistored docker image for CoreOS, we were not
using make.go, and we were neither running gopherjs nor embedding the
resources (but rather provide the UI resources at their default
filesystem location).

Now that we're using gopherjs for the web UI, it is a hard dependency
for the camlistore server.
We could reproduce the steps in make.go to build gopherjs, run it to
build the web ui resources, and then move the resources at the right
place, but since make.go already does the equivalent work it seems
to make more sense to use it, which is the main point of this CL.

Similarly, it seems to make more sense to now build a binary with the
resources embedded, which is the default make.go behaviour, instead of
building a "raw" camlistored, and provide the resources as additional
directories in the container image, so this CL takes that approach too.

Finally, it was necessary to add the "-static" flag to make.go, so we
can keep on building a static camlistored binary, that does not rely on
libc for DNS. Because our container image is FROM SCRATCH, with just the
necessary binaries, in order to get a container image of a reasonable
size.

One drawback of now using make.go in
misc/docker/server/build-camlistore-server.go is we're doing some
unnecessary (since we're already running in the isolation of a
container) copying to the virtual gopath, but that seems a very tiny
price to pay. Especially considering how rarely we run that code.

Change-Id: I416c86d366cd4ed2d3b8b1636a6a65a83b9f15d7
2017-04-05 02:10:12 +02:00
..
djpeg-static deploy, docker: go 1.5 tweaks for GCE launcher 2015-08-18 15:01:04 +02:00
fakes3 pkg/misc/amazon/s3: test against fake-s3 in docker 2016-11-17 17:01:11 +01:00
go vendor: update gopherjs to 1.8-1 2017-02-18 01:06:58 +01:00
mysql GCE: use our own lighter MySQL Docker image. 2014-08-23 17:49:59 -07:00
release vendor: update gopherjs to 1.8-1 2017-02-18 01:06:58 +01:00
server misc/docker/server: build with make.go 2017-04-05 02:10:12 +02:00
systemd-docker add makefile to build systemd-docker from source 2015-10-19 20:52:48 +01:00
zoneinfo misc/docker: add zoneinfo to GCE docker image 2016-05-11 16:55:02 +02:00
dock.go misc/docker/server: build with make.go 2017-04-05 02:10:12 +02:00