registry-ui icon indicating copy to clipboard operation
registry-ui copied to clipboard

config.yml path by env variable

Open vlaka opened this issue 6 years ago • 2 comments

Hello, just tried to deploy it in kubernetes with no success. Is there option to pass config.yml path by Environment variable? meaning if I mount configmap with the config.yml key to /myconfig, how can I pass this path (/myconfig/config.yml) to the app?

vlaka avatar Feb 27 '19 10:02 vlaka

Ok, just checked that is hardcoded (( https://github.com/Quiq/docker-registry-ui/blob/5bce4ad9c61c7c82a3c90ba5880b0754225e8b0d/main.go#L60

So recreated image with my own path. All works fine now. but it will be great to get option to set it by Environment variable

vlaka avatar Feb 27 '19 10:02 vlaka

You can create a container with the command like -config-file=.... w/o rebuilding an image.

roman-vynar avatar Feb 27 '19 13:02 roman-vynar