Skip to content

Commit

Permalink
Adding the creation of the dynamoDB database locally (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Sep 28, 2023
1 parent b0d00b0 commit db1fd3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
//use postcommand to create the maxmind db
'postCreateCommand': '.devcontainer/maxmind-create.sh',
// Use 'postCreateCommand' to run commands after the container is created.
'postCreateCommand': '.devcontainer/maxmind-create.sh && .devcontainer/dynamodb-create.sh',
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/aws-cli:1": {
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ services:
VARIANT: "3.11"
INSTALL_NODE: "true"
NODE_VERSION: "lts/*"
LICENSE_KEY: '${MAXMIND_KEY}'
volumes:
- ..:/workspace:cached
command: sleep infinity
environment:
AWS_ACCESS_KEY_ID: 'AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY: 'AWS_SECRET_ACCESS_KEY'
AWS_ACCESS_KEY_ID: 'AWSACCESSKEYID'
AWS_SECRET_ACCESS_KEY: 'AWSSECRETACCESSKEY'
SHELL: /bin/zsh
ENVIRONMENT: 'dev'

0 comments on commit db1fd3f

Please sign in to comment.