refactor(docker): consolidate JVM options into JAVA_TOOL_OPTIONS (#1074)
This commit is contained in:
+17
-15
@@ -47,9 +47,9 @@ ARG KEPUBIFY_VERSION="4.0.4"
|
|||||||
ARG KEPUBIFY_AMD64_CHECKSUM="sha256:37d7628d26c5c906f607f24b36f781f306075e7073a6fe7820a751bb60431fc5"
|
ARG KEPUBIFY_AMD64_CHECKSUM="sha256:37d7628d26c5c906f607f24b36f781f306075e7073a6fe7820a751bb60431fc5"
|
||||||
|
|
||||||
ADD \
|
ADD \
|
||||||
--checksum="${KEPUBIFY_AMD64_CHECKSUM}" \
|
--checksum="${KEPUBIFY_AMD64_CHECKSUM}" \
|
||||||
--chmod=755 \
|
--chmod=755 \
|
||||||
https://github.com/pgaskin/kepubify/releases/download/v${KEPUBIFY_VERSION}/kepubify-linux-64bit /kepubify
|
https://github.com/pgaskin/kepubify/releases/download/v${KEPUBIFY_VERSION}/kepubify-linux-64bit /kepubify
|
||||||
|
|
||||||
FROM scratch AS kepubify-layer-arm64
|
FROM scratch AS kepubify-layer-arm64
|
||||||
|
|
||||||
@@ -57,9 +57,9 @@ ARG KEPUBIFY_VERSION="4.0.4"
|
|||||||
ARG KEPUBIFY_ARM64_CHECKSUM="sha256:5a15b8f6f6a96216c69330601bca29638cfee50f7bf48712795cff88ae2d03a3"
|
ARG KEPUBIFY_ARM64_CHECKSUM="sha256:5a15b8f6f6a96216c69330601bca29638cfee50f7bf48712795cff88ae2d03a3"
|
||||||
|
|
||||||
ADD \
|
ADD \
|
||||||
--checksum="${KEPUBIFY_ARM64_CHECKSUM}" \
|
--checksum="${KEPUBIFY_ARM64_CHECKSUM}" \
|
||||||
--chmod=755 \
|
--chmod=755 \
|
||||||
https://github.com/pgaskin/kepubify/releases/download/v${KEPUBIFY_VERSION}/kepubify-linux-arm64 /kepubify
|
https://github.com/pgaskin/kepubify/releases/download/v${KEPUBIFY_VERSION}/kepubify-linux-arm64 /kepubify
|
||||||
|
|
||||||
FROM kepubify-layer-${TARGETARCH} AS kepubify-layer
|
FROM kepubify-layer-${TARGETARCH} AS kepubify-layer
|
||||||
|
|
||||||
@@ -81,7 +81,9 @@ ENV JAVA_TOOL_OPTIONS="-XX:+UseShenandoahGC \
|
|||||||
-XX:+UseStringDeduplication \
|
-XX:+UseStringDeduplication \
|
||||||
-XX:ShenandoahUncommitDelay=5000 \
|
-XX:ShenandoahUncommitDelay=5000 \
|
||||||
-XX:ShenandoahGuaranteedGCInterval=30000 \
|
-XX:ShenandoahGuaranteedGCInterval=30000 \
|
||||||
-XX:MaxDirectMemorySize=256m"
|
-XX:MaxDirectMemorySize=256m \
|
||||||
|
--enable-native-access=ALL-UNNAMED \
|
||||||
|
--enable-preview"
|
||||||
|
|
||||||
RUN apk add --no-cache su-exec libstdc++ libgcc libarchive && \
|
RUN apk add --no-cache su-exec libstdc++ libgcc libarchive && \
|
||||||
mkdir -p /bookdrop
|
mkdir -p /bookdrop
|
||||||
@@ -101,14 +103,14 @@ ARG APP_VERSION=development
|
|||||||
ARG APP_REVISION=unknown
|
ARG APP_REVISION=unknown
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Grimmory" \
|
LABEL org.opencontainers.image.title="Grimmory" \
|
||||||
org.opencontainers.image.description="Grimmory: a self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo and KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \
|
org.opencontainers.image.description="Grimmory: a self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo and KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \
|
||||||
org.opencontainers.image.source="https://github.com/grimmory-tools/grimmory" \
|
org.opencontainers.image.source="https://github.com/grimmory-tools/grimmory" \
|
||||||
org.opencontainers.image.url="https://github.com/grimmory-tools/grimmory" \
|
org.opencontainers.image.url="https://github.com/grimmory-tools/grimmory" \
|
||||||
org.opencontainers.image.documentation="https://grimmory.org/docs/getting-started" \
|
org.opencontainers.image.documentation="https://grimmory.org/docs/getting-started" \
|
||||||
org.opencontainers.image.version=$APP_VERSION \
|
org.opencontainers.image.version=$APP_VERSION \
|
||||||
org.opencontainers.image.revision=$APP_REVISION \
|
org.opencontainers.image.revision=$APP_REVISION \
|
||||||
org.opencontainers.image.licenses="AGPL-3.0" \
|
org.opencontainers.image.licenses="AGPL-3.0" \
|
||||||
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
|
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
|
||||||
|
|
||||||
ENV APP_VERSION=${APP_VERSION} \
|
ENV APP_VERSION=${APP_VERSION} \
|
||||||
APP_REVISION=${APP_REVISION}
|
APP_REVISION=${APP_REVISION}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
- REMOTE_DEBUG_ENABLED=true
|
- REMOTE_DEBUG_ENABLED=true
|
||||||
- ALLOWED_ORIGINS=*
|
- ALLOWED_ORIGINS=*
|
||||||
- API_DOCS_ENABLED=true
|
- API_DOCS_ENABLED=true
|
||||||
- JAVA_TOOL_OPTIONS=-XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=60.0 -XX:InitialRAMPercentage=8.0 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=48m -Xss512k -XX:CICompilerCount=2 -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:ShenandoahUncommitDelay=5000 -XX:ShenandoahGuaranteedGCInterval=30000 -XX:MaxDirectMemorySize=256m
|
- JAVA_TOOL_OPTIONS=-XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=60.0 -XX:InitialRAMPercentage=8.0 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=48m -Xss512k -XX:CICompilerCount=2 -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:ShenandoahUncommitDelay=5000 -XX:ShenandoahGuaranteedGCInterval=30000 -XX:MaxDirectMemorySize=256m --enable-native-access=ALL-UNNAMED --enable-preview
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user