mirror of https://github.com/kubernetes/kops.git
Enable DinD for Github codespaces
Ensure Docker is installed for Github Codespaces. Docker is required to run some commands from the Makefile.
This commit is contained in:
parent
b2152940c9
commit
7c54ed404e
|
@ -1,38 +1,39 @@
|
||||||
// For format details, see https://containers.dev
|
// For format details, see https://containers.dev
|
||||||
{
|
{
|
||||||
"name": "Kops environment from dev container",
|
"name": "Kops environment from dev container",
|
||||||
// Image to pull when not building from scratch. See .devcontainer/build/devcontainer.json
|
// Image to pull when not building from scratch. See .devcontainer/build/devcontainer.json
|
||||||
// and .github/devcontainer-build-and-push.yml for the instructions on how this image is built
|
// and .github/devcontainer-build-and-push.yml for the instructions on how this image is built
|
||||||
"image": "debian:bullseye",
|
"image": "debian:bookworm",
|
||||||
// "image": "registry.k8s.io/build-image/kube-cross:v1.30.0-go1.22.0-bullseye.0",
|
// "image": "registry.k8s.io/build-image/kube-cross:v1.30.0-go1.22.0-bullseye.0",
|
||||||
// Setup the go environment and mount into the dev container at the expected location
|
// Setup the go environment and mount into the dev container at the expected location
|
||||||
"workspaceFolder": "/go/src/k8s.io/kops",
|
"workspaceFolder": "/go/src/k8s.io/kops",
|
||||||
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/k8s.io/kops,type=bind,consistency=cached",
|
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/k8s.io/kops,type=bind,consistency=cached",
|
||||||
// Ensure that the host machine has enough resources to build and test Kops
|
// Ensure that the host machine has enough resources to build and test Kops
|
||||||
"hostRequirements": {
|
"hostRequirements": {
|
||||||
"cpus": 4
|
"cpus": 4
|
||||||
},
|
},
|
||||||
// Copy over welcome message and install pyyaml
|
// Copy over welcome message and install pyyaml
|
||||||
"onCreateCommand": "bash .devcontainer/setup.sh",
|
"onCreateCommand": "bash .devcontainer/setup.sh",
|
||||||
// for Kubernetes testing, suppress extraneous forwarding messages
|
// for Kubernetes testing, suppress extraneous forwarding messages
|
||||||
"otherPortsAttributes": {
|
"otherPortsAttributes": {
|
||||||
"onAutoForward": "silent"
|
"onAutoForward": "silent"
|
||||||
},
|
},
|
||||||
"remoteUser": "root",
|
"remoteUser": "root",
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
// "customizations": {
|
// "customizations": {
|
||||||
// },
|
// },
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// "forwardPorts": [],
|
// "forwardPorts": [],
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/github-cli:1": {
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
|
||||||
"installDirectlyFromGitHubRelease": true,
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
||||||
"version": "latest"
|
"installDirectlyFromGitHubRelease": true,
|
||||||
},
|
"version": "latest"
|
||||||
"ghcr.io/devcontainers/features/go:1": {
|
},
|
||||||
"version": "latest"
|
"ghcr.io/devcontainers/features/go:1": {
|
||||||
}
|
"version": "latest"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue