A setup for working on Java in a vscode or gitpod container.
Using Dockerfile from https://github.com/microsoft/vscode-dev-containers/tree/master/containers/java-8
FROM openjdk:8-jdk
- DockerfileFROM buildpack-deps:buster-scm
- Dockerfile- Debian “buster” based.
VS Code Remote Development Container Docker Hub
Using Gitpod workspace full gitpod/workspace-full
https://github.com/gitpod-io/workspace-images/tree/master/full
FROM buildpack-deps:focal
- Dockerfile- Ubuntu Focal based.
Use SDKMAN! to change Java version
See available Java versions
sdk list java
Install and set as default (current version)
sdk install java 8.0.262-amzn
sdk install java 11.0.8-amzn
sdk default java 11.0.8-amzn