Skip to content

Add update_config handler and recreate services#41

Merged
shicaih merged 1 commit into
mainfrom
add-update_config
Jun 18, 2026
Merged

Add update_config handler and recreate services#41
shicaih merged 1 commit into
mainfrom
add-update_config

Conversation

@openminddev

Copy link
Copy Markdown
Contributor

Introduce a new update_config flow: HandleConfigUpdate stops services, updates env vars (via envVariables and files.UpdateEnvFile), and recreates containers with the updated compose using DockerManager.RecreateDockerServices. RecreateDockerServices runs docker-compose up --no-build --force-recreate against a temp compose file with timeout and proper cleanup. Added envVariables helper and unit tests to validate its behavior, and wired the new action into OTAProcess. Includes progress/error reporting and improved logging/error handling during the config update path.

Introduce a new update_config flow: HandleConfigUpdate stops services, updates env vars (via envVariables and files.UpdateEnvFile), and recreates containers with the updated compose using DockerManager.RecreateDockerServices. RecreateDockerServices runs docker-compose up --no-build --force-recreate against a temp compose file with timeout and proper cleanup. Added envVariables helper and unit tests to validate its behavior, and wired the new action into OTAProcess. Includes progress/error reporting and improved logging/error handling during the config update path.
@shicaih
shicaih merged commit 471225b into main Jun 18, 2026
4 checks passed
@shicaih
shicaih deleted the add-update_config branch June 18, 2026 23:39
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.

2 participants