Skip to content

Commit

Permalink
feat: Add Terraform devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
npv2k1 committed Apr 7, 2024
1 parent ee2c780 commit e81bb88
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/terraform/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/base:jammy


31 changes: 31 additions & 0 deletions templates/terraform/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/common-utils": {},
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers/features/aws-cli:1": {},
"ghcr.io/devcontainers/features/azure-cli:1":{},
"ghcr.io/dhoeric/features/google-cloud-cli:1":{},
// "./local-features/ubuntu-dev": "latest"
},
"runArgs": ["--device=/dev/net/tun"]

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 2 additions & 0 deletions templates/terraform/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build:
devcontainer build --workspace-folder .

0 comments on commit e81bb88

Please sign in to comment.