aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/devcontainer.json
blob: e4580f70b7185e2042e7b152926bf5792287effe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/java
{
	"name": "Pantry",
	"build": {
		"dockerfile": "Dockerfile",
		"args": {
			"VARIANT": "17-bullseye",
			"INSTALL_MAVEN": "true",
			"INSTALL_GRADLE": "false",
			"NODE_VERSION": "lts/*",
			"LIQUIBASE_VERSION": "4.14.0"
		}
	},

	"mounts": [
		// Pass through Maven settings and repository cache
		"source=${localEnv:HOME}/.m2,target=/home/vscode/.m2,type=bind,consistency=cached"
	],

	"customizations": {
		"vscode": {
			"settings": {
			},

			"extensions": [
				"vscjava.vscode-java-pack",
				"redhat.vscode-yaml",
				"visualstudioexptteam.vscodeintellicode",
				"redhat.fabric8-analytics",
				"redhat.vscode-quarkus"
			]
		}
	},

	// Use 'postCreateCommand' to run commands after the container is created.
	// "postCreateCommand": "mvn compile",

	// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
	"remoteUser": "vscode",
	"features": {
		"docker-from-docker": "latest"
	}
}