-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
0.2/Dockerfile
Outdated
@@ -39,7 +39,7 @@ RUN apt update -y && apt install -y gpg unzip curl && \ | |||
COPY conf/janusgraph-berkeleyje-lucene-server.properties conf/log4j-server.properties ${JANUS_HOME}/conf/gremlin-server/ | |||
COPY scripts/remote-connect.groovy ${JANUS_HOME}/scripts/ | |||
|
|||
FROM openjdk:8-jre-slim-buster | |||
FROM eclipse-temurin:8-jdk |
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.
Reason for this change: openjdk docker image is deprecated.
See https://hub.docker.com/_/openjdk
I tested https://hub.docker.com/r/liboxuanhk/janusgraph/tags on my ARM machine locally, but it would be great if someone could test it on an AMD machine. |
I just skimmed over the changes and have some early comments:
But thanks a lot for tackling this issue, @li-boxuan! |
We can, but then we cannot test it (due to docker/buildx#166), so it does not make too much sense to build without testing. With this PR, we build the AMD image and test it in
I was debugging an integration test (JanusGraphSerializerBaseIT) but couldn't get it working. Then I realized it was because of the incompatibility between ARM (my machine) and AMD (officially built image). Now I can run the test with the ARM image. |
238fa51
to
9af9aa4
Compare
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.
I still don't really like that push-images.sh
now builds images itself and then pushes those directly as these images can differ from those that we've built and tested before, e.g., if we use different build-args or versions.
But I guess we have to live with that for now if we want ARM support.
I added two minor comments. Apart from that, this looks good to me.
1dbd4e2
to
e98c2e2
Compare
Closes JanusGraph#92 Signed-off-by: Boxuan Li <liboxuan@connect.hku.hk>
e98c2e2
to
b601d00
Compare
One way is to tag arm/amd differently. For example, we would have |
Agreed, I also just wanted to mention this as a possible problem that we should keep in mind for the future, but still accepted the PR as I also came to the conclusion that it's the best option for now. |
Closes #92