Commit Graph

20 Commits

Author SHA1 Message Date
mpl 4ed26b3d04 misc/docker: fix expected output binaries location
Change-Id: I3f7f30580a513602e0091269163af9618926623a
2018-04-23 13:59:06 -07:00
Brad Fitzpatrick ca76a40bbc Rename camlistored to perkeepd.
Updates #981

Change-Id: I8fe43c240c149074c23128a89ab426af9cbf94b4
2018-04-21 11:06:09 -07:00
Paul Lindner 459c75410e all: more renaming of Camlistore to Perkeep
Change-Id: I118e3cbcf20d80afeffc84f001388c4556f21628
2018-01-30 03:02:56 -08:00
mpl 4ca45d928b misc/docker/dock.go: update to build from perkeep.org
Change-Id: Ie2a995c603a7714979d9967964e6b4c83f4886d4
2018-01-05 20:34:17 +01:00
Brad Fitzpatrick d6a0b05df0 Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.

After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.

This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.

Also, this only moves the lru package to internal. More will move to
internal later.

Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.

This updates some docs, but not all.

devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).

Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 16:03:34 -08:00
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
mpl 5f699042cf misc/docker: restore check that we run in docker
Fixes #744

Change-Id: Ide28a48c229c71a4305a507bb5a6671910d6a1ab
2016-11-09 18:35:03 +01:00
mpl dec44e57fe misc/docker: add zoneinfo to GCE docker image
Fixes #736

Change-Id: Ie58719716e1b4759ccec99a46ecc104eb86449ce
2016-05-11 16:55:02 +02:00
mpl a0276d4f9d misc/docker: replace CopyObject calls
storage.Client.CopyObject does not exist anymore. Replaced with CopyTo
calls.

Also removed checks based on the presence of /.dockerinit to know
whether we're on docker because apparently they're gone or something.
I'll investigate why and a replacement later; we want a new GCE docker
image asap and I'm pressed for time.

Change-Id: I6b3ebcb048f03bdf53db94b41fe96ddcb6ed7537
2016-04-29 11:48:50 -07:00
mpl b43cfe22b9 misc/docker: build ignore for standalone programs
Fixes #713

Change-Id: I964939a3d5de6eb0f3ab0321fd7447774751c92d
2016-04-22 16:15:04 -07:00
mpl 07c0c9c797 misc/docker: fix third_party move for docker image
Change-Id: Id8146b3555c2758871e6d13474595165bee646a2
2016-04-21 14:58:19 -07:00
Will Norris 77ed42edf8 add canonical import paths
The import path was added to the go file that included the package
documentation if one existed.  Otherwise, I used what seemed to be the
primary file for the package.

Fixes #689

Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
2016-03-13 19:57:14 -07:00
mpl 21604dbe56 misc/docker: stamp version as well to binaries
Version in binaries will now be:
"X.Y (git rev xxxxx)"
if X.Y is specified with --tarball_version,
"xxxx"
otherwise.

Also uniformized the flags names and use in other programs.

Fixes #665

Change-Id: I958094f69b279437504854a3ff10e924d42c4fb6
2016-02-09 17:31:29 +01:00
mpl 3a902458ef misc/docker: TODOs for public link and version stamping
Change-Id: Ic1573ffa85e10e8f330676bfd7a19369763e4a4d
2015-12-30 11:58:01 +01:00
mpl 8759680c65 misc/docker: fix for new ldflags syntax
Change-Id: I047bed1b6d0a05597808265590c2216a7836cc77
2015-12-29 01:23:15 +01:00
mpl 4d5cfb81c7 deploy, docker: go 1.5 tweaks for GCE launcher
Change-Id: Id1bae51742cb3efbb580181dc3c2ae6814fcab65
2015-08-18 15:01:04 +02:00
mpl 7242a824db dock.go improvements
The (camlistored builder + UI resources bundler) was a piece of shell
run in a docker container. That piece of shell is replaced with the
misc/docker/server/build-camlistore-server.go go program. This
program is still run within a container of the camlistore/go image.
It is added "on the fly" as a resource to the camlistore/go image
as a mounted resource.

In addition, build-camlistore-server.go can take a local directory as
the camlistore source (instead of fetching a tarball at the given
revision). dock.go has been adapted to take advantage of that.

Change-Id: If32b523d850f6c932016f18231bb1b1a283e50d3
2015-04-21 22:56:03 +02:00
mpl 8f244dfae2 misc/docker/dock.go: build and add djpeg
Change-Id: I20935a3f5dfc160c5fbd5680b12c1404bfc5dfe9
2015-04-01 16:21:29 +02:00
Brad Fitzpatrick 5ee33643fd More dock.go image building work, with mpl
Change-Id: I290d9364a49c95c5c5f35864f94d04780ae30843
2015-04-01 03:48:12 -07:00
mpl db4813e19f misc/docker: final Dockerfile for camlistored
Change-Id: I9dce6a2d04b342e3c5045cc460b227d1bd49b334
2015-04-01 11:51:16 +02:00