diff --git a/aws-replicator/README.md b/aws-replicator/README.md index 74b3da1..ce0c578 100644 --- a/aws-replicator/README.md +++ b/aws-replicator/README.md @@ -126,6 +126,7 @@ If you wish to access the deprecated instructions, they can be found [here](http ## Change Log +* `0.1.24`: Fix healthcheck probe for proxy container * `0.1.23`: Fix unpinned React.js dependencies preventing webui from loading * `0.1.22`: Fix auth-related imports that prevent the AWS proxy from starting * `0.1.20`: Fix logic for proxying S3 requests with `*.s3.amazonaws.com` host header diff --git a/aws-replicator/aws_replicator/client/auth_proxy.py b/aws-replicator/aws_replicator/client/auth_proxy.py index f3ecd48..d438417 100644 --- a/aws-replicator/aws_replicator/client/auth_proxy.py +++ b/aws-replicator/aws_replicator/client/auth_proxy.py @@ -334,13 +334,17 @@ def start_aws_auth_proxy_in_container( # create container container_name = f"{CONTAINER_NAME_PREFIX}{short_uid()}" image_name = DOCKER_IMAGE_NAME_PRO + # add host mapping for localstack.cloud to localhost to prevent the health check from failing + additional_flags = ( + repl_config.PROXY_DOCKER_FLAGS + " --add-host=localhost.localstack.cloud:host-gateway" + ) DOCKER_CLIENT.create_container( image_name, name=container_name, entrypoint="", command=["bash", "-c", f"touch {CONTAINER_LOG_FILE}; tail -f {CONTAINER_LOG_FILE}"], ports=ports, - additional_flags=repl_config.PROXY_DOCKER_FLAGS, + additional_flags=additional_flags, ) # start container in detached mode diff --git a/aws-replicator/setup.cfg b/aws-replicator/setup.cfg index 9386be3..58b74be 100644 --- a/aws-replicator/setup.cfg +++ b/aws-replicator/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = localstack-extension-aws-replicator -version = 0.1.23 +version = 0.1.24 summary = LocalStack AWS Proxy Extension description = Proxy AWS resources into your LocalStack instance long_description = file: README.md