|
| 1 | + |
| 2 | +# LocalStack Docker-outside-of-Docker (localstack-dood) |
| 3 | + |
| 4 | +A template to manage LocalStack in DooD |
| 5 | + |
| 6 | +## Options |
| 7 | + |
| 8 | +| Options Id | Description | Type | Default Value | |
| 9 | +|-----|-----|-----|-----| |
| 10 | +| imageVariant | Debian version (use bullseye or jammy on local arm64/Apple Silicon): | string | jammy | |
| 11 | +| awslocal | Install LocalStack wrapper for AWS CLI: | boolean | false | |
| 12 | +| cdklocal | Install LocalStack wrapper for CDK: | boolean | false | |
| 13 | +| pulumilocal | Install LocalStack wrapper for Pulumi: | boolean | false | |
| 14 | +| samlocal | Install LocalStack wrapper for AWS SAM CLI: | boolean | false | |
| 15 | +| tflocal | Install LocalStack wrapper for Terraform: | boolean | false | |
| 16 | +| logLevel | Set LocalStack log level: | string | info | |
| 17 | +| networkName | - | string | ls | |
| 18 | +| networkCidr | - | string | 10.0.2.0/24 | |
| 19 | +| ipAddress | - | string | 10.0.2.20 | |
| 20 | +| host | - | string | localhost.localstack.cloud:4566 | |
| 21 | +| debug | - | boolean | false | |
| 22 | +| persistence | - | boolean | false | |
| 23 | +| usePro | - | boolean | false | |
| 24 | +| version | - | string | latest | |
| 25 | +| loadPods | - | string | | |
| 26 | +| volumePath | - | string | ./.volume | |
| 27 | +| enforceIam | - | boolean | false | |
| 28 | +| defaultRegion | - | string | us-east-1 | |
| 29 | + |
| 30 | +This version of the Template starts up LocalStack as a separate container in the same Docker network using the host system's Docker socket. |
| 31 | + |
| 32 | +To control LocalStack's behaviour adjust the provided `.env` file which will be loaded both into LocalStack and the created DevContainer after rebuild. |
| 33 | +For further customisation you can edit the provided `Dockerfile` and/or the `devcontainer.json` file. |
| 34 | +Or add additional services by modifying the provided `docker-compose.yml` file. |
| 35 | +For further LocalStack configuration options please consult our [official documentation](https://docs.localstack.cloud/references/configuration/). |
| 36 | + |
| 37 | +The Template adds automatically the [official LocalStack DevContainer Feature](https://github.com/localstack/devcontainer-feature), which installs the CLI and by demand the most popular *Local Tools™*. |
| 38 | +Currently this calls for a **Debian-based** DevContainer image. |
| 39 | + |
| 40 | +>[!WARNING] |
| 41 | +> In this Template version however the LocalStack CLI provides the `start` and `stop` options do not control the LocalStack container with them as that would result in name resolution issues with the container. |
| 42 | +> |
| 43 | +> In case you've made this mistake by accident, try running `docker compose -f <DEV_CONTAINER_CONFIG_LOCATION>/docker-compose.yml up -d localstack` or rebuild the container. |
| 44 | +
|
| 45 | +#### Use LocalStack Pro |
| 46 | + |
| 47 | +Set `usePro: true` and set on your host system the `LOCALSTACK_AUTH_TOKEN` or the `LOCALSTACK_API_KEY` environment variable, this will be automatically picked up by the `.env` file. |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +_Note: This file was auto-generated from the [devcontainer-template.json](https://github.com/localstack/devcontainer-template/blob/main/src/localstack-dood/devcontainer-template.json). Add additional notes to a `NOTES.md`._ |
0 commit comments