carnellj / spmia-chapter6 Goto Github PK
View Code? Open in Web Editor NEWSpring Microservices in Action Chapter 6
Spring Microservices in Action Chapter 6
On running mvn clean package docker:build I get:
`Step 4/8 : RUN cd /tmp/ && curl -k -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/
---> Running in b6a34b930c4e
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --
:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:
-- --:--:-- 0
100 317 100 317 0 0 377 0 --:--:-- --:
100 317 100 317 0 0 376 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --
:--:-- --:--:-- --:--:-- 0
100 5307 100 5307 0 0 4259 0 0:00:
01 0:00:01 --:--:-- 4259
Archive: jce_policy-8.zip
unzip: short read
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for thoughtmechanix-parent-pom 0.0.1-SNAPSHOT:
[INFO]
[INFO] Config Server ...................................... FAILURE [ 9.760 s]
[INFO] Eagle Eye Licensing Service ........................ SKIPPED
[INFO] Eagle Eye Organization Service ..................... SKIPPED
[INFO] New Version of Eagle Eye Organization Service ...... SKIPPED
[INFO] Eureka Server ...................................... SKIPPED
[INFO] Eagle Eye Special Routes Service ................... SKIPPED
[INFO] Zuul Proxy Server .................................. SKIPPED
[INFO] thoughtmechanix-parent-pom ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.433 s
[INFO] Finished at: 2019-03-21T05:18:25+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project configurationserver: Exception caught: The command '/bin/sh -c cd /tmp/ && curl -k -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/' returned a non-zero code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException`
I tried these steps locally and it worked. Maybe this path is wrong: /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/
In client yaml files you have:
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761
I believe it should be...
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761
You get away with it in your examples since the default zone is http://localhost:8761
I had issues when I tried to use a different port. What worked for me was...
Eureka server yaml should have:
server:
port: 8761
eureka:
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://localhost:${server.port}/eureka/
...where as client yaml should have...
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
I've really enjoyed the book by the way. It's an excellent read. Cheers
Fixed in PR #4 (Add indent to Zuul YAML route)
As the code in this repository is associated with a Manning book I would be extremely grateful if you could add an open source license.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.