Skip to content

Commit 48afec2

Browse files
committed
2 parents f49897d + 8ae0bca commit 48afec2

3 files changed

Lines changed: 26 additions & 6 deletions

File tree

-1.59 KB
Loading

instructor/readme.adoc

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ If you're executing commands in the Babun bash from here on, make sure to keep i
101101

102102
There is no in-built support for DNS and so this needs to be configured. Currently this works only on Mac and Linux, and need to be fixed for Windows https://github.com/javaee-samples/docker-java/issues/61[#61].
103103

104+
. Edit `/etc/hosts` (Mac OS / Linux)
105+
+
106+
[source, text]
107+
----
108+
<INSTRUCTOR_IP> classroom.example.com
109+
----
110+
+
111+
IMPORTANT: <INSTRUCTOR_IP> is the IP of your public interface eg. `en0, eth0`.
112+
+
113+
104114
. Install a simple dns server such as `dnsmasq` as:
105115
+
106116
[source, text]
@@ -129,6 +139,11 @@ Then to load dnsmasq now:
129139
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
130140
==> Summary
131141
🍺 /usr/local/Cellar/dnsmasq/2.72: 7 files, 492K, built in 28 seconds
142+
143+
You may need to restart Dnsmasq to get it to recognise this change:
144+
145+
sudo launchctl stop homebrew.mxcl.dnsmasq
146+
sudo launchctl start homebrew.mxcl.dnsmasq
132147
----
133148
+
134149
This can be done on Linux as:
@@ -144,9 +159,7 @@ sudo yum -­y install dnsmasq
144159
----
145160
nameserver <INSTRUCTOR_IP>
146161
----
147-
+
148-
IMPORTANT: important this is the IP of your public interface eg. `en0, eth0`
149-
+
162+
150163
. Make sure that dnsmasq starts automatically follow the instructions from brew or yum.
151164
152165
@@ -156,7 +169,7 @@ IMPORTANT: important this is the IP of your public interface eg. `en0, eth0`
156169
+
157170
[source, text]
158171
----
159-
docker-machine create --driver=virtualbox --virtualbox-memory=4096 --engine-opt dns=<INSTRUCTOR_IP> --engine-insecure-registry=classroom.example.com:5000 instructor-machine
172+
docker-machine create --driver=virtualbox --virtualbox-memory=4096 --engine-insecure-registry=classroom.example.com:5000 instructor-machine
160173
----
161174
162175
+
@@ -167,6 +180,13 @@ docker-machine create --driver=virtualbox --virtualbox-memory=4096 --engine-opt
167180
eval "$(docker-machine env instructor-machine)"
168181
----
169182
183+
+
184+
IMPORTANT: If you change your network, you may need to restart your docker machine:
185+
[source, text]
186+
----
187+
docker-machine restart instructor-machine
188+
----
189+
170190
171191
### Virtual Box Configuration
172192

instructor/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<repositories>
5151
<repository>
5252
<id>instructor-nexus-repository</id>
53-
<url>http://dockerlab:8081/content/groups/public/</url>
53+
<url>http://localhost:8081/content/groups/public/</url>
5454
<releases>
5555
<enabled>true</enabled>
5656
</releases>
@@ -62,7 +62,7 @@
6262
<pluginRepositories>
6363
<pluginRepository>
6464
<id>instructor-plugin-repository</id>
65-
<url>http://dockerlab:8081/content/groups/public/</url>
65+
<url>http://localhost:8081/content/groups/public/</url>
6666
<releases>
6767
<enabled>true</enabled>
6868
</releases>

0 commit comments

Comments
 (0)