Verified Commit fbf2cf55 authored by Patrick Rice's avatar Patrick Rice 🌆 Committed by GitLab
Browse files

Merge branch 'dev-container-improvements' into 'main'

chore: fix dev container toolchain and give it a stable name

See merge request !2988
parents db3c3e85 aece167d
Loading
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
@@ -3,20 +3,29 @@
//
// See https://aka.ms/devcontainer.json for more information.
{
	"name": "devcontainer-client-go",
	"name": "gitlab-client-go",
	"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu",

	"runArgs": [
		"--name",
		"gitlab-client-go"
	],
	// Features add additional features to your environment. See https://containers.dev/features
	"features": {
        "ghcr.io/devcontainers/features/docker-in-docker:2": {
		"ghcr.io/devcontainers/features/docker-in-docker:4.0.0": {
			"moby": false
		},
		"ghcr.io/devcontainers-extra/features/mise:1": {},
		"ghcr.io/devcontainers/features/go:1": {
			"version": "1.25"
		}
		"ghcr.io/devcontainers-extra/features/mise:1.0.0": {}
	},
	"containerEnv": {
		"MISE_DATA_DIR": "/usr/local/share/mise"
	},
	"remoteEnv": {
		"PATH": "/usr/local/share/mise/shims:${containerEnv:PATH}"
	},
	"postStartCommand": "eval \"$(mise activate bash --shims)\" && mise install",
	// MISE_DATA_DIR lives outside $HOME, so it has to be created and handed to the container user.
	"postCreateCommand": "sudo install -d -o $(id -u) -g $(id -g) /usr/local/share/mise",
	// Install (and refresh) the tools pinned in .tool-versions on every start.
	"postStartCommand": "mise install",
	// Extensions for VSCode
	"customizations": {
		"vscode": {
+1 −0
Original line number Diff line number Diff line
@@ -42,3 +42,4 @@ gl-code-quality-report.json
Gitlab-license.txt
.vscode/
.DS_Store
.devcontainer/devcontainer-lock.json