mirror of https://github.com/perkeep/perkeep.git
753bd38ca9
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 |
||
---|---|---|
.. | ||
djpeg-static | ||
fakes3 | ||
go | ||
mysql | ||
release | ||
server | ||
systemd-docker | ||
zoneinfo | ||
dock.go |