Skip to content

Commit de23a06

Browse files
committed
add devcontainer setup
1 parent adf6abf commit de23a06

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Terraform Admin Guide Samples - Default",
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
// Features to add to the dev container. More info: https://containers.dev/features.
5+
"features": {
6+
"ghcr.io/devcontainers/features/terraform:1": {},
7+
"ghcr.io/devcontainers/features/github-cli:1": {},
8+
"ghcr.io/robbert229/devcontainer-features/opentofu:1": {
9+
"version": "1.9.0"
10+
}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"settings": {},
15+
"extensions": [
16+
"HashiCorp.terraform",
17+
"Github.copilot",
18+
"gamunu.opentofu"
19+
]
20+
},
21+
"codespaces": {}
22+
},
23+
"hostRequirements": {
24+
"memory": "4gb"
25+
},
26+
// If you want to use SSO please install xdg-utils in the container
27+
//"postCreateCommand": "bash ./.devcontainer/scripts/install-xdg.sh",
28+
"remoteUser": "vscode"
29+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "Terraform Admin Guide Samples - with env file",
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
// Features to add to the dev container. More info: https://containers.dev/features.
5+
"features": {
6+
"ghcr.io/devcontainers/features/terraform:1": {},
7+
"ghcr.io/devcontainers/features/github-cli:1": {},
8+
"ghcr.io/robbert229/devcontainer-features/opentofu:1": {
9+
"version": "1.9.0"
10+
}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"Github.copilot",
16+
"HashiCorp.terraform",
17+
"gamunu.opentofu"
18+
],
19+
// Set *default* container specific settings.json values on container create.
20+
"settings": {}
21+
},
22+
"codespaces": {}
23+
},
24+
"hostRequirements": {
25+
"memory": "4gb"
26+
},
27+
// If you want to use SSO please install xdg-utils in the container
28+
//"postCreateCommand": "bash ./.devcontainer/scripts/install-xdg.sh",
29+
"remoteUser": "vscode",
30+
// This devcontainer expects a file named .devcontainer/devcontainer.env to exist.
31+
// you should place the following environment variables in that file:
32+
// - BTP_USERNAME
33+
// - BTP_PASSWORD
34+
"runArgs": [
35+
"--env-file",
36+
".devcontainer/devcontainer.env"
37+
]
38+
}

0 commit comments

Comments
 (0)