zalando-stups / pierone

STUPS' Docker registry with S3 backend, immutable tags and SCM source tracking
http://docs.stups.io/en/latest/components/pierone.html
Other
57 stars 7 forks source link

Add configuration flag to run as "open source registry" (public read, OAuth-protected write) #17

Closed hjacobs closed 9 years ago

hjacobs commented 9 years ago

Should be easy to add a configuration flag (env variable) to run Pier One as a public OSS registry. This flag basically needs to disable OAuth token validation for the Docker v1 registry "read" API endpoints.

hjacobs commented 9 years ago

Proposed environment variable name (HTTP_ prefix is necessary for Friboo's config -> component mapping):

docker run stups/pierone:xy -e HTTP_ALLOW_PUBLIC_READ=true ....
hjacobs commented 9 years ago

Fixed with release https://github.com/zalando-stups/pierone/releases/tag/0.7.0

Deployed os-registry.stups.zalan.do :-)

There is no "nice" frontend UI (yet) for os-registry.stups.zalan.do, but you can use the REST APIs on https://os-registry.stups.zalan.do/ui/

curl https://os-registry.stups.zalan.do/v1/search?q=stups | jq . curl https://os-registry.stups.zalan.do/teams | jq . curl https://os-registry.stups.zalan.do/teams/stups/artifacts | jq .

FYI: We initially deployed the Open Source registry to make our ZMON Vagrant box boot faster (https://github.com/zalando/zmon/blob/master/vagrant/start-services.sh).