Skip to content

Commit

Permalink
feat: add initial devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
josmo committed Mar 13, 2024
1 parent 020fb37 commit fb7dd44
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/devcontainers/base:bullseye
#install ksops
RUN curl -s https://raw.githubusercontent.com/viaduct-ai/kustomize-sops/master/scripts/install-ksops-archive.sh | bash
#install kustomize
RUN curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s 5.0.0
RUN mv ./kustomize /usr/local/bin/
#install kfilt
RUN wget "https://github.com/ryane/kfilt/releases/download/v0.0.7/kfilt_0.0.7_linux_amd64"
RUN mv ./kfilt_0.0.7_linux_amd64 /usr/local/bin/kfilt && sudo chmod +x /usr/local/bin/kfilt
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "foundation",
"dockerFile": "Dockerfile",
// "image": "mcr.microsoft.com/devcontainers/base:bullseye",

"features": {
"ghcr.io/devcontainers-contrib/features/sops:1": {},
"ghcr.io/devcontainers/features/terraform:1": {
"version": "1.5.7"
},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}
},

// Configure tool-specific properties.
"customizations": {
"settings": {
"remote.containers.copyGitConfig": true
},
// Configure properties specific to VS Code.
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker"
]
}
},
"workspaceFolder": "/workspace",
"hostRequirements": {
"cpus": 2,
"memory": "24gb",
"storage": "32gb"
}
}

0 comments on commit fb7dd44

Please sign in to comment.