Commit Graph

5381 Commits

Author SHA1 Message Date
Brad Fitzpatrick 5ee33643fd More dock.go image building work, with mpl
Change-Id: I290d9364a49c95c5c5f35864f94d04780ae30843
2015-04-01 03:48:12 -07:00
mpl 2fa4281798 Merge "misc/docker: final Dockerfile for camlistored" 2015-04-01 09:52:22 +00:00
mpl db4813e19f misc/docker: final Dockerfile for camlistored
Change-Id: I9dce6a2d04b342e3c5045cc460b227d1bd49b334
2015-04-01 11:51:16 +02:00
Brad Fitzpatrick 4e8413c501 When on GCE, get UI assets from Docker image.
(The Docker image is still in development)

Change-Id: I0ba1d7482b42d578d6ddbd7cfb42780e29feab24
2015-04-01 02:49:26 -07:00
Brad Fitzpatrick 2e923925db misc/docker: start of dock command
Change-Id: I758081373b5e109a32fd3e22c0b983598c5a31d8
2015-04-01 02:24:56 -07:00
mpl c3853b5222 misc/docker/go: go without cgo
Change-Id: I662d97467e0621af3b20f3c77bc113ace2c48456
2015-04-01 11:17:30 +02:00
Brad Fitzpatrick 495256cf6b make.go: remove --docker_mode flag
It's fundamentally flawed: the whole point of building in Docker is to
build in a hermetic environment. You can't mix building some parts in
Docker and some parts not. We'll build it only in Docker when making
release images, never depending on the host configuration.

Change-Id: I5fb283b17489fba18e89398e0d3f425c7f6159cd
2015-04-01 01:54:31 -07:00
Brad Fitzpatrick 20b249372c third_party: update github.com/bradfitz/http2 to 13dfd8
From 13dfd8: 'Advertise 'h2' protocol, now that HTTP/2 is final.
We still advertise h2-14 too for a bit.'

Change-Id: Ic784937bf43c132c8a9259c50933839bedaef81a
2015-03-31 22:33:05 +02:00
Brad Fitzpatrick d61d4f2f2e make.go: include the 'internal' directory.
Change-Id: I391db36205fbd170da9218cf278349086d9ee04d
2015-03-31 22:27:59 +02:00
Brad Fitzpatrick ca3b8e0922 make.go: remove part of TODO, done in 2fc9efe6
Change-Id: I07f5e3bba2780d7dcd400398f3998594bf8e4d02
2015-03-30 18:19:49 +02:00
Brad Fitzpatrick e37812ae84 Merge "make: do not regenerate z_data.go unnecessarily" 2015-03-30 16:06:02 +00:00
mpl 39fb680f8d Merge "camput file: move chanworker code to an internal chanworker pkg" 2015-03-30 16:01:25 +00:00
mpl da4b48926c camput file: move chanworker code to an internal chanworker pkg
First one of a series to refactor files.go

Change-Id: I4ec775674bca07c641d88f8392b2a03bb4c6fa7b
2015-03-30 17:51:18 +02:00
Tamás Gulácsi 2fc9efe6b3 make: do not regenerate z_data.go unnecessarily
First collect the embedable files, and check z_data.go's ModTime,
and whether it is empty.

This is not an error fix, nor a new feature, just an attempt to
eliminate a todo in make.go.

Change-Id: I0d20329ffb02000e56c9501cea87abc9e48b9f0e
2015-03-30 17:17:03 +02:00
mpl 6c2c581179 third_party/goexif: update to 07696a806c8bc37bcff4af76fbc3f9e44a6941fc
fixes OOM errors, as reported in  #414

Thanks to @hullerob for the heads up.

Also remove the test files because most of the tests are useless
without the sample data, which we don't ship.

Change-Id: Ia56b0184111d32a3c089785bf42cebb9b47af406
2015-03-30 17:04:44 +02:00
Aaron Boodman e987220ad6 Merge "Add a header to the sidebar that displays number of selected items." 2015-03-15 13:46:02 +00:00
Aaron Boodman cd072f78cd Add a header to the sidebar that displays number of selected items.
Change-Id: Idd877a96dc0f835c4f372d4de787114a39058628
2015-03-15 06:43:36 -07:00
Aaron Boodman 5f3d6a1474 Change button text casing from 'Update Tags' to 'Update tags' for consistency.
Change-Id: Ide78b0f194a6f9da119724b286854faba5d28fd4
2015-03-14 21:17:15 -07:00
mpl ac6acf5d70 index/sqlite tests: let sorted/sqlite pkg do initDB and enable WAL
The problem was newSorted was taking care of doing the DB
initialization. It was not only unnecessary, since newKeyValueFromConfig
from sorted/sqlite will do it by calling initDB, but also incorrect
because WAL was not getting enabled. Which is what was causing the
"database is locked" error "fixed" in commit
f6bf779cd6

Change-Id: Ib4badeda4ed4c6c4be43d5f7fc4c543a467b0cd1
2015-03-13 19:11:33 +01:00
mpl f6bf779cd6 sorted/kvtest: close iterator ASAP to make sqlite happy
Change-Id: I7dcca4447bea262fedc6a5fbe572034bfd8cc61d
2015-03-12 16:15:56 +01:00
mpl dcab33a2ae blobserver/diskpacked: use named errors in SubFetch
Forgot to do it in b6eb85631c

Change-Id: I6cbc95977cafd4bcc1ade6c82cded6075e244660
2015-03-11 18:37:55 +01:00
Andrew Gerrand 5c93570a52 oauth2: update to latest version (rev 96e89be)
Also remove all tests and testdata; they add nothing.

Change-Id: I2c09c40dc15c1ba63bdff1e57e8d0c2704024c10
2015-03-06 10:14:58 +11:00
mpl e7bc92191a Merge "deploy/gce: query the regions, use them in form, pick random zone" 2015-03-02 20:44:41 +00:00
mpl 8a93e80a8b Merge "blob, server: show hash functions in discovery" 2015-03-02 18:30:31 +00:00
mpl fd5e8c4048 deploy/gce: query the regions, use them in form, pick random zone
Change-Id: Ie7170c7c12aeb4e32474510d9931f662795bcd41
2015-03-02 19:25:08 +01:00
mpl dfe854e168 blob, server: show hash functions in discovery
Issue #122

Change-Id: Iddc3edd4d10065b4cf94f4d554cc6c24ca78a26c
2015-03-02 18:45:58 +01:00
mpl fc2afa208e Merge "blob SubFetcher: explicitely states with errors the testSubFetcher constraints" 2015-03-02 15:23:09 +00:00
Mathieu Lonjaret 68836026b8 Merge "Capture the file's lastModifiedDate provided by File API when uploading from the UI" 2015-02-27 16:27:03 +00:00
mpl b6eb85631c blob SubFetcher: explicitely states with errors the testSubFetcher constraints
testSubFetcher in blobserver/storagetest was already checking that we'd
get specific error messages in the case of negative input parameters or
an out of range offset.

This change rationalizes these constraints with named errors
(ErrNegativeSubFetch and ErrOutOfRangeOffsetSubFetch) specified
in the SubFetcher interface.

It also fixes the googlestorage and s3 implementations so that they pass
the aforementioned test.

Change-Id: I25b72b842855b90ee3cab44c90654581dccf4b8e
2015-02-26 15:18:27 +01:00
Mario Russo a6fe834326 Capture the file's lastModifiedDate provided by File API when uploading from the UI
this change introduces one API to filewriter, which takes an additional param for the file's lastmodtime to store with the file blob

Issue #317

Change-Id: I8da3134306c28e6945661296aaafb7752b4bf8b5
2015-02-26 09:59:43 +01:00
mpl f29b2665ff test/integration: give the world a corpus
Reasons:
1) TestWebsocketQuery test now needs its world to have a corpus for its
query to succeed, because we now always sort unless specified
otherwise (and the query in the test does not do so).

2) it's more realistic to have an indexer with a corpus anyway, since
that's the canonical use-case.

Change-Id: Icdb31f8600f246227e237b851a1be825dc230d61
2015-02-25 17:16:17 +01:00
mpl 3e79e73272 search: implement post-search Created sort
Fix some UI queries, since UI always queries with "-created".

Also add Unsorted, to override the CreatedDesc default, for when we
really do not want to sort, e.g. when we don't have a corpus and
trying to sort would make us error out.

Issue #579

Change-Id: Ife0aa816c5e8cac8dc6612d0ffd104238abc6838
2015-02-25 16:43:35 +01:00
mpl 017d57d9d2 index,search: fix/finish wholeRef for fileInfo indexing
Bump index requiredSchemaVersion to 5.

Issue #581
Issue #577

Change-Id: I18e30aef280f97781132ef0841a189c7ca7e64be
2015-02-25 01:50:57 +01:00
mpl 9e699068f0 Merge "googlestorage: fix fetch test, add partial fetch test" 2015-02-18 17:34:46 +00:00
mpl 9cd14b0ab4 googlestorage: fix fetch test, add partial fetch test
Without this change, I'm getting:

=== RUN TestGetObject
--- FAIL: TestGetObject (0.65s)
	googlestorage_test.go:88: Failed to read response body: EOF:

Change-Id: Ibe2eaf6af0c9854e4232c4df2a63b3ff1ebac717
2015-02-18 01:36:10 +01:00
mpl b2cdca7f11 docker/camlistored: use djpeg-static
Issue #564

Change-Id: I4efcbadcedff8f120497869e11784f372d93188e
2015-02-16 19:00:39 +01:00
Salmān Aljammāz 1b087e719c docker image for a static djpeg
updates #564

Change-Id: Idf40aa915e20c0584ed02ecab90b304dc159a371
2015-02-13 20:20:40 +00:00
mpl 376e53ccd5 deploy/gce: make sure mysql is done starting...
...before starting camlistored.

Issue #569

Change-Id: I38578be631373b9a78127283b1c0b2a05d72a8f5
2015-02-11 23:51:34 +01:00
mpl 9f93493b0b images/fastjpeg: add check for missing loader induced panic
Change-Id: I137945869aa6983a466326338270cbe8331c8ba0
2015-02-10 23:56:18 +01:00
mpl 111ba4df71 Merge "docker: build djpeg, squash it, use it as base for camlistored" 2015-02-10 16:47:10 +00:00
mpl 6819477c6f docker: build djpeg, squash it, use it as base for camlistored
Issue #564

Change-Id: I78e3a7a286dedc413299de7ad4f7a99c6c889fa8
2015-02-10 17:22:51 +01:00
mpl 484d7f05d2 website: FOSDEM 2015 slides
Change-Id: I2e82a8f4290d9b7fd0ff062da7797e55bb81d7c1
2015-02-06 14:45:28 +01:00
mpl e997a152a3 Merge "deploy/gce: do not overwrite TLS cert and key" 2015-02-05 13:58:18 +00:00
Brad Fitzpatrick f6348948a7 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2015-02-04 21:08:08 -08:00
Brad Fitzpatrick ff31f9f3d3 blobpacked: start of serving from blobpacked packs
Update #532

Change-Id: I35cc74a5013fe8796b05ae1a4bd27f10b5c90cea
2015-02-04 21:07:59 -08:00
Brad Fitzpatrick b4255c3d72 blobpacked: stub TODO implementation of blobserver.WholeRefFetcher
Change-Id: I96d986fe1cec8ceb093d59f0a725e4f542824f69
2015-02-04 21:07:05 -08:00
Brad Fitzpatrick 8229c19850 search, index: add WholeRef to pkg camtypes' FileInfo struct
So when you describe a file, you also gets its wholeref.

TODO: we'll need to migrate old indexes to this new format on
start-up.

Change-Id: I4a3fb000d68bde46474275c2070ef285a6d6ecfc
2015-02-04 21:04:39 -08:00
Brad Fitzpatrick 73063c70ab blobserver: add WholeRefFetcher interface
Change-Id: I5807918b9e362b098d6633f6c25e94f719cf4104
2015-02-04 21:03:08 -08:00
Brad Fitzpatrick 3e84782750 devcam: always use blobpacked for devcam server
Maybe it can be an option in the future, but for now it's
always on.

Change-Id: I7ec408b145870fc7dcffa42638ebb0daf595982d
2015-02-04 21:02:38 -08:00
mpl f32e05bfb7 camdeploy: sync with pkg/deploy/gce.Deployer changes
Change-Id: I4d9ed8b46e3b278d8a249fed452d2cac3bd7ee5d
2015-02-04 23:24:26 +01:00