perkeep/misc
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
..
buildbot add canonical import paths 2016-03-13 19:57:14 -07:00
docker misc/docker/server: build with make.go 2017-04-05 02:10:12 +02:00
old-devscripts Move old broken dev-* scripts away. 2012-10-19 13:38:55 -07:00
commit-msg.githook Rewrite misc/review in Perl for portability. 2011-07-08 15:34:06 -07:00
copyrightifity index/corpus: Add copyright header 2013-12-08 22:44:08 -08:00
devlib.pl dev-camput, dev-camget: options to make demos better 2013-07-29 10:15:59 -07:00
gitversion buildinfo: include dirty + flag in version 2013-02-03 10:14:21 -08:00
monthly.go misc/monthly.go: add blank lines to release notes source 2017-02-27 20:43:56 +01:00
release-history-tags re-tag 0.8 2014-08-03 18:27:18 -07:00
review devcam review: submit changes for review 2014-05-13 23:06:30 +02:00
testfile Fixed site config. 2011-11-30 15:37:39 -08:00