Skip to content

fix(devcontainer): Registry auto-start update after new bundle added - #808

Open
sedonnel wants to merge 2 commits into
mainfrom
sedonnel/devcontainer-registry-bundle-retrigger
Open

fix(devcontainer): Registry auto-start update after new bundle added#808
sedonnel wants to merge 2 commits into
mainfrom
sedonnel/devcontainer-registry-bundle-retrigger

Conversation

@sedonnel

@sedonnel sedonnel commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • .devcontainer/scripts/post-create.sh

    • Updated to detect when new bundles are added.
    • Restarts mock-oci-registry if new bundles are detected.
    • Only triggered if NEW_BUNDLES_ADDED flag is true.
    • Preserves normal behaviour if no bundles have been added.
    • Updated to only copy complytime.yaml if it doesn't exists already
    • This preserves any new bundles added after a restart
  • CHANGELOG.md

    • Updated fixed section to detail the fix changes.
  • AGENTS.md

    • Added changes entry detailing the change
  • CHANGELOG.md

    • Added change entry in the "Fixed" section that detais the change and fix.
  • docs/TESTING_ENVIRONMENT.md

    • Added instructions for how the new functionality works.
    • Added explanation for how to add new policy bundles and how to trigger re-seeding

Related Issues

Fixes Part 2 of: #762

Testing Done

Manual verification in devcontainer:

  • Fresh start running posy-create.sh: Registry starts normally
  • Re-Run without changes: Fast path registry does not restart
  • Added new bundle and re-run: Auto restarts the registry and bundle is accessible
  • Fast path restored after bundles are added

@sedonnel
sedonnel requested a review from a team as a code owner August 6, 2026 09:44
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

CRAP Load Analysis

No Go code changes detected in this PR. No CRAP impact.

@sedonnel sedonnel changed the title fix(devcontainer) Registry auto-start update after new bundle added fix(devcontainer): Registry auto-start update after new bundle added Aug 6, 2026
- .devcontainer/scripts/post-create.sh
    - Updated to detect when new bundles are added.
    - Restarts mock-oci-registry if new bundles are detected.
	- Only triggered if NEW_BUNDLES_ADDED flag is true.
    - Preserves normal behaviour if no bundles have been added.
    - Updated to only copy complytime.yaml if it doesn't exists already
	- This preserves any new bundles added after a restart

- CHANGELOG.md
    - Updated fixed section to detail the fix changes.

- AGENTS.md
    - Added changes entry detailing the change

- CHANGELOG.md
    - Added change entry in the "Fixed" section that detais the change
      and fix.

- docs/TESTING_ENVIRONMENT.md
    - Added instructions for how the new functionality works.
    - Added explanation for how to add new policy bundles and how to trigger re-seeding
@sedonnel
sedonnel force-pushed the sedonnel/devcontainer-registry-bundle-retrigger branch from 7dd4ca0 to d7957bd Compare August 6, 2026 10:40
@sedonnel
sedonnel removed the request for review from cdaniels255 August 6, 2026 10:56
- AGENTS.md
  - Grouped the dev container change with other dev container changes
    in the recent changes section

- docs/TESTING_ENVIRONMENT.MD
  - Formatting updates to impreve readability and clarity
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