Skip to content

Commit

Permalink
quick fix: install missing dependencies into proxy container (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer authored Jun 20, 2024
1 parent 0f59c95 commit 095a74d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aws-replicator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ In addition to the proxy services configuration shown above, the following confi
* `REPLICATOR_LOCALSTACK_HOST`: the target host to use when the proxy container connects to the LocalStack main container (automatically determined by default)
* `REPLICATOR_PROXY_DOCKER_FLAGS`: additional flags that should be passed when creating the proxy Docker containers

**Note:** Due to some recent changes in the core framework, make sure to start up your LocalStack container with the `GATEWAY_SERVER=hypercorn` configuration enabled, for backwards compatibility. This will be fixed in an upcoming release.

## Resource Replicator CLI

The figure below illustrates how the extension can be used to replicate the state, e.g., an SQS queue and the messages contained in it, from AWS into your LocalStack instance.
Expand Down Expand Up @@ -150,6 +152,7 @@ localstack extensions install "git+https://github.com/localstack/localstack-exte

## Change Log

* `0.1.14`: Install missing dependencies into proxy container for localstack >=3.4 compatibility
* `0.1.13`: Add compatibility with localstack >=3.4; add http2-server; migrate to localstack auth login
* `0.1.12`: Modify aws credentials text field type to password
* `0.1.11`: Fix broken imports after recent upstream CloudFormation changes
Expand Down
3 changes: 2 additions & 1 deletion aws-replicator/aws_replicator/client/auth_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ def start_aws_auth_proxy_in_container(
command = [
"bash",
"-c",
f"{venv_activate}; pip install --upgrade --no-deps '{CLI_PIP_PACKAGE}'",
# TODO: manually installing quart/h11/hypercorn as a dirty quick fix for now. To be fixed!
f"{venv_activate}; pip install h11 hypercorn quart; pip install --upgrade --no-deps '{CLI_PIP_PACKAGE}'",
]
DOCKER_CLIENT.exec_in_container(container_name, command=command)

Expand Down
2 changes: 1 addition & 1 deletion aws-replicator/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = localstack-extension-aws-replicator
version = 0.1.13
version = 0.1.14
summary = LocalStack Extension: AWS replicator
description = Replicate AWS resources into your LocalStack instance
long_description = file: README.md
Expand Down

0 comments on commit 095a74d

Please sign in to comment.