Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Go devcontainer and extension #624

Merged
merged 5 commits into from
Jul 6, 2022
Merged

Use Go devcontainer and extension #624

merged 5 commits into from
Jul 6, 2022

Conversation

0x2b3bfa0
Copy link
Member

@0x2b3bfa0 0x2b3bfa0 commented Jul 5, 2022

Part of #615, also speeds up Terraform and Packer installation, although apt is arguably more secure.

@0x2b3bfa0 0x2b3bfa0 requested a review from a team July 5, 2022 22:51
@0x2b3bfa0 0x2b3bfa0 self-assigned this Jul 5, 2022
@0x2b3bfa0 0x2b3bfa0 added the testing Unit tests & debugging label Jul 5, 2022
@0x2b3bfa0 0x2b3bfa0 mentioned this pull request Jul 5, 2022
@0x2b3bfa0 0x2b3bfa0 changed the title Use Go devcontainer Use Go devcontainer and extension Jul 5, 2022
"extensions": ["hashicorp.terraform"],
"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'",
"extensions": ["golang.Go", "hashicorp.terraform"],
"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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, what a line.

@dacbd dacbd merged commit d37e554 into master Jul 6, 2022
@dacbd dacbd deleted the use-go-devcontainer branch July 6, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Unit tests & debugging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants