Comments (3)
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.
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.
from manning-smia.
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)
- Chapter 11 Partitions have leader brokers without a matching listener.
- Chapter 5 Spring cloud config server native configuration is not working. HOT 8
- Cannot build chapter 5 image HOT 2
- Chapter 8 - Working with Spring Cloud Gateway, can't call another Service with Rest using the Gateway port.
- CHAPTER 9: ZONE YOUR SERVICES INTO A PUBLIC API AND PRIVATE API
- Have you ever tried to run your code? HOT 1
- KeycloackRestTemplate with service discovery capabilities HOT 1
- Chapter 5 Licensing service doesn't read properties from config server HOT 1
- Chapter 10 docker-compose.yml changes to run on MAC
- Chapter 7: management.health.circuitbreakers.enabled should be set to true
- Cant run app from docker compose file.
- Chapter 9: Information about how to propagate token when using Feign client not provided HOT 5
- Chapter 5: cannot get vault kv value that added in vault ui HOT 1
- Chapter 5: configuration property value is wrong in this code repository HOT 1
- suggestions for this book
- Is DB auto-populated? HOT 1
- Build Failure When Running "mvn clean package dockerfile:build" HOT 1
- Issues with generating tokens to access organization services HOT 1
- Cannot start project HOT 2
- Error I'm facing in Chapter 5 section 5.2.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manning-smia.