Git Product home page Git Product logo

Comments (8)

Arkinator avatar Arkinator commented on June 9, 2024 1

The file was stripped during the release to github due to internal information being present. I'm sorry about that. I'm no longer with the team but I'll adress the issue.

The dockerfile itself is really nothing special, the following might be a good starting point:

FROM adoptopenjdk/maven-openjdk11:latest
RUN mkdir /app
COPY /target/idp-server*.jar /app/idp-server.jar
WORKDIR /app
HEALTHCHECK CMD curl --fail http://localhost:8080/actuator/health | grep UP || exit 1
CMD ["java", "-jar", "idp-server.jar"]

from ref-idp-server.

Arkinator avatar Arkinator commented on June 9, 2024

hmm, works on my machine :D what goals did you execute?
(I actually use pretty much the same setup, the only difference being java 12, but that sounds rather unlikely)

from ref-idp-server.

CWeykopf avatar CWeykopf commented on June 9, 2024

First to say, I have no experience with Java nor Maven.

I retried to build with Java 13.0.1 without success.
To build I followed the instructions in the Readme.
man clean compile rund successful.
mvn install fails with the Docker error. The tests run without error. Also mvn test runs fine.

docker-compose build --build-arg mode=tested fails also but with an other error.
Building idpserver
[+] Building 0.0s (1/2)
=> [internal] load build definition from Dockerfile => => transferring dockerfile: 2B failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount998915947/Dockerfile: no such file or directory
ERROR: Service 'idpserver' failed to build : Build failed

There is no /var/lib/docker directory. The Docker runs fine with other images.

from ref-idp-server.

Kgessner avatar Kgessner commented on June 9, 2024

I'm very much surprised that Arkinator has a working docker compose part on his machine (linux?)
there are necessary files missing on github like
idp-server/buildDockerImage.sh
idp-server/deleteDockerImage.sh
idp-server/Dockerfile
at least the dockerfile would be useful ;-)

from ref-idp-server.

DaMo86 avatar DaMo86 commented on June 9, 2024

I see the same errors, the files are just missing in the repo - can you maybe add the Dockerfile @Arkinator?
According to the idp-server/pom.xml -> maven-resource-plugin they should be located in ${basedir}/src/main/docker.

from ref-idp-server.

DaMo86 avatar DaMo86 commented on June 9, 2024

Thank you for the fast reply!

I was able to build the system with a slight change (the .jar is already copied to the tmpDocker folder, so no target necessary):
COPY ./idp-server*.jar /app/idp-server.jar

I created 4 similiar Dockerfiles, which copying the corresponding artifact (e.g. idp-sektoral*.jar, idp-server*.jar, ...):
grafik

from ref-idp-server.

DaMo86 avatar DaMo86 commented on June 9, 2024

I also found the overall problem: looks like everything about Docker is ignored in .gitignore

from ref-idp-server.

RStaeber avatar RStaeber commented on June 9, 2024

There is an image available on docker hub as well:
https://hub.docker.com/r/gematik1/idp-server/

from ref-idp-server.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.