Skip to content

Commit

Permalink
Update amazon/dynamodb-local Docker tag to v2 (#149)
Browse files Browse the repository at this point in the history
* Update amazon/dynamodb-local Docker tag to v2

* Update access key id & secret for local dynamo

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>
  • Loading branch information
renovate[bot] and John Halbert authored Sep 12, 2023
1 parent c85d272 commit e93d696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ services:
- SENTRY_DSN
- ENV=local
- DEBUG=1
- AWS_ACCESS_KEY_ID=#
- AWS_SECRET_ACCESS_KEY=#
- AWS_ACCESS_KEY_ID=GOSYNC
- AWS_SECRET_ACCESS_KEY=GOSYNC
- AWS_REGION=us-west-2
- AWS_ENDPOINT=http://dynamo-local:8000
- REDIS_URL=redis:6379
Expand All @@ -48,8 +48,8 @@ services:
- SENTRY_DSN
- ENV=local
- DEBUG=1
- AWS_ACCESS_KEY_ID=#
- AWS_SECRET_ACCESS_KEY=#
- AWS_ACCESS_KEY_ID=GOSYNC
- AWS_SECRET_ACCESS_KEY=GOSYNC
- AWS_REGION=us-west-2
- AWS_ENDPOINT=http://dynamo-local:8000
- TABLE_NAME=client-entity-dev
Expand Down
8 changes: 4 additions & 4 deletions dynamo.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG DB_LOCATION=/home/dynamodblocal/db
FROM amazon/dynamodb-local:1.22.0 AS install
FROM amazon/dynamodb-local:2.0.0 AS install

USER root
RUN yum -y install awscli

USER dynamodblocal
ENV AWS_ACCESS_KEY_ID=#
ENV AWS_SECRET_ACCESS_KEY=#
ENV AWS_ACCESS_KEY_ID=GOSYNC
ENV AWS_SECRET_ACCESS_KEY=GOSYNC
ARG AWS_ENDPOINT=http://localhost:8000
ARG AWS_REGION=us-west-2
ARG DB_LOCATION
Expand All @@ -20,7 +20,7 @@ RUN mkdir -p ${DB_LOCATION} && \
--endpoint-url ${AWS_ENDPOINT} --region ${AWS_REGION} && \
kill $DYNAMO_PID

FROM amazon/dynamodb-local:1.22.0
FROM amazon/dynamodb-local:2.0.0

ARG DB_LOCATION
COPY --chown=dynamodblocal:dynamodblocal --from=install ${DB_LOCATION} /db
Expand Down

0 comments on commit e93d696

Please sign in to comment.