-
Notifications
You must be signed in to change notification settings - Fork 157
fix(settings): env var precedence #1625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified your fix by building a "dev" image based on latest opencloud/main including your change and running
$ export OC_DOCKER_IMAGE="opencloudeu/opencloud"; export OC_DOCKER_TAG="dev"; docker compose --env-file .env.1625 down -v && docker compose --env-file .env.1625 up -d
My .env.1625 file used
grep -v ^# .env.1625|grep -v ^$|sort|egrep 'DEMO|COMPOSE_FILE'
COMPOSE_FILE=docker-compose.yml:traefik/opencloud.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
DEMO_USERS=true
BTW, I was not able to build a running dev image from your forked 'rhafer:env-var-precedence` branch.
How does it fail? It seems to work for me. |
Must be something on my side probably. If I use your branch, and build a dev image, using If I do exactly the same on the opencloud-eu/opencloud:main (applying your single change), all works as expected. But, if I compare your branch with the opencloud:main, I exactly have this single change. I don't understand why, yet :-/ |
Try running |
|
Yes, this worked! Thanks :) |
Fix the ordering of the env vars for the 'set_default_assignments'
setting. The service specific variable ('SETTINGS_SETUP_DEFAULT_ASSIGNMENTS')
should take precedence over other variable ('IDM_CREATE_DEMO_USERS' in
this case).
d202995 to
148b6c6
Compare
Fix the ordering of the env vars for the 'set_default_assignments' setting. The service specific variable ('SETTINGS_SETUP_DEFAULT_ASSIGNMENTS') should take precedence over other variable ('IDM_CREATE_DEMO_USERS' in this case).
Alternative fix to: opencloud-eu/opencloud-compose#109