-
Notifications
You must be signed in to change notification settings - Fork 329
Switch to distroless java11 base image. #199
Switch to distroless java11 base image. #199
Conversation
thanks I will try to build it now! |
this works.. just pondering if we shouldn't make this a base image instead as it will help the total GB's pulled when people are doing things like docker-compose off a hotel or conference net |
Migrated most of the images and came up with these findings
|
thanks for the update. only stronger opinion is on kafka+zk this is not a
production image by the way.. none except zipkin are. people have so many
problems with Kafka setup I really prefer to not split the image only to
have a new possible problem ;)
|
Ok I think I'll play with the Kafka a bit more. Do you remember why we use |
there is a race condition on ZK startup. iirc Kafka gets really upset if ZK
is down
this is the thing I don't want first time users to end up having to think
too much about ;)
…On Tue, Feb 19, 2019, 7:05 PM Anuraag Agrawal ***@***.*** wrote:
Ok I think I'll play with the Kafka a bit more. Do you remember why we use
runit and not just run the commands directly? Do Kafka and Zookeeper just
randomly shutdown a lot and need to be restarted within the container? Ugh
;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD61xvvn8aNVjdnTawkOe296P4WSFjZks5vO9p4gaJpZM4a8_MB>
.
|
Ok think I got everything working
This means there are two base images involved now, one that includes JRE11 based on distroless for all the Java stuff and one that is |
wow.. sounds like you are ready for me to test. is that right? |
Yup think it should be ready to test |
I verified that the elasticsearch and zipkin images use the same base layers ( building with docker-compose). It is a shame that the JRE is 170MiB, but that's
I also verified that the mysql image heft is in our realm to control :). It isn't optimized at all (in our Dockerfile and before this changed)
|
@@ -9,6 +12,19 @@ mv apache-cassandra-$CASSANDRA_VERSION/* /cassandra/ | |||
echo "*** Installing Python" | |||
apk add --update --no-cache python | |||
|
|||
# Default conf for Cassandra 3.x does not work on modern JVMs due to many deprecated flags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@openzipkin/cassandra PTAL noting this is a demo image and not intended for prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zipkin didn't start but probably something small.
still getting the following running with docker-compose. I'll try to fix it
|
update: I've tested all images by building local except the elasticsearch ones.. doing that now |
ok tested all images. we're good. understood that the zipkin-dependencies image can't use distroless as it is pinned to JDK 1.8 |
Thanks again @anuraaga you rock! |
Fixes #197 see the issue for the image sizes.
If we get a lot of boringssl-related issues, using this image could help since we can disable boringssl and still have HTTP/2. Though since it uses glibc instead of musl, maybe random native library issues would be less frequent anyways.
Moved the command into a script since I was having trouble getting the syntax to be accepted by busybox and it's arcane enough to have its own script I guess.
I only really tested with the defaults, not with any of the environment variable knobs set.