Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rename default container name to localstack-main #9469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented Oct 25, 2023

Motivation

Hyphens are not allowed in URLs. When addressing the LocalStack container over a docker network, the container name resolves to the IP address of the container. This is a problem in particular for boto3 which refuses to connect.

Changes

Rename localstack_main -> localstack-main

@simonrw simonrw added the semver: major Breaking changes which can be included in a major release only label Oct 25, 2023
@simonrw simonrw self-assigned this Oct 25, 2023
@github-actions
Copy link

github-actions bot commented Oct 25, 2023

LocalStack Community integration with Pro

       2 files  ±0         2 suites  ±0   1h 18m 51s ⏱️ + 8m 39s
2 324 tests ±0  1 747 ✔️ ±0  577 💤 ±0  0 ±0 
2 325 runs  ±0  1 747 ✔️ ±0  578 💤 ±0  0 ±0 

Results for commit 8bc385a. ± Comparison against base commit 6ff5c4c.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented Oct 25, 2023

Coverage Status

coverage: 83.723% (-0.03%) from 83.756% when pulling 569f152 on major/rename-default-container-name into 8c937c6 on release/v3.0.

@simonrw simonrw force-pushed the major/rename-default-container-name branch from ebaccf6 to 8bc385a Compare November 2, 2023 09:28
@simonrw simonrw merged commit c5ffecd into release/v3.0 Nov 2, 2023
@simonrw simonrw deleted the major/rename-default-container-name branch November 2, 2023 11:22
simonrw added a commit to localstack/localstack-demo that referenced this pull request Nov 3, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack/localstack-java-utils that referenced this pull request Nov 3, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack-samples/localstack-pro-samples that referenced this pull request Nov 3, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack-samples/localstack-terraform-samples that referenced this pull request Nov 3, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack/docs that referenced this pull request Nov 6, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack/docs that referenced this pull request Nov 6, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
alexrashed pushed a commit to localstack/docs that referenced this pull request Nov 9, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
whummer pushed a commit to localstack/localstack-java-utils that referenced this pull request Nov 15, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to localstack/localstack-demo that referenced this pull request Nov 18, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to simonrw/sample-cdk-sqs-fargate-dynamodb that referenced this pull request Nov 20, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to simonrw/sample-fuzzy-movie-search-lambda-kinesis-elasticsearch that referenced this pull request Nov 20, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
simonrw added a commit to simonrw/sample-query-data-s3-athena-glue that referenced this pull request Nov 20, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
HarshCasper pushed a commit to localstack-samples/localstack-pro-samples that referenced this pull request Nov 23, 2023
The previous default container name `localstack_main` is not a valid URL, so
we rename the default to `localstack-main`.

See localstack/localstack#9469.
Ashoat added a commit to CommE2E/comm that referenced this pull request Apr 4, 2024
Summary: When we updated localstack in [ENG-5724](https://linear.app/comm/issue/ENG-5724/investigate-updating-localstack), we pulled in [this change](localstack/localstack#9469). As a result `comm-dev services stop` stopped working because we had the wrong name for the Docker container.

Test Plan:
1. Confirm that `comm-dev services stop` no longer prints the error "Error response from daemon: No such container: localstack_main"
2. Confirm that `comm-dev services start` following `comm-dev services stop` no longer prints the message "localstack is already running, skipping localstack initialization"

Reviewers: bartek

Subscribers:
Ashoat added a commit to CommE2E/comm that referenced this pull request Apr 4, 2024
Summary: When we updated localstack in [ENG-5724](https://linear.app/comm/issue/ENG-5724/investigate-updating-localstack), we pulled in [this change](localstack/localstack#9469). As a result `comm-dev services stop` stopped working because we had the wrong name for the Docker container.

Test Plan:
1. Confirm that `comm-dev services stop` no longer prints the error "Error response from daemon: No such container: localstack_main"
2. Confirm that `comm-dev services start` following `comm-dev services stop` no longer prints the message "localstack is already running, skipping localstack initialization"

Reviewers: bartek

Reviewed By: bartek

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D11550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: major Breaking changes which can be included in a major release only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants