From daad6cef08dbcc8b702b7700fcd13102361a00a6 Mon Sep 17 00:00:00 2001 From: Sylvia McLaughlin Date: Thu, 28 Sep 2023 03:43:38 +0000 Subject: [PATCH] Adding the creation of the dynamoDB database locally --- .devcontainer/devcontainer.json | 1 + .devcontainer/docker-compose.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0497b42d..48d30709 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,6 +41,7 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // 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": { diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 116502f5..a3b2b82f 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -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'