Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to allow the JDK version to be selected #166

Open
ossarga opened this issue May 15, 2020 · 2 comments
Open

Add an option to allow the JDK version to be selected #166

ossarga opened this issue May 15, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@ossarga
Copy link
Contributor

ossarga commented May 15, 2020

As part of the use command add in an option to select the JDK to install on the node. We could do this by having pre-canned install scripts to install the different JDK versions. This would mean the valid values that can be supplied to the option are fixed.

In the above case, by default we install JDK 1.8 and copy its install script to the provisioning directory. If a different JDK version is specified, we would copy the appropriate install script to the provisioning directory.

@ossarga ossarga added the enhancement New feature or request label May 15, 2020
@ossarga
Copy link
Contributor Author

ossarga commented May 15, 2020

@rzvoncek has suggested we https://sdkman.io/ to switch JDK versions. We should definitely give this a try.

@ossarga
Copy link
Contributor Author

ossarga commented May 19, 2020

@adejanovski has run tests that required the ability to switch Java clients using Jabba.

curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
jabba install [email protected]
jabba alias default [email protected]
sudo update-alternatives --install /usr/bin/java java ${JAVA_HOME%*/}/bin/java 20000
sudo update-alternatives --install /usr/bin/javac javac ${JAVA_HOME%*/}/bin/javac 20000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant