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

Install jenv to handle JDK versions #94

Merged
merged 6 commits into from
Sep 15, 2020
Merged

Install jenv to handle JDK versions #94

merged 6 commits into from
Sep 15, 2020

Conversation

ferrandp
Copy link
Contributor

Close #93

Add support for Jenv and JDK 8

@ferrandp ferrandp requested a review from sjcqs September 15, 2020 09:34
@sjcqs sjcqs changed the title Feature/jenv Install jenv to handle JDK versions Sep 15, 2020
README.md Outdated
Comment on lines 36 to 38
Images support multiple JDK, using [Jenv](https://www.jenv.be/).
By default JDK 11 is used, but JDK 8 is also supported (use `jenv global 1.8`).
To choose a JDK, make sure the script executes on a bash shell, then use Jenv with the desired version:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Images support multiple JDK, using [Jenv](https://www.jenv.be/).
By default JDK 11 is used, but JDK 8 is also supported (use `jenv global 1.8`).
To choose a JDK, make sure the script executes on a bash shell, then use Jenv with the desired version:
Images support multiple JDK using [Jenv](https://www.jenv.be/).
The default JDK is JDK 11 is used, but JDK 8 is also supported (use `jenv global 1.8`).
To choose a JDK, make sure the script executes on a bash shell, then use Jenv to set the desired version:

Dockerfile Outdated
RUN jenv add ${JDK_ROOT}/java-11-openjdk-amd64
RUN echo 'export PATH="$JENV_ROOT/bin:$PATH"' >> ~/.bashrc
RUN echo 'eval "$(jenv init -)"' >> ~/.bashrc
RUN source ~/.bashrc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need it

@ferrandp ferrandp requested a review from sjcqs September 15, 2020 11:32
@sjcqs sjcqs changed the base branch from main to develop September 15, 2020 12:45
@sjcqs sjcqs merged commit 2dc0722 into develop Sep 15, 2020
@sjcqs sjcqs deleted the feature/jenv branch September 15, 2020 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support of different JDK versions
2 participants