Skip to content

Commit d4b50de

Browse files
authored
chore: add devcontainer configuration (#312)
1 parent 7c4a1e5 commit d4b50de

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:bullseye
2+
3+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4+
&& apt-get -y install --no-install-recommends python3-pip \
5+
&& pip install --no-input pre-commit

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Terraform",
3+
"build": {
4+
"dockerfile": "./Dockerfile",
5+
"context": "."
6+
},
7+
"features": {
8+
"ghcr.io/devcontainers/features/terraform:1": {
9+
"version": "latest",
10+
"installTerraformDocs": true
11+
}
12+
},
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"EditorConfig.EditorConfig"
17+
]
18+
}
19+
},
20+
"postCreateCommand": "pre-commit install"
21+
}

0 commit comments

Comments
 (0)