devcontainer.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // java8 + android env
  2. // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
  3. // https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/java-8
  4. {
  5. "name": "Java 16",
  6. "image": "jianboy/flutter-dev-container:3.13.5",
  7. // Set *default* container specific settings.json values on container create.
  8. "settings": {
  9. "java.home": "/docker-java-home",
  10. "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current",
  11. "java.configuration.runtimes": [{
  12. "default": true,
  13. "name": "JavaSE-11",
  14. "path": "/usr/local/sdkman/candidates/java/current"
  15. }]
  16. },
  17. // Add the IDs of extensions you want installed when the container is created.
  18. "extensions": [
  19. "dart-code.dart-code",
  20. "dart-code.flutter"
  21. ],
  22. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  23. // "forwardPorts": [],
  24. // Use 'postCreateCommand' to run commands after the container is created.
  25. // "postCreateCommand": "java -version",
  26. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  27. "remoteUser": "vscode",
  28. "features": {
  29. "docker-in-docker": "latest"
  30. }
  31. }