Skip to content

Commit 54f3e01

Browse files
committed
chores: add devcontainer json for devspace
Signed-off-by: Luca Di Maio <[email protected]>
1 parent 4fac43d commit 54f3e01

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM mcr.microsoft.com/devcontainers/go:0-1.19-bullseye
2+
3+
ARG TARGETOS
4+
ARG TARGETARCH
5+
6+
RUN curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/download/devspace-linux-${TARGETARCH}" && install -c -m 0755 devspace /usr/local/bin
7+
RUN curl -L -o vcluster "https://github.com/loft-sh/vcluster/releases/latest/download/vcluster-linux-${TARGETARCH}" && install -c -m 0755 vcluster /usr/local/bin
8+
RUN curl -L -o kind "https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-${TARGETARCH}" && install -c -m 0755 kind /usr/local/bin

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Go",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
9+
"version": "latest"
10+
},
11+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
12+
},
13+
14+
"postCreateCommand": "kind create cluster || true",
15+
16+
"mounts": [
17+
{
18+
"type": "volume",
19+
"source": "vcluster",
20+
"target": "/home/vscode"
21+
}
22+
],
23+
24+
"customizations": {
25+
"devpod": {
26+
"prebuildRepository": "fdog239/prebuilds"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)