Skip to content

Commit

Permalink
added devtools, tweaked docs
Browse files Browse the repository at this point in the history
  • Loading branch information
burrsutter committed Nov 7, 2018
1 parent b1cf7e1 commit 48ba282
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
7 changes: 7 additions & 0 deletions 2_building_running.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ status:
phase: Active
----

You can also use the
----
kubect get namespace/demo --export -o yaml
----
for something cleaner, something you might store and use later with kubectl apply -f


Deleting a Namespace is also available via command

----
Expand Down
13 changes: 11 additions & 2 deletions 9_databases.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,19 @@ image::chrome_rest_api.png[Browser Questions]
(under development)

To share the in-VM data directory with the host OS

minikube automatically shares /Users with the VM

----
minikube ssh
cd /Users
----

minishift does not automatically share a folder with the VM, so for equivalent functionality

----
minikube mount ~/minikube_0.29.0/data:/data
minishift hostfolder add -t sshfs --source /Users --target /Users Users
----
or minikube mount host-directory:vm-directory



Expand Down
5 changes: 5 additions & 0 deletions hello/springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MyRESTController {
private Environment environment;

final String hostname = System.getenv().getOrDefault("HOSTNAME", "unknown");
String greeting = "Aloha";
String greeting;

private int count = 0; // simple counter to see lifecycle

Expand Down

0 comments on commit 48ba282

Please sign in to comment.