You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.adoc
+65-8Lines changed: 65 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,25 +13,50 @@ toc::[]
13
13
14
14
## Prerequisites
15
15
This lab can be executed on a netbook with x86 architecture. For it to
16
-
be fun, you should have a decent hardware available. Beside the operating system of choice, there's only one other thing you should have installed already: A JDK.
16
+
be fun, you should have a decent hardware available. Beside the operating system of choice, there's only a couple of other thing you should have installed already:
17
17
18
18
### Hardware
19
+
20
+
#### Mac
21
+
. CPU
22
+
.. PowerPC G4
23
+
. Memory
24
+
.. 4 to 8 GB for attendees
25
+
.. 8 to 16 GB for instructors
26
+
27
+
#### Linux / Windows
28
+
19
29
. CPU
20
30
.. x86 (Intel Pentium)
21
31
.. x64 (i7 and comparable)
22
-
.. PowerPC G4
32
+
23
33
. Memory
24
34
.. 4 to 8 GB for attendees
25
35
.. 8 to 16 GB for instructors
26
36
27
37
### Software
28
38
39
+
#### Mac
29
40
. Operating System
30
-
.. Windows 7 (SP1)
31
41
.. Mac OS X (10.6.8)
42
+
. Java
43
+
.. Oracle JDK 8u45 link:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[Java SE 8 Development Kit]
44
+
.. OpenJDK
45
+
. Webbrowser
46
+
.. Chrome link:https://www.google.com/chrome/browser/desktop/[for Mac OS X 10.6 or later]
47
+
.. Firefox 31
48
+
49
+
#### Linux / Windows
50
+
. Operating System
51
+
.. Windows 7/ (SP1)
32
52
.. Fedora 21
33
53
. Java
34
-
.. Oracle JDK 8u45 or a comparable OpenJDK
54
+
.. Oracle JDK 8u45 link:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[Java SE 8 Development Kit]
@@ -225,6 +250,12 @@ If the machine state is stopped, starte it with
225
250
----
226
251
docker-machine start
227
252
----
253
+
After it is started you can find out about the IP address of your host with
254
+
[source, text]
255
+
----
256
+
docker-machine ip
257
+
----
258
+
We'll use this from now on as <HOST_IP> in the commands.
228
259
229
260
Now we need a WildFly and a database. Start with the Postgres database.
230
261
@@ -246,19 +277,45 @@ The "-f" flag keeps refreshing the logs and pushes new events directly out to th
246
277
After the database server is up and running we now need the WildFly.
247
278
[source, text]
248
279
----
249
-
docker run -d --name wildfly --link db:db <INSTRUCTOR_IP>:5000/wildfly-ticketmonster
280
+
docker run -d --name wildfly -p 8080:8080 --link db:db <INSTRUCTOR_IP>:5000/wildfly
281
+
----
282
+
This command starts a container named "wildfly" and links this container to the db container we started earlier. The other options are known to you already.
283
+
Check the logs if the server is started.
284
+
[source, text]
285
+
----
286
+
docker logs -f wildfly
250
287
----
251
288
289
+
And access the http://<HOST_IP>:8080 with your webbrowser to make sure the instance is up and running.
252
290
291
+
Now you're ready to deploy the application for the first time. Let's use JBoss Developer Studio for this............................................................................
253
292
254
-
### Deploy Ticket Monster
293
+
## Deploy an application from JBoss Developer Studio
255
294
256
-
https://github.com/rafabene/devops-demo
295
+
Start JDBS if not started. And create a server adaptor first.
296
+
297
+
.Server adapter
298
+
image::images/jbds1.png[]
299
+
300
+
Assign or create a WildFly 8.x runtime (Changed properties are highlighted.)
301
+
302
+
.WildFly Runtime Properties
303
+
image::images/jbds2.png[]
304
+
305
+
Setup the server properties in the following image. The two properties on the left are automatically propagated from the previous dialog. Additional two properties on the right side are required to disable to keep deployment scanners in sync with the server.
306
+
307
+
.Server properties
308
+
image::images/jbds3.png[]
257
309
258
-
## Deploy an application from JBoss Developer Studio
0 commit comments