diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..02ae7f3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,34 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu +{ + "name": "CSI-Quickstart", + "image": "mcr.microsoft.com/devcontainers/go:1.21-bullseye", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": true, + "configureZshAsDefaultShell": true, + "installOhMyZsh": true, + "installOhMyZshConfig": true, + "username": "vscode", + "userUid": 1001, + "userGid": 1001 + }, + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "moby": true, + "azureDnsAutoDetection": true, + "installDockerBuildx": true, + "version": "latest", + "dockerDashComposeVersion": "v2" + }, + "ghcr.io/devcontainers-contrib/features/kind:1": { + "version": "latest" + } + }, + "customizations": { + "vscode": { + "extensions": ["golang.go"] + } + }, + "workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/csi-quickstart,type=bind", + "workspaceFolder": "/home/vscode/csi-quickstart" +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b593ac8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + "version": "0.2.0", + "command": "bash", + "isShellCommand": true, + "showOutput": "always", + "options": { + "cwd": "${workspaceRoot}" + }, + "args": [ + "-c" + ], + "tasks": [ + { + "taskName": "build", + "suppressTaskName": true, + "isBuildCommand": true, + "args": ["make build"] + }, + { + "taskName": "test", + "suppressTaskName": true, + "isTestCommand": true, + "args": ["make test"] + }, + { + "taskName": "deploy", + "suppressTaskName": true, + "args": ["make deploy"] + }, + { + "taskName": "help", + "suppressTaskName": true, + "args": ["make help"] + } + ] +}