Skip to content

Commit

Permalink
Merge pull request #217 from jburel/java_option
Browse files Browse the repository at this point in the history
Java option
  • Loading branch information
jburel authored May 22, 2024
2 parents 48c5867 + 27fb9bf commit fd680ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
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

0 comments on commit fd680ef

Please sign in to comment.