Skip to content

Commit

Permalink
reduces stripped JRE to what zipkin needs. (#84)
Browse files Browse the repository at this point in the history
Before, we added extra modules that are only used by our demo images.
This turns out a fool's errand as recent Elasticsearch needs even more
than before (e.g. kerberos stuff). Instead, we will switch the image to
only pick what's required in the zipkin builds. Ancillary images can use
the full dist.

Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
codefromthecrypt authored and Adrian Cole committed Dec 15, 2023
1 parent 19aa6e7 commit 6099b0a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,12 @@ java.instrument,\
jdk.jdwp.agent,\
# JVM metrics such as garbage collection
jdk.management,\
# Prevents us from needing a different base layer for kafka-zookeeper
# non-Netty based DNS
java.naming,jdk.naming.dns,\
# TLS handehake with servers that use elliptic curve certificates
# TLS handshake with servers that use elliptic curve certificates
jdk.crypto.ec,\
# jdk.unsupported is undocumented but contains Unsafe, which is used by several dependencies to
# improve performance. Ex. sun.misc.Unsafe and friends
jdk.unsupported,\
# Elasticsearch 7+ crashes without Thai Segmentation support
# Add <900K instead of a different base layer
jdk.localedata --include-locales en,th \
jdk.localedata --include-locales en \
--output jre

# Our JRE image is minimal: Only Alpine, gcompat and a stripped down JRE
Expand Down

0 comments on commit 6099b0a

Please sign in to comment.