Git Product home page Git Product logo

Comments (3)

ihuaylupo avatar ihuaylupo commented on August 14, 2024

I will take a look at it. But If that's the case we should remove the run apk from the dockerfile. (I'm not taking advantage of the benefits of that apk so it's safe to remove it) Changing the base image to 14 is not a good idea because you will be using Java 14 instead of 11.

from manning-smia.

ezazpi avatar ezazpi commented on August 14, 2024

Thank you. I switched to 11, but still encountered the apk error (updated pom.xml to 11 and dockerfile's FROM entries to openjdk:11-slim). From your output, I know you did not encounter the apk error so I'm not sure if this is unique to me. I also tried apt-get, but had the same errors.

FROM alpine:3.4 is only to handle the apk entry, I returned to using FROM openjdk:14-slim just before the ARG DEPENDENCY line. This ensures LicenseServiceApplication will be found in the classpath and so that Java can be found. That attached file contains the dockerfile details. The dockerfile build is successful, as was the docker run command. As you mentioned, if netcat-openbsd is not being used, it's probably better to not include it and save on download time.

dockerfile.txt

from manning-smia.

ihuaylupo avatar ihuaylupo commented on August 14, 2024

Hi, you can also use the dockerfile located in the chapter4 folder. I just ran the command mvn clean package dockerfile:build and is working.

Thanks for letting me know. I will be updating the content of the chapter to remove the apk line from the code listings.

from manning-smia.

Related Issues (20)

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.