diff --git a/docker-examples/v4/amazon-s3-docker-example/README.md b/docker-examples/v4/amazon-s3-docker-example/README.md index 385d34e20..dcd6f5651 100644 --- a/docker-examples/v4/amazon-s3-docker-example/README.md +++ b/docker-examples/v4/amazon-s3-docker-example/README.md @@ -4,6 +4,9 @@ Verdaccio running with [Localstack](https://github.com/localstack/localstack) pr ## Usage +> You might need to create bucket manually here +> aws --endpoint-url=http://localhost:4572 s3 mb s3://localstack.s3.plugin.test + ``` docker-compose up --force-recreate --build --always-recreate-deps ``` diff --git a/docker-examples/v4/amazon-s3-docker-example/conf/config.yaml b/docker-examples/v4/amazon-s3-docker-example/conf/config.yaml index 87c032a6e..6d25fe4a4 100644 --- a/docker-examples/v4/amazon-s3-docker-example/conf/config.yaml +++ b/docker-examples/v4/amazon-s3-docker-example/conf/config.yaml @@ -13,7 +13,6 @@ uplinks: packages: '@*/*': - # scoped packages access: $all publish: $all proxy: npmjs diff --git a/docker-examples/v4/amazon-s3-docker-example/docker-compose.yaml b/docker-examples/v4/amazon-s3-docker-example/docker-compose.yaml index 7be0bdadb..3741d6761 100644 --- a/docker-examples/v4/amazon-s3-docker-example/docker-compose.yaml +++ b/docker-examples/v4/amazon-s3-docker-example/docker-compose.yaml @@ -14,7 +14,7 @@ services: links: - localstack-s3 localstack-s3: - image: localstack/localstack:latest + image: localstack/localstack:0.10.9 container_name: localstack-s3-1 environment: - DEBUG=0 diff --git a/docker-examples/v4/amazon-s3-docker-example/localStack-resources/Dockerfile b/docker-examples/v4/amazon-s3-docker-example/localStack-resources/Dockerfile index 77e39e6c0..017432aae 100644 --- a/docker-examples/v4/amazon-s3-docker-example/localStack-resources/Dockerfile +++ b/docker-examples/v4/amazon-s3-docker-example/localStack-resources/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2.7 +FROM python:3.7-alpine ENV AWS_ACCESS_KEY_ID='[something]' ENV AWS_SECRET_ACCESS_KEY='[something]' @@ -7,4 +7,4 @@ ENV AWS_S3_ENDPOINT='http://localstack-s3:4572' RUN pip install awscli COPY entry.sh /entry.sh RUN chmod +x /entry.sh -ENTRYPOINT ["/entry.sh"] \ No newline at end of file +ENTRYPOINT ["/entry.sh"] diff --git a/docker-examples/v4/amazon-s3-docker-example/localStack-resources/entry.sh b/docker-examples/v4/amazon-s3-docker-example/localStack-resources/entry.sh index 695c1df1b..3cb177497 100644 --- a/docker-examples/v4/amazon-s3-docker-example/localStack-resources/entry.sh +++ b/docker-examples/v4/amazon-s3-docker-example/localStack-resources/entry.sh @@ -1,3 +1,3 @@ #!/bin/bash -aws --endpoint-url http://localstack-s3:4572 s3 mb s3://localstack.s3.plugin.test --region eu-west-2 \ No newline at end of file +aws --endpoint-url http://localstack-s3:4572 s3 mb s3://localstack.s3.plugin.test --region eu-west-2