devcontainer.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. // "build": {
  8. // "dockerfile": "Dockerfile",
  9. // "args": {
  10. // // Use the VARIANT arg to pick a Debian OS version: buster, bullseye
  11. // // Use bullseye when running on local arm64/Apple Silicon.
  12. // "VARIANT": "buster",
  13. // // Options
  14. // "INSTALL_MAVEN": "true",
  15. // "INSTALL_GRADLE": "true",
  16. // "NODE_VERSION": "lts/*"
  17. // }
  18. // },
  19. "settings": {
  20. "java.home": "/docker-java-home",
  21. "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current",
  22. "java.configuration.runtimes": [{
  23. "default": true,
  24. "name": "JavaSE-11",
  25. "path": "/usr/local/sdkman/candidates/java/current"
  26. }]
  27. },
  28. "extensions": [
  29. "dart-code.dart-code",
  30. "dart-code.flutter"
  31. ],
  32. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  33. // "forwardPorts": [],
  34. // Use 'postCreateCommand' to run commands after the container is created.
  35. // "postCreateCommand": "java -version",
  36. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  37. "remoteUser": "vscode",
  38. "features": {
  39. // "docker-in-docker": "latest"
  40. }
  41. }