|
1 | 1 | { |
2 | | - "name": "LocalStack DinD setup", |
3 | | - "image": "mcr.microsoft.com/devcontainers/base:jammy", |
| 2 | + "name": "LocalStack DinD setup", |
| 3 | + "image": "mcr.microsoft.com/devcontainers/base:jammy", |
4 | 4 |
|
5 | | - "remoteEnv": { |
6 | | - // Activate LocalStack Pro: https://docs.localstack.cloud/getting-started/auth-token/ |
7 | | - "LOCALSTACK_AUTH_TOKEN": "${localEnv:LOCALSTACK_AUTH_TOKEN}", // required for Pro, not processed via template due to security reasons |
8 | | - "LOCALSTACK_API_KEY": "${localEnv:LOCALSTACK_API_KEY}", |
9 | | - // LocalStack configuration: https://docs.localstack.cloud/references/configuration/ |
10 | | - "ACTIVATE_PRO": true, |
11 | | - "DEBUG": true, |
12 | | - "LS_LOG": "trace", |
13 | | - "PERSISTENCE": false, |
14 | | - "AWS_ENDPOINT_URL": "http://localhost.localstack.cloud:4566", |
15 | | - "AUTO_LOAD_POD": "", |
16 | | - "ENFORCE_IAM": false, |
17 | | - "AWS_REGION": "us-east-1", |
18 | | - "AWS_DEFAULT_REGION": "us-east-1", |
19 | | - "IMAGE_NAME": "localstack/localstack-pro:latest", |
20 | | - "LOCALSTACK_VOLUME_DIR": "/data" |
21 | | - }, |
| 5 | + "remoteEnv": { |
| 6 | + // Activate LocalStack Pro: https://docs.localstack.cloud/getting-started/auth-token/ |
| 7 | + "LOCALSTACK_AUTH_TOKEN": "${localEnv:LOCALSTACK_AUTH_TOKEN}", // required for Pro, not processed via template due to security reasons |
| 8 | + "LOCALSTACK_API_KEY": "${localEnv:LOCALSTACK_API_KEY}", |
| 9 | + // LocalStack configuration: https://docs.localstack.cloud/references/configuration/ |
| 10 | + "ACTIVATE_PRO": true, |
| 11 | + "DEBUG": true, |
| 12 | + "LS_LOG": "trace", |
| 13 | + "PERSISTENCE": false, |
| 14 | + "AWS_ENDPOINT_URL": "http://localhost.localstack.cloud:4566", |
| 15 | + "AUTO_LOAD_POD": "", |
| 16 | + "ENFORCE_IAM": false, |
| 17 | + "AWS_REGION": "us-east-1", |
| 18 | + "AWS_DEFAULT_REGION": "us-east-1", |
| 19 | + "IMAGE_NAME": "localstack/localstack-pro:latest", |
| 20 | + "LOCALSTACK_VOLUME_DIR": "/data" |
| 21 | + }, |
22 | 22 |
|
23 | | - // 👇 Features to add to the Dev Container. More info: https://containers.dev/implementors/features. |
24 | | - "features": { |
25 | | - "ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
26 | | - "ghcr.io/localstack/devcontainer-feature/localstack-cli:latest": { |
27 | | - "version": "latest", |
28 | | - "awslocal": true, // if true, add in features manually: ghcr.io/devcontainers/features/aws-cli |
29 | | - "cdklocal": false, // if true, add in features manually: ghcr.io/devcontainers-contrib/features/aws-cdk |
30 | | - "pulumilocal": false, // if true, add in features manually: ghcr.io/devcontainers-contrib/features/pulumi |
31 | | - "samlocal": false, // if true, add in features manually: ghcr.io/customink/codespaces-features/sam-cli |
32 | | - "tflocal": false // if true, add in features manually: ghcr.io/devcontainers-contrib/features/terraform-asdf |
33 | | - }, |
34 | | - "ghcr.io/devcontainers/features/aws-cli:1": {}, |
35 | | - "ghcr.io/devcontainers/features/python:1": { |
36 | | - "version": "3.11" |
37 | | - } |
38 | | - }, |
| 23 | + // 👇 Features to add to the Dev Container. More info: https://containers.dev/implementors/features. |
| 24 | + "features": { |
| 25 | + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
| 26 | + "ghcr.io/localstack/devcontainer-feature/localstack-cli:latest": { |
| 27 | + "version": "latest", |
| 28 | + "awslocal": true, // if true, add in features manually: ghcr.io/devcontainers/features/aws-cli |
| 29 | + "cdklocal": true, // if true, add in features manually: ghcr.io/devcontainers-contrib/features/aws-cdk |
| 30 | + "pulumilocal": false, // if true, add in features manually: ghcr.io/devcontainers-contrib/features/pulumi |
| 31 | + "samlocal": false, // if true, add in features manually: ghcr.io/customink/codespaces-features/sam-cli |
| 32 | + "tflocal": false // if true, add in features manually: ghcr.io/devcontainers-contrib/features/terraform-asdf |
| 33 | + }, |
| 34 | + "ghcr.io/devcontainers/features/aws-cli:1": {}, |
| 35 | + "ghcr.io/devcontainers/features/python:1": { |
| 36 | + "version": "3.11" |
| 37 | + } |
| 38 | + }, |
39 | 39 |
|
40 | | - // 👇 Use 'postCreateCommand' to run commands after the container is created. |
41 | | - "postCreateCommand": "type localstack; true && localstack start -d || true", |
42 | | - "mounts": [ |
43 | | - { |
44 | | - // to persist build data and images |
45 | | - "source": "dind-var-lib-docker", |
46 | | - "target": "/var/lib/docker", |
47 | | - "type": "volume" |
48 | | - }, |
49 | | - { |
50 | | - "source": "./.volume", |
51 | | - "target": "/data", |
52 | | - "type": "bind", |
53 | | - "consistency": "cached" |
54 | | - } |
55 | | - ] |
| 40 | + // 👇 Use 'postCreateCommand' to run commands after the container is created. |
| 41 | + "postCreateCommand": "type localstack; true && localstack start -d || true", |
| 42 | + "mounts": [ |
| 43 | + { |
| 44 | + // to persist build data and images |
| 45 | + "source": "dind-var-lib-docker", |
| 46 | + "target": "/var/lib/docker", |
| 47 | + "type": "volume" |
| 48 | + }, |
| 49 | + { |
| 50 | + "source": "./.volume", |
| 51 | + "target": "/data", |
| 52 | + "type": "bind", |
| 53 | + "consistency": "cached" |
| 54 | + } |
| 55 | + ] |
56 | 56 | } |
0 commit comments