Skip to content

Commit d37e554

Browse files
authored
Use Go devcontainer and extension (#624)
1 parent cd34e37 commit d37e554

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "terraform",
3-
"extensions": ["hashicorp.terraform"],
4-
"postCreateCommand": "/bin/bash -c 'curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - && sudo apt-add-repository \"deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main\" && sudo apt-get update && sudo apt-get install packer terraform'",
3+
"extensions": ["golang.Go", "hashicorp.terraform"],
4+
"postCreateCommand": "for tool in packer_1.8.2 terraform_1.2.4; do curl https://releases.hashicorp.com/${tool%_*}/${tool#*_}/${tool}_linux_amd64.zip | zcat | dd of=/usr/bin/${tool%_*} && chmod 755 /usr/bin/${tool%_*} & done; wait",
5+
"image": "mcr.microsoft.com/vscode/devcontainers/go:1",
56
"hostRequirements": {
67
"cpus": 4,
78
"memory": "8gb",

0 commit comments

Comments
 (0)