Skip to content

Conversation

@rhafer
Copy link
Contributor

@rhafer rhafer commented Oct 7, 2025

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

Copy link
Contributor

@schweigisito schweigisito left a 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.

@rhafer
Copy link
Contributor Author

rhafer commented Oct 8, 2025

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.

@schweigisito
Copy link
Contributor

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 make -C opencloud dev-docker and try to deploy this with our compose and connect to it via browser, it just get a 404.

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 :-/

@rhafer
Copy link
Contributor Author

rhafer commented Oct 8, 2025

If I use your branch, and build a dev image, using make -C opencloud dev-docker and try to deploy this with our compose and connect to it via browser, it just get a 404.

Try running make generate after you switch branches, before running make -C opencloud dev-docker. That might fix it.

@schweigisito
Copy link
Contributor

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).
@rhafer rhafer force-pushed the env-var-precedence branch from d202995 to 148b6c6 Compare October 8, 2025 12:24
@rhafer rhafer merged commit e9a2ba8 into opencloud-eu:main Oct 8, 2025
58 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenCloud Team Board Oct 8, 2025
@openclouders openclouders mentioned this pull request Oct 8, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants