Skip to content
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

Make the docker image configurable for use in other environments (primarily local test) #338

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

Phillezi
Copy link
Collaborator

Made it possible to configure primarily keycloak and which base url of the deploy api to use without having to rebuild the image. These are now configurable with the following environment variables:

KEY Description Default
KEYCLOAK_URL The url to use for keycloak https://iam.cloud.cbh.kth.se
KEYCLOAK_REALM The realm to use cloud
KEYCLOAK_CLIENT_ID The client id to use landing
DEPLOY_API_URL The base url for the deploy api https://api.cloud.cbh.kth.se/deploy/v2
ALERT_API_URL The base url to use for the alert api https://alert.app.cloud.cbh.kth.se/
RANCHER_URL The url to rancher https://mgmt.cloud.cbh.kth.se
DNS_URL The url to powerdns https://dns.cloud.cbh.kth.se
MAIA_URL The url to maia https://maia.app.cloud.cbh.kth.se/maia

In the Dockerfile two scripts run that makes this possible.
All values set in .env that start with VITE will during the build be replaced by {{___<the-key-here>__}} and on startup a little entrypoint script runs and replaces these with the set values by using sed.

@Phillezi Phillezi merged commit 651f6f5 into kthcloud:main Jan 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant