Skip to content

Conversation

@troglobit
Copy link
Contributor

Description

Include container env file in sha calculation of config to trigger container restart on env changes. Fixes #1313

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

Type a command, regret you typed so much before checking something else,
comment it out for later with Meta-# (Alt-Shift-3).  The whole line is
now commented out and saved to history.  Recall it later with Ctrl-P or
Up arrow, delete the leading # with Ctrl-D, and run it.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Environment variables are stored in a separate .env file from the main
container script.  The config SHA256 checksum only covered the script
file, so changes to env vars went undetected -- the container was not
recreated and kept running with stale values.

Include the env file contents in the config checksum calculation so that
any change to environment variables triggers a proper container restart.

Fixes #1313

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit troglobit force-pushed the container-restart-on-env branch from 379d1e5 to eeabb44 Compare February 1, 2026 11:36
@troglobit troglobit added the ci:main Build default defconfig, not minimal label Feb 1, 2026
@troglobit troglobit moved this to In progress in Infix & C:o Feb 1, 2026
@troglobit troglobit added this to the Infix v26.01 milestone Feb 1, 2026
@troglobit troglobit marked this pull request as ready for review February 1, 2026 12:42
@troglobit troglobit requested a review from mattiaswal February 1, 2026 12:42
Copy link
Contributor

@mattiaswal mattiaswal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 💯

@troglobit troglobit merged commit 69acd21 into main Feb 2, 2026
11 of 12 checks passed
@troglobit troglobit deleted the container-restart-on-env branch February 2, 2026 08:16
@github-project-automation github-project-automation bot moved this from In progress to Done in Infix & C:o Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:main Build default defconfig, not minimal

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Container not restarted when changing configuration

3 participants