Skip to content

Commit 463571a

Browse files
Created devcontainer configuration
1 parent ce707cd commit 463571a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.devcontainer/devcontainer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/kubernetes-helm-minikube
3+
{
4+
"name": "Kubernetes - Minikube-in-Docker",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
10+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
11+
"ghcr.io/devcontainers/features/node:1": {},
12+
"ghcr.io/devcontainers-contrib/features/kind:1": {},
13+
"ghcr.io/rio/features/kustomize:1": {}
14+
},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
// "forwardPorts": [],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
// "postCreateCommand": "kubectl version",
21+
22+
// Use 'postStartCommand' to run commands after the container is created like starting minikube.
23+
// "postStartCommand": "nohup bash -c 'minikube start &' > minikube.log 2>&1",
24+
"postStartCommand": "bash scripts/install-dev-tools.sh"
25+
26+
// Configure tool-specific properties.
27+
// "customizations": {},
28+
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
31+
}

scripts/install-dev-tools.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Run Crossplane setup script
4+
./scripts/setup-backstage.sh

scripts/setup-backstage.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Setup a Kubernetes cluster with kind
4+
kind create cluster --image kindest/node:v1.26.6 --wait 5m --name backstage

0 commit comments

Comments
 (0)