Skip to content

Commit 40d81a8

Browse files
committed
Set Pro Image as default
1 parent 96b1d50 commit 40d81a8

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ class TestKinesis(unittest.TestCase):
4343
```
4444

4545
## Change Log
46-
* 1.0.0: Repository URL fixed
46+
* 1.0.2: LocalStack Pro image set as default
47+
* 1.0.1: Repository URL fixed
4748
* 1.0.0: Initial version

localstack_utils/container.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import docker
44
from time import sleep
55

6-
LOCALSTACK_COMMUNITY_IMAGE_NAME = "localstack/localstack"
7-
LOCALSTACK_PRO_IMAGE_NAME = "localstack/localstack-pro"
6+
LOCALSTACK_IMAGE_NAME = "localstack/localstack-pro"
87
LATEST_TAG = "latest"
98

109
MAX_PORT_CONNECTION_ATTEMPTS = 10
@@ -30,14 +29,11 @@ def create_localstack_container(
3029
gateway_listen: str = "0.0.0.0:4566",
3130
environment_variables: dict = None,
3231
bind_ports: dict = None,
33-
pro: bool = False,
3432
):
3533
environment_variables = environment_variables or {}
3634
environment_variables["GATEWAY_LISTEN"] = gateway_listen
3735

38-
image_name_or_default = image_name or (
39-
LOCALSTACK_PRO_IMAGE_NAME if pro else LOCALSTACK_COMMUNITY_IMAGE_NAME
40-
)
36+
image_name_or_default = image_name or LOCALSTACK_IMAGE_NAME
4137
image_exists = (
4238
True
4339
if len(DOCKER_CLIENT.images.list(name=image_name_or_default))

0 commit comments

Comments
 (0)