Serve a TLS endpoint if REGISTRY_TLS_VERIFY is set and GUNICORN_OPTS is not#693
Serve a TLS endpoint if REGISTRY_TLS_VERIFY is set and GUNICORN_OPTS is not#693tiborvass wants to merge 1 commit intodocker-archive:masterfrom
Conversation
5215470 to
ce54641
Compare
Dockerfile
Outdated
|
|
Dockerfile
Outdated
There was a problem hiding this comment.
$ROOTFS? Someone copy-pasta'd too much. 😉
3848eb9 to
a7a1a04
Compare
Dockerfile
Outdated
There was a problem hiding this comment.
You mean:
ENTRYPOINT ["/docker-registry/run.sh"]
CMD ["docker-registry"]There was a problem hiding this comment.
So it might be good to rename run.sh now to be less misleading. 😉
8e1f742 to
5890418
Compare
Dockerfile
Outdated
There was a problem hiding this comment.
It's not a script; it's a compiled Go binary.
There was a problem hiding this comment.
@dmp42 we can rewrite it in bash if you want with openssl, will take some time though.
There was a problem hiding this comment.
wonder if we should keep the ENTRYPOINT in python and push the extra logic about in-place cert generation to generate_certs
wrap.sh
Outdated
There was a problem hiding this comment.
I wonder if we should assume that it's named registry.* or just assumed they get passed as their own bind mount?
5890418 to
5ab86d7
Compare
|
@dmp42 @proppy @ewindisch |
8aa5c8d to
eef7d1c
Compare
This is done by setting GUNICORN_OPTS to some default value, expecting the following files to be present: * /ssl/ca.crt * /ssl/registry.cert * /ssl/registry.key Signed-off-by: Tibor Vass <teabee89@gmail.com>
|
@wking @stevvooe @bacongobbler what do you think? |
|
On Mon, Nov 10, 2014 at 04:01:55PM -0800, Olivier Gambier wrote:
I'd just add this to the docs for: GUNICORN_OPTS='[--ssl-version, 3, --certfile, /ssl/registry.cert, --keyfile, /ssl/registry.keys, --ca-certs, /ssl/ca.crt]' but if folks want a shortcut environment variable for that, I'll go |
|
LGTM and +1 on separation of concerns, though users would probably like to have e.g. I usually like to have my certs located at |
|
On Mon, Nov 10, 2014 at 04:32:28PM -0800, Matthew Fisher wrote:
In this case I'd really rather they just used GUNICORN_OPTS directly. |
If
REGISTRY_TLS_VERIFYis set, butGUNICORN_OPTSis not, then serve via a TLS endpoint instead of plain HTTP.This is done by setting
GUNICORN_OPTSto some default value, expecting the following files to be present:Signed-off-by: Tibor Vass teabee89@gmail.com