Skip to content

Commit 7f8f82a

Browse files
committed
1 parent de165ea commit 7f8f82a

1 file changed

Lines changed: 65 additions & 8 deletions

File tree

readme.adoc

Lines changed: 65 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,50 @@ toc::[]
1313

1414
## Prerequisites
1515
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:
1717

1818
### 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+
1929
. CPU
2030
.. x86 (Intel Pentium)
2131
.. x64 (i7 and comparable)
22-
.. PowerPC G4
32+
2333
. Memory
2434
.. 4 to 8 GB for attendees
2535
.. 8 to 16 GB for instructors
2636

2737
### Software
2838

39+
#### Mac
2940
. Operating System
30-
.. Windows 7 (SP1)
3141
.. 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)
3252
.. Fedora 21
3353
. 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]
55+
.. comparable OpenJDK
56+
. Webbrowser
57+
.. Chrome 43 link:https://www.google.com/chrome/browser/desktop/[Windows 8/7 64-bit]
58+
.. Firefox 31
59+
3560

3661
## Setup Environments
3762

@@ -225,6 +250,12 @@ If the machine state is stopped, starte it with
225250
----
226251
docker-machine start
227252
----
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.
228259

229260
Now we need a WildFly and a database. Start with the Postgres database.
230261

@@ -246,19 +277,45 @@ The "-f" flag keeps refreshing the logs and pushes new events directly out to th
246277
After the database server is up and running we now need the WildFly.
247278
[source, text]
248279
----
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
250287
----
251288

289+
And access the http://<HOST_IP>:8080 with your webbrowser to make sure the instance is up and running.
252290

291+
Now you're ready to deploy the application for the first time. Let's use JBoss Developer Studio for this............................................................................
253292

254-
### Deploy Ticket Monster
293+
## Deploy an application from JBoss Developer Studio
255294

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[]
257309

258-
## Deploy an application from JBoss Developer Studio
259310

260311
http://blog.arungupta.me/deploy-wildfly-docker-eclipse/
261312

313+
314+
### Deploy Ticket Monster
315+
316+
https://github.com/rafabene/devops-demo
317+
318+
262319
## Cluster using Swarm
263320

264321
We don't setup Kubernetes on Windows yet (might be an option to use jube someday)

0 commit comments

Comments
 (0)