Skip to content

Conversation

whummer
Copy link
Member

@whummer whummer commented Mar 22, 2023

Dynamically determine ports check Docker image to avoid duplicate image download.

Currently, the default image we're using for the port availability checks is localstack/localstack (unless configured manually via PORTS_CHECK_DOCKER_IMAGE). For Pro users (localstack/localstack-pro), this means that potentially an additional image would be downloaded at runtime.

This hasn't been an issue so far (as the images were aliases), but is now becoming relevant for the upcoming image split in v2.

@whummer whummer temporarily deployed to localstack-ext-tests March 22, 2023 16:18 — with GitHub Actions Inactive
@whummer whummer temporarily deployed to localstack-ext-tests March 22, 2023 16:20 — with GitHub Actions Inactive
@whummer whummer temporarily deployed to localstack-ext-tests March 22, 2023 16:30 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Mar 22, 2023

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 31m 19s ⏱️ - 4m 19s
1 844 tests +1  1 452 ✔️  - 1  392 💤 +2  0 ±0 
2 580 runs  +3  1 817 ✔️  - 1  763 💤 +4  0 ±0 

Results for commit 877fb38. ± Comparison against base commit 805b4a5.

♻️ This comment has been updated with latest results.

Copy link
Member

@thrau thrau 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! i didn't know we were doing that at all :-)

just one comment about a simplification to get rid of _State

@whummer whummer temporarily deployed to localstack-ext-tests March 23, 2023 11:57 — with GitHub Actions Inactive
@whummer whummer requested a review from thrau March 23, 2023 11:59
@whummer whummer temporarily deployed to localstack-ext-tests March 23, 2023 12:40 — with GitHub Actions Inactive
@thrau thrau force-pushed the docker-port-image branch from 877fb38 to 684ee7e Compare March 23, 2023 17:28
@coveralls
Copy link

Coverage Status

Coverage: 81.808% (+0.004%) from 81.803% when pulling 684ee7e on docker-port-image into 49decf4 on master.

@thrau thrau merged commit a5424ec into master Mar 23, 2023
@thrau thrau deleted the docker-port-image branch March 23, 2023 20:54
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.

3 participants