You can use "I'll install it by myself" way or docker compose, whatever works for you better. Docker compose script is here, manual installation steps are listed below. Please make sure to follow other steps.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html