-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Module
LocalStack
Proposal
The current version of LocalStack is 1.4. The next release will be 2.0, due next week:
This release contains changes that will break Testcontainers integration at some point in the future. In particular, the HOSTNAME_EXTERNAL environment variable that Testcontainers uses will be deprecated, to be replaced by LOCALSTACK_HOST.
In 2.0, the old HOSTNAME_EXTERNAL variable will continue working, so this will likely not start causing issues right away. But once this backwards-compatibility support is removed, the localstack/localstack:latest Docker tag (effectively their nightly build) will immediately be updated.
Therefore, people using Testcontainers with LocalStack using the localstack:latest will have their tests start failing at some point in the future. Even though using that tag is a bad idea, this likely applies to a non-trivial number of people, because the current default version is the ancient 0.11.2, and many fixes have been added to LocalStack since. That in itself is a good reason to update.
The solution might be as simple as updating this constant (and checking all places that reference it):
Line 33 in 3b0c1cb
| private static final String HOSTNAME_EXTERNAL_ENV_VAR = "HOSTNAME_EXTERNAL"; |