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

Java option #217

Merged
merged 3 commits into from
May 22, 2024
Merged

Java option #217

merged 3 commits into from
May 22, 2024

Conversation

jburel
Copy link
Member

@jburel jburel commented May 8, 2024

This PR adds ability to rotate Java version on the omero-server
Changes have been applied to merge-ci

@pwalczysko
Copy link
Member

Aha, inside the docker I can see

[root@26afd7f0f17d linux]# cd /var/spool/cron/
[root@26afd7f0f17d cron]# 
[root@26afd7f0f17d cron]# 
[root@26afd7f0f17d cron]# ls
root
[root@26afd7f0f17d cron]# cat root 
0 0 * * 0 ln -vfns /usr/lib/jvm/java-11-openjdk/bin/java /etc/alternatives/java
0 0 * * 1 ln -vfns /usr/lib/jvm/java-17-openjdk/bin/java /etc/alternatives/java
0 0 * * 2 ln -vfns /usr/lib/jvm/java-21-openjdk/bin/java /etc/alternatives/java
0 0 * * 3 ln -vfns /usr/lib/jvm/java-11-openjdk/bin/java /etc/alternatives/java
0 0 * * 4 ln -vfns /usr/lib/jvm/java-17-openjdk/bin/java /etc/alternatives/java
0 0 * * 5 ln -vfns /usr/lib/jvm/java-21-openjdk/bin/java /etc/alternatives/java
0 0 * * 6 ln -vfns /usr/lib/jvm/java-11-openjdk/bin/java /etc/alternatives/java

which seems to be a result of your changes (cron job)

@pwalczysko
Copy link
Member

today's java version is

[root@26afd7f0f17d cron]# java --version
openjdk 11.0.22 2024-01-16 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.22.0.7-1) (build 11.0.22+7-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.22.0.7-1) (build 11.0.22+7-LTS, mixed mode, sharing)

@pwalczysko
Copy link
Member

I am still confused about: Whilst being inside the docker, how do I activate the omero-server venv to be able to run cmds like omero admin diagnostics ?

@jburel
Copy link
Member Author

jburel commented May 22, 2024

in the docker container, you will see under /home/omero/workspace/OMERO-server a virtual environment .venv3,
activate that virtual environment then you can access the omero commands

@jburel
Copy link
Member Author

jburel commented May 22, 2024

Today's version

java -version
openjdk version "17.0.11" 2024-04-16 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.11.0.9-3) (build 17.0.11+9-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.11.0.9-3) (build 17.0.11+9-LTS, mixed mode, sharing)

@jburel jburel merged commit fd680ef into ome:master May 22, 2024
1 check passed
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.

2 participants