Skip to content

Commit

Permalink
java -Xshare:dump broken in JDK 21.0.5 (see adoptium/adoptium-support…
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Nov 21, 2024
1 parent 02d71c2 commit 0ba6f35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ RUN set -eux \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends filebot \
&& rm -rvf /var/lib/apt/lists/* \
## ** generate CDS archive
&& java -Xshare:dump -XX:SharedClassListFile="/usr/share/filebot/jsa/classes.jsa.lst" -XX:SharedArchiveFile="/usr/share/filebot/jsa/classes.jsa" -jar "/usr/share/filebot/jar/filebot.jar" \
## BROKEN (https://github.com/adoptium/adoptium-support/issues/1185) ** generate CDS archive
## && java -Xshare:dump -XX:SharedClassListFile="/usr/share/filebot/jsa/classes.jsa.lst" -XX:SharedArchiveFile="/usr/share/filebot/jsa/classes.jsa" -jar "/usr/share/filebot/jar/filebot.jar" \
## BROKEN (https://github.com/adoptium/adoptium-support/issues/1185) ** apply custom application configuration
## && sed -i 's|APP_DATA=.*|APP_DATA="$HOME"|g; s|-Dapplication.deployment=deb|-Dapplication.deployment=docker -Duser.home="$HOME" -XX:SharedArchiveFile=/usr/share/filebot/jsa/classes.jsa|g' /usr/bin/filebot
## ** apply custom application configuration
&& sed -i 's|APP_DATA=.*|APP_DATA="$HOME"|g; s|-Dapplication.deployment=deb|-Dapplication.deployment=docker -Duser.home="$HOME" -XX:SharedArchiveFile=/usr/share/filebot/jsa/classes.jsa|g' /usr/bin/filebot
&& sed -i 's|APP_DATA=.*|APP_DATA="$HOME"|g; s|-Dapplication.deployment=deb|-Dapplication.deployment=docker -Duser.home="$HOME"|g' /usr/bin/filebot


# install custom launcher scripts
Expand Down

0 comments on commit 0ba6f35

Please sign in to comment.