Adam Wolfe Gordon
f8c65fc7c5
Merge pull request #3 from digitalocean/awg/catalog-no-layers
...
catalog: List repositories with no unique layers
2020-06-02 16:46:22 -06:00
Adam Wolfe Gordon
7796e5f437
Merge pull request #4 from digitalocean/awg/manifest-delete-by-tag
...
manifests: Return UNSUPPORTED when deleting manifests by tag
2020-06-02 16:46:11 -06:00
Adam Wolfe Gordon
2a047e994a
manifests: Return UNSUPPORTED when deleting manifests by tag
...
The OCI distribution spec allows implementations to support deleting manifests
by tag, but also permits returning the `UNSUPPORTED` error code for such
requests. docker/distribution has never supported deleting manifests by tag, but
previously returned `DIGEST_INVALID`.
The `Tag` and `Digest` fields of the `manifestHandler` are already correctly
populated based on which kind of reference was given in the request URL. Return
`UNSUPPORTED` if the `Tag` field is populated.
Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
2020-06-02 15:30:59 -06:00
Adam Wolfe Gordon
5bda069243
catalog: List repositories with no unique layers
...
A repository need not contain any unique layers, if its images use only layers
mounted from other repositories. But, the catalog endpoint was looking for the
_layers directory to indicate that a directory was a repository.
Use the _manifests directory as the marker instead, since any repository with
revisions will contain a _manifests directory.
2020-05-28 13:42:43 -06:00
Adam Wolfe Gordon
2518abfebe
Merge pull request #2 from digitalocean/awg/consistent-log-fields
...
log: Include configured fields in all logs
2020-04-01 11:29:20 -06:00
Adam Wolfe Gordon
5e7dac8f47
log: Include configured fields in all logs
...
It's possible to configure log fields in the configuration file, and we would
like these fields to be included in all logs. Previously these fields were
included only in logs produced using the main routine's context, meaning that
any logs from a request handler were missing the fields since those use a
context based on the HTTP request's context.
Add a configurable default logger to the `context` package, and set it when
configuring logging at startup time.
Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
2020-03-31 16:29:02 -06:00
Adam Wolfe Gordon
b6f7b35737
vendor: Update github.com/Azure/go-autorest
...
The new version uses modules - multiple modules within the same repo.
2020-02-12 15:21:55 -07:00
Adam Wolfe Gordon
ea2f1c077f
Leave logging alone if no logger is specified
...
Allow logging to be configured before the serve command handler is
invoked by removing the default `text` logger from `configureLogging`.
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
06327e35d6
Revert "registry: convert AWS S3 error to correct errcode"
...
This reverts commit f02edffc68a4224b466479acd009bb48484ba814.
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
aabf07ec65
s3: accept S3 parameter
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
03ff763453
s3: fall back to list
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
5132136516
registry/storage: use blob statter directly
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
10d936eeef
s3: Use HeadObject instead of ListObjects in Stat
2020-02-12 15:21:55 -07:00
Bouke van der Bijl
07956fa8da
registry: convert AWS S3 error to correct errcode
2020-02-12 15:21:55 -07:00
Derek McGowan
a837179414
Merge pull request #3072 from fermayo/fix-TestRegistryAsCacheMutationAPIs
...
Fix TestRegistryAsCacheMutationAPIs
2019-12-15 20:48:56 -08:00
Fernando Mayo Fernandez
6ca7b9e9fa
Fix TestRegistryAsCacheMutationAPIs
...
Use a synthetic upstream registry when creating the testing mirror configuration
to avoid the test fail when trying to reach http://example.com
Signed-off-by: Fernando Mayo Fernandez <fernando@undefinedlabs.com>
2019-12-15 13:51:25 +01:00
Derek McGowan
bdf3438b52
Merge pull request #2985 from novas0x2a/default-transport
...
make it possible to wrap the client transport in another one
2019-12-13 11:36:12 -08:00
Derek McGowan
29c300c106
Merge pull request #3050 from ducksecops/patch-1
...
bump golang to 1.13.4
2019-12-13 11:09:05 -08:00
Derek McGowan
4798651387
Merge pull request #3053 from adrian-plata/table-fix
...
Fixing broken table
2019-12-13 11:08:00 -08:00
Derek McGowan
f18781257e
Merge pull request #3061 from guillaumerose/reconciliate
...
Add pathspec for repo _layers directory and allow Repository.BlobStore to enumerate over blobs
2019-12-06 11:27:13 -08:00
Guillaume Rose
c9c3324300
Add unit tests for BlobEnumerator
...
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2019-12-06 09:38:13 +01:00
Manish Tomar
5538da4923
fixes to make layersPathSpec work
...
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2019-12-05 20:48:33 +01:00
Manish Tomar
fa7d949408
allow Repository.BlobStore to enumerate over blobs
...
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2019-12-05 20:48:33 +01:00
Manish Tomar
cf77113795
add pathspec for repo _layers directory
...
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
2019-12-05 20:48:33 +01:00
Adrian Plata
b4694b0d2d
Fixing broken table
...
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-11-26 17:38:40 -08:00
ducksecops
070cc010f7
bump golang to 1.13.4
...
Signed-off-by: Daniel Sutton <daniel@ducksecops.uk>
2019-11-13 23:15:11 +00:00
Derek McGowan
dee21c0394
Merge pull request #2991 from ad-m/patch-1
...
use latest version of alpine when building the Docker container
2019-10-24 15:54:08 -07:00
Ryan Abrams
ae2e973db9
Merge pull request #2748 from manishtomar/tag-digests
...
API to retrive tag's digests
2019-10-08 12:14:56 -07:00
Ryan Abrams
14b96e55d8
Merge pull request #3003 from laverya/fix-build-badges
...
use travis, not circle, build badge
2019-09-05 08:29:32 -07:00
Ryan Abrams
f656e60de5
Merge pull request #2984 from bouk/rempo
...
registry: Fix typo in RepositoryRemover warning
2019-09-05 08:23:18 -07:00
Ryan Abrams
740d4d1211
Merge pull request #2918 from dmathieu/test-blob-writer-write
...
Test httpBlobUpload.Write method
2019-09-05 08:16:36 -07:00
Andrew Lavery
cc97b94f5d
use travis, not circle, build badge
...
Signed-off-by: Andrew Lavery <laverya@umich.edu>
2019-09-04 15:38:24 -07:00
Derek McGowan
aeaeb84407
Merge pull request #3000 from adrian-plata/master
...
Adding deprecated schema instructions
2019-09-03 11:54:37 -07:00
Adrian Plata
07a50201c9
Adding deprecated schema instructions
...
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-09-03 11:44:28 -07:00
Bouke van der Bijl
1c481d34d9
registry: Fix typo in RepositoryRemover warning
...
Signed-off-by: Bouke van der Bijl <me@bou.ke>
2019-09-02 16:07:34 +00:00
Adam Dobrawy
a994bb839d
use latest version of alpine when building the Docker container
...
Signed-off-by: Adam Dobrawy <naczelnik@jawnosc.tk>
2019-08-30 00:58:36 +02:00
Mike Lundy
c486db2d71
make it possible to wrap the client transport in another one
...
Signed-off-by: Mike Lundy <mike@fluffypenguin.org>
2019-08-22 17:37:47 -04:00
Ryan Abrams
1fb7fffdb2
Merge pull request #2950 from terinjokes/patches/swift-segment-hash
...
swift: correct segment path generation
2019-07-11 15:35:31 -07:00
Ryan Abrams
10f726344d
Merge pull request #2955 from alex-laties/master
...
allow for VERSION and REVISION to be passed in during docker builds
2019-07-11 15:30:23 -07:00
Ryan Abrams
8063102951
Merge pull request #2917 from dmathieu/repository-blob-resume
...
Implement Repository Blobs upload resuming
2019-07-11 15:28:05 -07:00
Derek McGowan
438b67feef
Merge pull request #2947 from tariq1890/update_versions
...
Update the versions of several dependencies
2019-07-08 13:33:36 -07:00
Ryan Abrams
be07be9904
Merge pull request #2522 from tifayuki/notification_metrics
...
Add notification metrics
2019-06-28 11:10:51 -07:00
Alex Laties
92d213d2c1
allow for VERSION and REVISION to be passed in during docker builds
...
Signed-off-by: Alex Laties <agl@tumblr.com>
2019-06-26 18:06:51 -04:00
Damien Mathieu
dd3bdee21c
implement Repository Blobs upload resuming
...
Signed-off-by: Damien Mathieu <dmathieu@salesforce.com>
2019-06-26 09:46:49 +02:00
Ryan Abrams
90dfea7952
Merge pull request #2921 from dmathieu/repository-serve-blob
...
Implement Repository ServeBlob
2019-06-25 19:07:38 -07:00
Ryan Abrams
6c72ec2e85
Merge pull request #2927 from dmathieu/blob-create-uuid
...
Handle Blob Create when the underlying registry doesn't provide 'Docker-Upload-UUID'
2019-06-25 19:06:46 -07:00
Ryan Abrams
ec84b86013
Merge pull request #2930 from dmathieu/extract-blob-resume
...
Extract blob upload resume into its own method
2019-06-25 19:06:16 -07:00
Damien Mathieu
898b1f2a53
test httpBlobUpload.Write method
...
Signed-off-by: Damien Mathieu <dmathieu@salesforce.com>
2019-06-25 09:32:58 +02:00
Damien Mathieu
c5d5f938e3
fast-stop ServeBlob if we're doing a HEAD request
...
A registry pointing to ECR is having issues if we try loading the blob
Signed-off-by: Damien Mathieu <dmathieu@salesforce.com>
2019-06-25 09:30:22 +02:00
Damien Mathieu
3800c47fd2
Implement Repository ServeBlob
...
Signed-off-by: Damien Mathieu <dmathieu@salesforce.com>
2019-06-25 09:30:22 +02:00