-
Notifications
You must be signed in to change notification settings - Fork 5
JDK Management
Sven Ruppert edited this page Apr 8, 2018
·
1 revision
Depending on the new release train Oracle will deliver every six month a new JDK. Based on this, we have to deal with much more JDK versions in the future as we had in the past. The same happened with the amount of JDK vendors. We have right now Open / Oracle / Zulu and IBM.
The good news are, we are not alone with this challenge. The community is working on this topic too.
Here we will have a look at one solution that can be used on CommandLine and is available for Windows, Linux and OSX.
The solution we are using here is called Jabba and is available at github.
Install the tool and test if this is working.
- docker pull debian
- docker run -i -t --name debian debian /bin/bash
- apt-get update
- apt-get install curl
- exit
- docker commit -m "added curl" debian hackingday/debian:v001
- docker run -i -t --name hackingday-001 hackingday/debian:v001 /bin/bash
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba
- exit
- docker commit -m "added jabba" hackingday-001 hackingday/debian:v002
Now we are adding a few jdk´s
- docker run -i -t --name jdk hackingday/debian:v002 /bin/bash
- jabba install [email protected]
- jabba install [email protected]
- jabba install [email protected]
- jabba install [email protected]
- jabba use
- docker commit -m "added open jdk 8/9/10/11" jdk hackingday/jdk:v001
for feedback or questions :
- Twitter : @SvenRuppert
- email: sven.ruppert (a) gmail.com