Commit Graph

207 Commits

Author SHA1 Message Date
mpl 93a7f46720 make.go: remove --use_gopath
Because it makes full integration with gopherjs impossible (without
polluting the user's GOPATH), as long as
https://github.com/gopherjs/gopherjs/issues/415 is not fixed.

Also it is kind of antithetical with the point of make.go anyway.

We still rely on CAMLI_MAKE_USEGOPATH for the integration tests that run
make.go to know that they shouldn't recursively create another temp
GOPATH (when they're already in such a temp dir, because they're started
through devcam test).

Change-Id: Icc6af46ec5976fdf08e9b8bf4249e307a15499cf
2016-05-09 17:22:39 +02:00
Mathieu Lonjaret df5af585ee Merge "misc/monthly.go: automatically generate a monthly release" 2016-05-05 21:20:41 +00:00
mpl 4232071cb3 misc/monthly.go: automatically generate a monthly release
Current version of doc/release/monthly.html generated with
go run ./misc/monthly.go -rev cdadfd650b

Change-Id: Icdebf60cb64dfcc12766976572f3a34eaeb135f3
2016-05-05 23:16:57 +02:00
mpl f7cee61985 misc/docker: update zip-source.go
Because some files have been renamed/deleted.

Change-Id: I7c09e44f8bcb07d8fd0440bc02f6ba25a450928a
2016-05-05 17:17:21 +02:00
mpl 6a80dd874d misc/docker/go: go 1.6.2
Change-Id: Ib1e479f02f1b103b371ca80d9f8a511f4f398e1a
2016-04-29 12:20:09 -07: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 d2f50293cd misc/docker: rm third_party in zip-source
Change-Id: Ica0c61e164390a19944a0b3448b8468761f58402
2016-04-21 15:09:03 -07:00
mpl 07c0c9c797 misc/docker: fix third_party move for docker image
Change-Id: Id8146b3555c2758871e6d13474595165bee646a2
2016-04-21 14:58:19 -07:00
mpl 95ff1f0b8a misc/docker: go 1.6.1
Change-Id: Ib03d0ba711464b4fc18d899ee21fac6195f037ae
2016-04-13 16:35:03 +02:00
Mathieu Lonjaret 4f8911ba92 Merge "misc/docker/release: zip-source.go" 2016-04-11 20:26:18 +00:00
mpl 97d9ab6fe4 misc/docker/release: zip-source.go
Program to create the zip file containing the Camlistore source for a
release.

Issues #690 and #688

Change-Id: Ibbd3596a6c76cf70c2c29a415c3098bedf48b17f
2016-03-14 17:45:17 +01: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
Mathieu Lonjaret 1d7df7ceb4 Merge "misc/docker: stamp version as well to binaries" 2016-03-11 16:10:23 +00:00
mpl 35c1e2feb5 docker/go: bump to Go1.6
Change-Id: I03d015ef7cf51477626e9a80762580f3ee22cfef
2016-03-02 19:07:26 +01: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 58af581a24 dock.go: print binaries tarball path
Fixes issue #664

Change-Id: I8af4882be32c9452726a40f468b408367705a04c
2016-01-20 00:13:19 +01:00
mpl 0b1fbe5b5e dock.go: fix flag doc typo for version
Change-Id: Ic390de75f579892855688a832008678c607084b7
2016-01-07 00:15:47 +01:00
Brad Fitzpatrick 01eb400955 misc/docker/dock.go: make final download tarballs public
Change-Id: I842b76ce68fe99530bd0a85f0dbdcdd6925e1b5a
2015-12-30 10:50:42 -08:00
Brad Fitzpatrick 9d6fba7ea3 misc/docker/dock.go: make the copied Docker image also public
Change-Id: I8c292605b17efe5e285ea399cd32ba053d9728ad
2015-12-30 09:24:34 -08:00
Brad Fitzpatrick fbbbc8a81f Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2015-12-30 09:07:10 -08:00
Brad Fitzpatrick 8888d4256f misc/docker/dock.go: fail if tarball_version and build_image both set
Change-Id: I985cba6a8de0eb9f5e5e008ea0153d4a417991da
2015-12-30 09:07:07 -08:00
mpl 3a902458ef misc/docker: TODOs for public link and version stamping
Change-Id: Ic1573ffa85e10e8f330676bfd7a19369763e4a4d
2015-12-30 11:58:01 +01:00
mpl f755ea4d4e misc/docker: bump Go to 1.5.2
Change-Id: Ida1ccb619ba4fceb0ce9ce813f03a5637040ba02
2015-12-29 02:00:52 +01:00
mpl 8759680c65 misc/docker: fix for new ldflags syntax
Change-Id: I047bed1b6d0a05597808265590c2216a7836cc77
2015-12-29 01:23:15 +01:00
mpl b5fe755da4 misc/docker/dock.go: add -version and -upload for release tarball
Change-Id: I74023e568861e163373e96e561bf7a1718bd868a
2015-12-27 23:39:36 +01:00
mpl d9a3bbc73a pkg/vendor: update google.golang.org/cloud/storage
rev 2375e186ca77be721a7c9c7b13a659738a8511d2

This is so we can use storage.Client in pkg/wkfs/gcs (and later in
other places) instead of pkg/googlestorage

Change-Id: I1d0eafbffd40e0326c41214692754f6671ec1d5d
2015-12-03 00:55:53 +01:00
Salman Aljammaz c90ae0219c add makefile to build systemd-docker from source
The systemd-docker image on Docker Hub uses an out of date version
of the Docker client. We build our own to get the version required
by recent CoreOS releases. See #646.

Change-Id: I0b1dc6c70f44055c8f92be44cf16269df8a63f0e
2015-10-19 20:52:48 +01:00
mpl a87632f593 dock.go: do not overwrite "production" tarball with WORKINPROGRESS
Change-Id: Ib71eaf028b56bc440a24d63af2f33156cb9935c6
2015-10-16 23:24:20 +02:00
mpl dc38e21fb1 dock.go: update CopyObject
its signature changed with last update of google.golang.org

Change-Id: I318f8966d3ced374607211c7ff27abe1ed30d28d
2015-10-16 23:03:21 +02:00
Mathieu Lonjaret def28fc337 Merge "third_party: no more import path rewriting because Go 1.5" 2015-09-17 11:59:14 +00:00
mpl 328ec25f9c third_party: no more import path rewriting because Go 1.5
We don't rewrite import paths anymore, because we use the new vendor
mechanism that comes with Go 1.5.

Also remove misc/pre-commit.githook because of the above, and because
the rest is covered by devcam hook.

Change-Id: Iafb32e19b21d1df44b9625a5f58bf898e6b51fa8
2015-09-16 22:22:51 +02:00
Mathieu Lonjaret 4c7a2b4aee Merge "dock.go: build windows tarball too" 2015-09-16 19:55:40 +00:00
mpl b432bf01c7 misc/docker: Go1.5 update + related simplifications
Update our Go image to use Go1.5.

Also, with Go1.5, we can compile static binaries (with CGO_ENABLED=0 and
--tags=netgo) without having to first rebuild Go itself from source with
CGO_ENABLED=0.

Finally, with Go1.5, we can now cross-compile straight outta the (linux)
binary tarball (without having to first build the necessary runtime in
src).

For both these above reasons, we don't need to use the Go -src tarball,
and we don't need to have a dedicated Go docker image for each GOOS we
cross-compile too.

Yay, progress!

Change-Id: Ibafb542a4771b151638e796ad3df78e0c8f1a4bf
2015-09-14 16:21:40 +02:00
mpl 14c87ca673 dock.go: build windows tarball too
Change-Id: I0b0f60828949fd321f99fc12eeef5d8e22d3cbc1
2015-08-25 19:26:55 +02:00
mpl b49c8b94de buildbot: switch to Go 1.5
Change-Id: I1b97aa44157064a64baec8f2d3f22376c9438d21
2015-08-21 19:27:52 +02:00
mpl 4d5cfb81c7 deploy, docker: go 1.5 tweaks for GCE launcher
Change-Id: Id1bae51742cb3efbb580181dc3c2ae6814fcab65
2015-08-18 15:01:04 +02:00
Brad Fitzpatrick 6f58fc2426 Fix build, move more stuff from third_party to vendor. 2015-08-18 10:19:49 +02:00
Brad Fitzpatrick 06f7accf31 Require Go 1.5 (due out soon), start move from third_party to vendor.
See https://golang.org/s/go15vendor

This commit moves the google.golang.org/cloud/... packages. The rest
of third_party will move later.

This commit is a dependency for some cloud logging work which we'll
develop in Camlistore's tree.
2015-08-15 22:45:11 +02:00
mpl e12d2aa765 misc/docker/dock.go: bump default rev
Some new features (build binaries tarballs) added in commit
988fc8a43c depend on some files that were
added to the camli repo in that very commit.
So for these new features to work, the Camlistore source used must be >=
to that revision, hence that bump.

Change-Id: Ibb68c0f1a1c85277becc02ad73b902d77b5bc465
2015-07-21 16:57:39 +02:00
mpl d68657f75a misc/docker/dock.go: names and doc tweaks
Change-Id: I0e5de36d0001e5d13dda4ec166af0bb207f4694a
2015-07-18 00:06:31 +02:00
mpl 2c57aff2c1 misc/docker/dock.go: fix typo, wrong program was called
Change-Id: I627b25c604f6ae82bbb49d635664e811ba962af8
2015-07-17 22:42:11 +02:00
mpl 988fc8a43c misc/docker: build tarball of binaries for releases
This change:

1) adds misc/docker/go/darwin/Dockerfile to create a docker image with
Go setup for cross-compiling to darwin
2) adds misc/docker/release/build-binaries.go, which works similarly to
misc/docker/server/build-camlistore-server.go. The difference is it
builds all binaries with make.go instead of just camlistored, and
camlistored is hence built with all resources embedded.
3) adds the --build_binaries flag to dock.go to make use of the above.

Maybe 3) should be done in a new file (out of dock.go), but it is
convenient for now for code reuse.

Issue #538

Change-Id: I8ecd50d118a9ff5c3f53812cac4d7a81a0053b4f
2015-05-14 23:32:40 +02:00
mpl 2b1ce70c15 dock.go: upload versioned tarball
Instead of just uploading the unversioned tarball, this change first
uploads a versioned tarball, then makes a copy of it as the unversioned one.
This allows for easier reverts when overwriting the unversioned tarball
by mistake.

Change-Id: Ia8a1b9008e7a203f2fb3b640dc12da432be1baf3
2015-05-12 15:41:20 +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
Brad Fitzpatrick 6e5ba41027 dock.go: set buildinfo.GitInfo in the final binary
Change-Id: Ie7db7c191d0837a43e0a27bd0b74fc31f9f26aec
2015-04-02 08:32:48 -07:00
Brad Fitzpatrick faba473e75 Make dock.go also able to upload Docker images to GCS.
Change-Id: I00b17f44972176d7cfbaa9c956b2417dd9155b10
2015-04-02 05:34:59 -07:00
Brad Fitzpatrick 322ce34fe7 Remove old stuff from misc/docker/camlistored/Makefile
Change-Id: I6eafdc65b8a3ab9046879e5b540e9635754ebfaf
2015-04-02 02:28:45 -07: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