devcontainer.json 1.7 KB

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