Skip to content

Commit 3aa7f0b

Browse files
authored
chore(tools): add basic devcontainer (#131)
1 parent ca12554 commit 3aa7f0b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Go",
3+
"image": "mcr.microsoft.com/devcontainers/go:latest",
4+
"features": {
5+
"ghcr.io/guiyomh/features/golangci-lint:0": {
6+
"version": "latest"
7+
},
8+
"ghcr.io/devcontainers-extra/features/pre-commit:2": {
9+
"version": "latest"
10+
},
11+
},
12+
"postCreateCommand": "wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/hashicorp.list && sudo apt update && sudo apt install terraform",
13+
"containerEnv": {
14+
"FALCON_CLIENT_ID": "${localEnv:FALCON_CLIENT_ID}",
15+
"FALCON_CLIENT_SECRET": "${localEnv:FALCON_CLIENT_SECRET}",
16+
"FALCON_CLOUD": "${localEnv:FALCON_CLOUD}",
17+
"FALCON_CID": "${localEnv:FALCON_CID}",
18+
"TF_ACC": "1"
19+
}
20+
}

0 commit comments

Comments
 (0)