You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/integrations/containers/devcontainers.mdx
+48-71Lines changed: 48 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,12 @@ You can use the following two approaches to set up LocalStack with DevContainers
20
20
## LocalStack Templates
21
21
22
22
LocalStack provides two different approaches for [Templates](https://github.com/localstack/devcontainer-template) which can be used via [supporting tools](https://containers.dev/supporting).
23
-
{/* TODO: transform this into a proper table, deal with the breaks */}
| **Docker-in-Docker** | • Strict separation from host Docker service<br>• Control LocalStack with LocalStack CLI<br>• All-in-one container | • Resources are limited as all resources spawned by LocalStack are encapsulated within the container<br>• LocalStack volume directory must exist beforehand<br>• Larger container size<br>• Cannot use existing images on host system |
28
-
| **Docker-outside-of-Docker** | • Easy addition of external services managed by Docker Compose<br>• DNS service for custom domains | • Host's Docker socket mounted into containers, raising security concerns<br>• Limited LocalStack CLI usage<br>• LocalStack volume directory must exist beforehand |
29
-
*/}
26
+
|**Docker-in-Docker**| • Strict separation from host Docker service<br />• Control LocalStack with LocalStack CLI<br />• All-in-one container | • Resources are limited as all resources spawned by LocalStack are encapsulated within the container<br />• LocalStack volume directory must exist beforehand<br />• Larger container size<br />• Cannot use existing images on host system |
27
+
|**Docker-outside-of-Docker**| • Easy addition of external services managed by Docker Compose<br />• DNS service for custom domains | • Host's Docker socket mounted into containers, raising security concerns<br />• Limited LocalStack CLI usage<br />• LocalStack volume directory must exist beforehand |
28
+
30
29
### Docker-in-Docker
31
30
32
31
*[Dev Container CLI](#dev-container-cli)
@@ -92,7 +91,6 @@ done
92
91
#### VSCode
93
92
94
93
:::note
95
-
96
94
The DevContainer extension is currently reporting issues & bugs.
97
95
Follow the [issue](https://github.com/microsoft/vscode-remote-release/issues/10180) for details.
98
96
:::
@@ -101,64 +99,57 @@ To get started with LocalStack and DevContainers in VS Code, follow these steps:
101
99
102
100
* Open VS Code with the DevContainers extension installed.
103
101
* From the Command Palette, select **Dev Containers: Add Dev Container configuration file**.
104
-
<br></br>
102
+
105
103

106
-
<br></br>
107
104
108
105
* Choose **Add configuration to workspace**; alternatively, select **Add configuration to user data folder** for general usage.
109
-
<br></br>
106
+
110
107

111
-
<br></br>
112
108
113
109
* Select **Show All Definitions...** to view community templates.
114
-
<br></br>
110
+
115
111

116
-
<br></br>
117
112
118
113
* Filter by typing "localstack" in the search bar and select the **LocalStack Docker-in-Docker** template.
119
-
<br></br>
114
+
120
115
[Select official LocalStack Template (DinD)](public/images/aws/04a_select_template_dind.png)
121
-
<br></br>
122
116
123
117
* Proceed through the configuration by selecting or entering values.
124
118
Pressing **Enter** through the options will apply default settings, which include:
125
-
<br></br>
119
+
126
120
* Select the image variant (only Debian-based images are supported).
By building your container the LocalStack CLI and any of the enabled local-tools (currently these are `awslocal`, `cdklocal`, `pulumilocal`, `samlocal` and `tflocal`) will be installed.
472
450
473
451
:::note
474
-
475
452
The LocalStack Feature does not manage the installation of underlying tools (e.g., for awslocal, aws-cli is not installed).
476
453
For more information on dependencies, please refer to the [Feature documentation](https://github.com/localstack/devcontainer-feature).
0 commit comments