Open dingxiong opened 1 year ago
I am getting the same issue with latest image. @dingxiong - Did you get any solution for it?
@abhishek1811 I ended up forking this repo and started from an old commit to implement what I need.
@dingxiong - Can you share any details which commit you used? Do you have docker image for your fix? I can trying to POC this tool and just want to deploy it to K8.
@abhishek1811 see this https://github.com/dingxiong/diffy/tree/old-working-example
I got this working with following Dockerfile:
# build image
FROM maven:3.8.6-openjdk-18 as builder
ENV HOME=/usr/local/src
RUN mkdir -p $HOME
WORKDIR $HOME
# install cached version of pom.xml
ADD maven_docker_cache.xml $HOME
RUN mvn verify -f maven_docker_cache.xml --fail-never
# install node v16.14.0 and yarn v1.22.19
RUN mvn com.github.eirslett:frontend-maven-plugin:install-node-and-yarn -DnodeVersion=v16.14.0 -DyarnVersion=v1.22.19 -f maven_docker_cache.xml
# install dependencies in frontend/package.json
RUN mkdir -p $HOME/frontend
ADD frontend/package.json $HOME/frontend
RUN mvn com.github.eirslett:frontend-maven-plugin:yarn -f maven_docker_cache.xml
# install dependencies in pom.xml
ADD pom.xml $HOME
RUN mvn verify --fail-never
# finally, copy, compile, bundle, and package everything
ADD . $HOME
RUN mvn package
RUN ls
RUN mv target /target
RUN mv agent /agent
# production image
FROM openjdk:17.0.2-jdk-bullseye
# FROM openjdk:8-jre-alpine
COPY --from=builder /target/diffy.jar /diffy.jar
#COPY --from=builder /agent/opentelemetry-javaagent.jar /opentelemetry-javaagent.jar
ENTRYPOINT ["java", "-jar", "diffy.jar"]
CMD []
Fixed this by changing maven:3.8.6-openjdk-18
to maven:3.8-eclipse-temurin-17-focal
in the Dockerfile
side track question, is it possible to connect to an external mongo DB?
Hey guys, I am deploying diffy to AWS EKS. and the config is like below
The container keeps crashing, the error logs are
Any clue on where the problem is?