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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions home/jobs/OMERO-server/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ omero config set omero.security.trustStore /etc/pki/ca-trust/extracted/java/cace
omero config set omero.security.trustStorePassword changeit
omero config set omero.mail.config true
omero config set omero.server.nodedescriptors master:Blitz-0,Indexer-0,Processor-0,Storm,Tables-0
omero config set omero.jvmcfg.append '--add-opens java.base/java.lang=ALL-UNNAMED --add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED'

# omero config set omero.mail.from your_address
# omero config set omero.mail.host your_smtp_server_for_example
omero certificates
Expand Down
9 changes: 9 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ RUN dnf -y install epel-release
RUN dnf -y update
RUN dnf -y install blosc

# install various Java versions
RUN dnf install -y java-21-openjdk-devel java-17-openjdk-devel
RUN dnf install -y cronie

# Add cron job to rotate java versions
ADD ./root /var/spool/cron/
RUN chmod +x /var/spool/cron/root


EXPOSE 4064
EXPOSE 4063

Expand Down
7 changes: 7 additions & 0 deletions server/root
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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