Skip to content

Commit

Permalink
chore: adding sdo jars (#106)
Browse files Browse the repository at this point in the history
* chore: adding sdo jars

* chore: add -server flag to jvm

* chore: try jdk 23

* chore: reduce log noise and remove unnecessary files

* chore: reduce more noise
  • Loading branch information
mishraomp authored Jan 22, 2025
1 parent 442417c commit 86aa7c5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions charts/nr-metabase/templates/metabase/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ data:
<Loggers>
<Logger name="metabase" level="INFO"/>
<Logger name="metabase.sync" level="ERROR"/>
<Logger name="metabase.driver" level="ERROR"/>
<Logger name="metabase.server.middleware" level="DEBUG"/>
<Root level="ERROR">
Expand Down Expand Up @@ -68,7 +70,7 @@ data:
if [ -f /config/log4j2.xml ]; then
java -Duser.name=metabase -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -XX:TieredStopAtLevel=4 -XX:+UseZGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=350m -XX:+ExitOnOutOfMemoryError -Dlog4j.configurationFile=file:/config/log4j2.xml -jar metabase.jar
java -server -Duser.name=metabase -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -XX:TieredStopAtLevel=4 -XX:+UseZGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=350m -XX:+ExitOnOutOfMemoryError -Dlog4j.configurationFile=file:/config/log4j2.xml -jar metabase.jar
else
java -Duser.name=metabase -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -XX:TieredStopAtLevel=4 -XX:+UseZGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=350m -XX:+ExitOnOutOfMemoryError -jar metabase.jar
java -server -Duser.name=metabase -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -XX:TieredStopAtLevel=4 -XX:+UseZGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=350m -XX:+ExitOnOutOfMemoryError -jar metabase.jar
fi
4 changes: 1 addition & 3 deletions metabase/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#This Dockerfile mounts the certs
FROM eclipse-temurin:21
FROM eclipse-temurin:23
WORKDIR /app
COPY ojdbc8-full /app/plugins/
ARG METABASE_VERSION
Expand All @@ -12,8 +12,6 @@ bash curl wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q https://downloads.metabase.com/${METABASE_VER}/metabase.jar \
&& chmod -R 777 /app
COPY InstallCert.class .
COPY "InstallCert\$SavingTrustManager.class" .
RUN chmod -R 777 /opt && chmod -R 777 /etc/ca-certificates && chmod -R 777 "${JAVA_HOME}"/lib/security
EXPOSE 3000
USER 185
Expand Down
Binary file removed metabase/InstallCert$SavingTrustManager.class
Binary file not shown.
Binary file removed metabase/InstallCert.class
Binary file not shown.
Binary file added metabase/ojdbc8-full/sdoapi-11.2.0.jar
Binary file not shown.
Binary file added metabase/ojdbc8-full/sdoutl-11.2.0.jar
Binary file not shown.

0 comments on commit 86aa7c5

Please sign in to comment.