Skip to content

Commit

Permalink
build: setup dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
Madh93 committed Dec 30, 2024
1 parent bb3c503 commit 1f36dbe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "tpm",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers-extra/features/dasel-asdf:2": {},
"ghcr.io/devcontainers-extra/features/fzf:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"postCreateCommand": "(cut -d' ' -f1 .tool-versions | xargs -i asdf plugin add {}) && asdf install",
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"tamasfe.even-better-toml",
"redhat.vscode-yaml"
]
}
}
}
7 changes: 7 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
app:
image: mcr.microsoft.com/devcontainers/go:1-1.23-bookworm
container_name: devcontainer_tpm
volumes:
- ../..:/workspaces:cached
command: sleep infinity

0 comments on commit 1f36dbe

Please sign in to comment.