Skip to content

Allow configuration of docker image used for port checks#7690

Merged
thrau merged 2 commits intomasterfrom
config-portscheck-image
Feb 15, 2023
Merged

Allow configuration of docker image used for port checks#7690
thrau merged 2 commits intomasterfrom
config-portscheck-image

Conversation

@dominikschubert
Copy link
Member

Closes #7681

Changes

Now allows overriding the default image that is used internally in ECS to verify we can open ports with a docker container. Previously this was statically set to localstack/localstack and some users might not have access to that image in their environment.

Discussion

I've noticed we are also using the DOCKER_IMAGE_NAME (localstack/localstack) in other places as well.
Should we maybe make these constants configurable as well? 🤔

@dominikschubert dominikschubert self-assigned this Feb 15, 2023
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 15, 2023 06:18 — with GitHub Actions Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 15, 2023 07:02 — with GitHub Actions Inactive
@github-actions
Copy link

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 30m 22s ⏱️ + 2m 7s
1 726 tests ±0  1 367 ✔️  - 1  359 💤 +1  0 ±0 
2 440 runs  ±0  1 741 ✔️  - 1  699 💤 +1  0 ±0 

Results for commit d23fd07. ± Comparison against base commit 14675b0.

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.

Nice catch, LGTM! 👍

I've noticed we are also using the DOCKER_IMAGE_NAME (localstack/localstack) in other places as well.
Should we maybe make these constants configurable as well? 🤔

+1 - let's collect any references to custom image names, and make them configurable in a central place.

@thrau thrau merged commit f4caa2e into master Feb 15, 2023
@thrau thrau deleted the config-portscheck-image branch February 15, 2023 21:44
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.

bug: PORTS_CHECK_DOCKER_IMAGE is not configurable which prevents ECS tasks from running on air-gapped environments

3 participants