Browse Source

remove 377

liuyuqi-dellpc 1 year ago
parent
commit
919ec59629

+ 1 - 2
flutter/.devcontainer/Dockerfile-3.7.7 → flutter/.devcontainer/3.7.7/Dockerfile

@@ -2,8 +2,7 @@
 
 # [Choice] Java version: 11, 16
 ARG VARIANT="16"
-#FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}
-FROM mcr.microsoft.com/devcontainers/universal:2.4.0-focal
+FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}
 
 # [Option] Install Maven
 ARG INSTALL_MAVEN="false"

+ 36 - 0
flutter/.devcontainer/3.7.7/devcontainer.json

@@ -0,0 +1,36 @@
+// java8 + android env
+// 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.233.0/containers/java-8
+{
+	"name": "Java 16",
+	"image": "jianboy/flutter-dev-container:3.13.5",
+
+	// Set *default* container specific settings.json values on container create.
+	"settings": {
+		"java.home": "/docker-java-home",
+		"java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current",
+		"java.configuration.runtimes": [{
+			"default": true,
+			"name": "JavaSE-11",
+			"path": "/usr/local/sdkman/candidates/java/current"
+		}]
+	},
+	
+	// Add the IDs of extensions you want installed when the container is created.
+	"extensions": [
+		"dart-code.dart-code",
+		"dart-code.flutter"
+	],
+
+	// 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",
+
+	// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
+	"remoteUser": "vscode",
+	"features": {
+		"docker-in-docker": "latest"
+	}
+}