40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
 | 
						|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java
 | 
						|
{
 | 
						|
	"name": "Java",
 | 
						|
	"build": {
 | 
						|
		"dockerfile": "Dockerfile",
 | 
						|
		"args": {
 | 
						|
			// Update the VARIANT arg to pick a Java version: 8, 11, 17
 | 
						|
			// Append -bullseye or -buster to pin to an OS version.
 | 
						|
			// Use the -bullseye variants on local arm64/Apple Silicon.
 | 
						|
			"VARIANT": "17-bullseye",
 | 
						|
			// Options
 | 
						|
			"INSTALL_MAVEN": "true",
 | 
						|
			"MAVEN_VERSION": "3.8.5",
 | 
						|
			"INSTALL_GRADLE": "false",
 | 
						|
			"NODE_VERSION": "lts/*"
 | 
						|
		}
 | 
						|
	},
 | 
						|
 | 
						|
	// Set *default* container specific settings.json values on container create.
 | 
						|
	"settings": {
 | 
						|
		"java.home": "/docker-java-home",
 | 
						|
		"maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn"
 | 
						|
	},
 | 
						|
 | 
						|
	// Add the IDs of extensions you want installed when the container is created.
 | 
						|
	"extensions": [
 | 
						|
		"vscjava.vscode-java-pack"
 | 
						|
	],
 | 
						|
 | 
						|
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
 | 
						|
	// "forwardPorts": [],
 | 
						|
 | 
						|
	// Use 'postCreateCommand' to run commands after the container is created.
 | 
						|
	// "postCreateCommand": "java -version",
 | 
						|
 | 
						|
	// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
 | 
						|
	"remoteUser": "vscode"
 | 
						|
}
 |