Skip to content

Update to allow sourcing docker images from internal registry#129

Merged
whummer merged 7 commits intomainfrom
wiremock-image-prefix
Feb 27, 2026
Merged

Update to allow sourcing docker images from internal registry#129
whummer merged 7 commits intomainfrom
wiremock-image-prefix

Conversation

@plafond
Copy link
Contributor

@plafond plafond commented Feb 24, 2026

Leverages existing DOCKER_GLOBAL_IMAGE_PREFIX config, if present, by adding prefix to image name.

Customer request created for wiremock extension but this change is to a common util and should apply to ALL extensions...

** also looking ahead, adding ability to wiremock extension to specify image name (including tag) to allow usage when latest tag is blocked

wiremock/wiremock:4x-beta image seems to have issues (getting a connection refused) - specifying :latest is working fine

not sure if minor bump on the extension-utils package is actually needed?

…, by adding prefix to image name - leverages existing DOCKER_GLOBAL_IMAGE_PREFIX config
@plafond plafond requested a review from whummer February 25, 2026 01:20
@plafond plafond changed the title update to allow sourcing from internal registry, if one is configured… Update to allow sourcing docker images from internal registry Feb 25, 2026
@plafond plafond requested a review from HarshCasper February 25, 2026 14:14
@plafond plafond marked this pull request as ready for review February 26, 2026 02:56
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

Great catch, kudos for fixing that @plafond . 🚀 Added a small comment around the pro import guards.

not sure if minor bump on the extension-utils package is actually needed?

The patch version bump to 0.1.1 of utils should be fine - I'll release a new version post merge. 👍

self.image_name = image_name
from localstack.constants import ENV_PRO_ACTIVATED

pro_activated = is_env_true(ENV_PRO_ACTIVATED)
Copy link
Member

@whummer whummer Feb 27, 2026

Choose a reason for hiding this comment

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

Rather than checking the environment variable here, I think it would be better to add a try/except around the import (this will decouple us a bit more from the env variable, and leave the logic of gated code imports to higher abstraction levels 👍 ).


Update: briefly chatted with Pat about this offline, we'll merge this as-is for now, and then look into further CI coverage of this feature under different plans (free plan, enterprise plan, etc) post image consolidation launch.

Also, build errors in CI are unrelated to this branch - will fix those separately as part of #130 👍

@whummer whummer merged commit 06250fa into main Feb 27, 2026
1 of 3 checks passed
@whummer whummer deleted the wiremock-image-prefix branch February 27, 2026 21:47
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