diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..a22db40 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + //"forwardPorts": [1, 2, 3], + + // Install needed extensions + "extensions": [ + "ms-azuretools.vscode-docker", + "golang.Go", + "MS-vsliveshare.vsliveshare", + "earthly.earthfile-syntax-highlighting" + ], + + // Adds VS Code settings.json values into the environment. + "settings": { + "peacock.remoteColor": "#0078D7" + }, + // Run Bash script in .devcontainer directory + "postCreateCommand": "/bin/bash ./.devcontainer/post-create.sh > ~/post-create.log", + } \ No newline at end of file diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh new file mode 100644 index 0000000..fe9e0d6 --- /dev/null +++ b/.devcontainer/post-create.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +curl https://luet.io/install.sh | sudo sh + +sudo luet repo add kairos --yes --url quay.io/kairos/packages --type docker +sudo luet install -y utils/goreleaser utils/earthly utils/operator-sdk utils/kubesplit + +wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash