diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 434ed12c..48d30709 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": { 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'