Skip to content

Commit b1df122

Browse files
committed
dockerfile back in
1 parent 7cf52e4 commit b1df122

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

6_discovery.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ kubectl get all -n yourspace
3030

3131
Now invoke the "callinganother" endpoint on the myboot service
3232
----
33-
$ curl $(minikube ip):$(kubectl get service/myboot -o jsonpath="{.spec.ports[*].nodePort}")/callinganother
33+
$ curl $(minikube ip):$(kubectl get service/myboot -o jsonpath="{.spec.ports[*].nodePort}" -n myspace)/callinganother
3434
Hello from Node.js! 0 on mynode-68b9b9ffcc-wspxf
3535
----
3636

7_live_ready.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Hello from Spring Boot! 0 on myboot-859cbbfb98-4rvl8
140140
Hello from Spring Boot! 1 on myboot-859cbbfb98-4rvl8
141141
----
142142

143-
Once you understand the basics then you can try the advanced demonstration. Where the a stateful shopping cart is preserved across a rolling update based on leveraging the readiness probe.
143+
Once you understand the basics then you can try the advanced demonstration. Where a stateful shopping cart is preserved across a rolling update based on leveraging the readiness probe.
144144

145145
https://github.com/redhat-developer-demos/popular-movie-store
146146

9_debugging.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ spec:
2424
type: NodePort
2525
----
2626

27+
and Create a file called deployment.yml
28+
29+
----
30+
apiVersion: extensions/v1beta1
31+
kind: Deployment
32+
metadata:
33+
namespace: myspace
34+
----
35+
2736
mvn io.fabric8:fabric8-maven-plugin:3.5.40:setup
2837

2938
mvn fabric8:debug

hello/nodejs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Hello microservice running on NodeJS",
55
"main": "hello-http.js",
66
"scripts": {
7-
"start": "node hello-http.js"
7+
"start": "node hello-http.js"
88
},
99
"repository": {
1010
"type": "git",
1111
"url": "git+https://github.com/burrsutter/9stepsawesome/tree/master/hello/nodejs"
1212
},
13-
"author": "[email protected]",
14-
"license": "Apache-2.0"
15-
}
13+
"author": "[email protected]",
14+
"license": "Apache-2.0"
15+
}

hello/springboot/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM openjdk:8
2+
ENV JAVA_APP_JAR boot-demo-0.0.1.jar
3+
WORKDIR /app/
4+
COPY target/$JAVA_APP_JAR .
5+
EXPOSE 8080
6+
CMD java -XX:+PrintFlagsFinal -XX:+PrintGCDetails $JAVA_OPTIONS -jar $JAVA_APP_JAR

hello/springboot/src/main/java/com/burrsutter/MyRESTController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class MyRESTController {
2222
@RequestMapping("/")
2323
public String sayHello() {
2424
System.out.println("/ " + hostname);
25-
return "G'Day from Spring Boot! " + count++ + " on " + hostname + "\n";
25+
return "Aloha from Spring Boot! " + count++ + " on " + hostname + "\n";
2626
}
2727

2828
@RequestMapping("/sysresources")

0 commit comments

Comments
 (0)