Stephen J Day
ecda1f4eff
Include driver name in trace messsages
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 17:30:31 -07:00
Stephen J Day
d7eb17fd72
Include driver name in trace messsages
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 17:30:31 -07:00
Stephen J Day
b361b4811b
Require storage drivers to report their name
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 17:30:01 -07:00
Stephen J Day
9e146437e4
Require storage drivers to report their name
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 17:30:01 -07:00
Stephen Day
73960f4024
Merge pull request #419 from stevvooe/pool-buffers-s3
...
Pool buffers used in S3.WriteStream
2015-04-22 16:41:28 -07:00
Stephen Day
0281f4dce5
Merge pull request #419 from stevvooe/pool-buffers-s3
...
Pool buffers used in S3.WriteStream
2015-04-22 16:41:28 -07:00
Stephen J Day
1adab029f6
Pool buffers used in S3.WriteStream
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 16:25:53 -07:00
Stephen J Day
c49f7cd015
Pool buffers used in S3.WriteStream
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 16:25:53 -07:00
Olivier Gambier
506a5b4a97
Merge pull request #418 from stevvooe/accept-chunksize-parameter
...
Allow configuration of chunksize parameter
2015-04-22 14:46:40 -07:00
Olivier Gambier
0da2c631db
Merge pull request #418 from stevvooe/accept-chunksize-parameter
...
Allow configuration of chunksize parameter
2015-04-22 14:46:40 -07:00
Stephen J Day
72a702d0d9
Allow configuration of chunksize parameter
...
The code using values from the yaml package wasn't careful enought with the
possible incoming types. Turns out, it is just an int but we've made this
section somewhat bulletproof in case that package changes the behavior.
This code likely never worked. The configuration system should be decoupled
from the object instantiation.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 14:31:34 -07:00
Stephen J Day
e4794ff73d
Allow configuration of chunksize parameter
...
The code using values from the yaml package wasn't careful enought with the
possible incoming types. Turns out, it is just an int but we've made this
section somewhat bulletproof in case that package changes the behavior.
This code likely never worked. The configuration system should be decoupled
from the object instantiation.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 14:31:34 -07:00
Stephen Day
cc1bd58d0f
Merge pull request #416 from stevvooe/remove-go13-test
...
Disable go1.3 tests for circle and upgrade to go1.4.2
2015-04-22 13:28:36 -07:00
Stephen Day
cbfce39acb
Merge pull request #415 from stevvooe/update-goamz
...
Update goamz package dependency
2015-04-22 13:06:46 -07:00
Stephen J Day
36093aaf8b
Disable go1.3 tests for circle and upgrade to go1.4.2
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 12:57:22 -07:00
Stephen Day
5faeddf8af
Merge pull request #414 from stevvooe/check-error-copy
...
Check error returned from io.Copy
2015-04-22 12:46:55 -07:00
Stephen Day
e59046e598
Merge pull request #414 from stevvooe/check-error-copy
...
Check error returned from io.Copy
2015-04-22 12:46:55 -07:00
Stephen J Day
f1ea982e82
Check error returned from io.Copy
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 12:35:08 -07:00
Stephen J Day
4330627c71
Check error returned from io.Copy
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 12:35:08 -07:00
Stephen J Day
9bd1186654
Update goamz package dependency
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-22 12:32:59 -07:00
Stephen Day
aa09c6c262
Merge pull request #408 from stevvooe/increase-retry-backoff
...
Backoff retry on verification to give s3 time to propagate
2015-04-21 13:19:28 -07:00
Stephen Day
06fcc9213a
Merge pull request #408 from stevvooe/increase-retry-backoff
...
Backoff retry on verification to give s3 time to propagate
2015-04-21 13:19:28 -07:00
Stephen J Day
632e46418b
Backoff retry on verification to give s3 time to propagate
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-21 13:04:46 -07:00
Stephen J Day
36ffe0c134
Backoff retry on verification to give s3 time to propagate
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-21 13:04:46 -07:00
Stephen Day
ad69b9d984
Merge pull request #407 from stevvooe/log-canonical-digest
...
log canonical digest on verification error
2015-04-21 13:03:32 -07:00
Stephen Day
5f7693da80
Merge pull request #407 from stevvooe/log-canonical-digest
...
log canonical digest on verification error
2015-04-21 13:03:32 -07:00
Stephen J Day
d8dbcc3efa
log canonical digest on verification error
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-21 11:34:18 -07:00
Stephen J Day
77b30cfb25
log canonical digest on verification error
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-21 11:34:18 -07:00
Olivier Gambier
1b975e980b
Merge pull request #405 from stevvooe/eventual-consistency
...
Attempt to deal with eventual consistency by retrying
2015-04-20 18:59:01 -07:00
Olivier Gambier
4f41f0be06
Merge pull request #405 from stevvooe/eventual-consistency
...
Attempt to deal with eventual consistency by retrying
2015-04-20 18:59:01 -07:00
Stephen Day
70e6ad6ef1
Merge pull request #404 from RichardScothern/digest-log
...
Add logging for generic handler errors.
2015-04-20 18:51:59 -07:00
Stephen Day
85338448a3
Merge pull request #404 from RichardScothern/digest-log
...
Add logging for generic handler errors.
2015-04-20 18:51:59 -07:00
Stephen J Day
c8345090d9
Attempt to deal with eventual consistency by retrying
...
Rather than accept the resulting of a layer validation, we retry up to three
times, backing off 100ms after each try. The thought is that we allow s3 files
to make their way into the correct location increasing the liklihood the
verification can proceed, if possible.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-20 18:49:22 -07:00
Stephen J Day
d4ce8f5ef8
Attempt to deal with eventual consistency by retrying
...
Rather than accept the resulting of a layer validation, we retry up to three
times, backing off 100ms after each try. The thought is that we allow s3 files
to make their way into the correct location increasing the liklihood the
verification can proceed, if possible.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-20 18:49:22 -07:00
Richard
3a1029a262
Add logging for generic handler errors.
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-04-20 17:47:52 -07:00
Richard
431811056b
Add logging for generic handler errors.
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-04-20 17:47:52 -07:00
Doug Davis
34d1494c7f
Make .docker dir have 0700 perms not 0600
...
Thanks to @dmcgowan for noticing.
Added a testcase to make sure Save() can create the dir and then
read from it.
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-04-20 14:16:50 -07:00
Stephen Day
75e78e31de
Merge pull request #399 from stevvooe/response-writer-context
...
context: return instrumented response writer from context
2015-04-20 13:39:18 -07:00
Doug Davis
7b8b61bda1
Add .docker/config.json and support for HTTP Headers
...
This PR does the following:
- migrated ~/.dockerfg to ~/.docker/config.json. The data is migrated
but the old file remains in case its needed
- moves the auth json in that fie into an "auth" property so we can add new
top-level properties w/o messing with the auth stuff
- adds support for an HttpHeaders property in ~/.docker/config.json
which adds these http headers to all msgs from the cli
In a follow-on PR I'll move the config file process out from under
"registry" since it not specific to that any more. I didn't do it here
because I wanted the diff to be smaller so people can make sure I didn't
break/miss any auth code during my edits.
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-04-20 13:05:24 -07:00
Stephen J Day
cb938c476f
Return instrumented response writer from context
...
This is ensures that users of the ResponseWriter from the context correctly
track usage. Otherwise, context reporting is incorrect.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-20 11:15:01 -07:00
Stephen Day
f3097d716e
Merge pull request #392 from moxiegirl/post-releas-updates
...
Couple of post-release Fixes
2015-04-20 11:12:41 -07:00
Alexander Morozov
94e2413ec0
Merge pull request #12524 from RickWieman/12523-remove-redundant-else
...
Removes redundant else in registry/session.go
2015-04-19 22:08:50 -07:00
Rick Wieman
4778468202
Removes redundant else in registry/session.go
...
Fixes #12523
Signed-off-by: Rick Wieman <git@rickw.nl>
2015-04-19 23:58:55 +02:00
Antonio Murdaca
742cf000d3
Refactor else branches
...
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
2015-04-19 15:32:54 +02:00
Mary Anthony
d588ed13b2
Fixes #391 for registry top page
...
Fixes #390 to add building link to README
Docker Registry Service to Docker Registry
Signed-off-by: Mary Anthony <mary@docker.com>
2015-04-18 17:32:57 -07:00
Stephen Day
a9a9658e41
Merge pull request #388 from mika/master
...
docs: drop newlines in URLs to avoid 404
2015-04-17 16:54:09 -07:00
Stephen Day
22c72773f6
Merge pull request #389 from DreadPirateShawn/fixtypos
...
Fix deployment guide typos re: image name consistency.
2015-04-17 16:51:31 -07:00
Shawn Falkner-Horine
85cc6bc4bb
Fix deployment guide typos re: image name consistency.
...
Signed-off-by: Shawn Falkner-Horine <dreadpirateshawn@gmail.com>
2015-04-17 21:13:24 +00:00
Michael Prokop
647e0a48b3
docs: drop newlines in URLs to avoid 404
...
The docs as available at
https://github.com/docker/distribution/blob/master/docs/configuration.md
result in 404 errors:
https://github.com/docker/distribution/blob/master/cmd/registry/%0Aconfig.yml
http://docs.aws.amazon.com/AWSSecurityCredentials/1.0/%0AAboutAWSCredentials.html#KeyPairs
instead of pointing to the correct ones, being:
https://github.com/docker/distribution/blob/master/cmd/registry/config.yml
http://docs.aws.amazon.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#KeyPairs
So avoid the newlines in the corresponding source files.
Signed-off-by: Michael Prokop <mika@grml.org>
2015-04-17 23:09:43 +02:00
Stephen Day
3802701cdc
Merge pull request #375 from RichardScothern/path-logging
...
registry/storage/driver: add path and other info to filesytem trace methods.
2015-04-17 14:09:23 -07:00