WIP: Dynamically generate fleetbase.config.json at container startup#556
Draft
sebiweise wants to merge 1 commit into
Draft
WIP: Dynamically generate fleetbase.config.json at container startup#556sebiweise wants to merge 1 commit into
fleetbase.config.json at container startup#556sebiweise wants to merge 1 commit into
Conversation
Dynamically generate `fleetbase.config.json` at container startup based on environment variables. This removes the need to mount a host-side configuration file, making the console Docker image more portable and flexible for various deployment environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What change does this PR introduce?
docker-entrypoint.shscript to the console image that generatesfleetbase.config.jsonfrom environment variables at container startup, enabling dynamic configuration without mounting files. [1] [2]console/Dockerfileto copy and use the new entrypoint script, and to setAPI_HOSTas a build argument and environment variable for easier configuration. [1] [2]docker-compose.ymlto set all relevant configuration via environment variables instead of mounting a config file, streamlining deployment and configuration.README.mdto clarify that environment variables can now be set directly, and that usingdocker-compose.override.ymlis optional.Why was this change needed?
This pull request updates how runtime configuration is managed for the Fleetbase console Docker image, making it easier and more flexible to set environment variables at runtime. The console now generates its config file from environment variables on container startup, removing the need to manually mount a config file.
Other information (Screenshots)
The documentation is also updated to reflect this improved workflow.