To make it easier to use the Repose Docker image in RSI, we need to update the permissions to add read permissions for the root group. The details about how to do this and how it's totally legit are here:
- Permissions are verified in the Docker image.
- If feasible, we test the Docker image in RSI.
I guess the biggest pain points were two things
the first is /etc/repose is marked as a voluem
which is totally fine in some cases
but in cases where you want to bake configs in it's not possible to override the files there
the other thing was supporting openshift arbitrary user IDs
so not having things have to run as root is one thing but it takes a little more work for openshift
most of my changes are based on the docs here
so the USER 1001 and
being able to change ports and things would be nice but I just hacked that together with environment variables and a bash docker-entrypoint.sh script
Interesting. Yeah, we'll definitely take a look and see what we can do here. Thanks for showing us this!
sure thanks for your help as well!
Oh, yeah, so we have a solution for that on the book.
Soon(TM) we want to add environment variable interpolation into our configuration service. That would allow you to set environment variables to be used in your configs instead of rewriting the configs themselves.
yeah that'd be super nice
You can track that work here, if you'd like:
I mean, we haven't started it yet...
but we know people want it.
there is always things like https://github.com/kelseyhightower/confd too
confd - Manage local application configuration files using templates and data from etcd or consul
that is like.. a stand alone tool to do similar things
and I'd probably use that now if I need to do more than just a few seds
Sure, that works.