Skip to content

Commit 96e825e

Browse files
committed
Finished JDBS - Shared Folder Deployment
1 parent 7f8f82a commit 96e825e

5 files changed

Lines changed: 39 additions & 2 deletions

File tree

attendees/readme.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,20 @@ To install JBoss Developer Studio stand-alone, complete the following steps:
101101
cd /download/path/
102102
java -jar jboss-devstudio-8.1.0.GA-jar_universal.jar
103103
----
104+
105+
## Add a host entry for your dockerhost
106+
To make it easiert to access the containers we add an entry into the host mapping table............................................................................
107+
First, find out the IP address of your machine:
108+
109+
110+
[source, text]
111+
----
112+
docker-machine ip
113+
----
114+
115+
And edit the /etc/hosts (Mac OS) or C:\Windows\System32\drivers\etc\hosts (Windows)
116+
and add
117+
[source, text]
118+
----
119+
<OUTPUT OF DOCKER MACHINE COMMAND> dockerhost
120+
----

images/jbds4.png

225 KB
Loading

images/jbds5.png

38.6 KB
Loading

images/jbds6.png

53.3 KB
Loading

readme.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,13 @@ The "-f" flag keeps refreshing the logs and pushes new events directly out to th
277277
After the database server is up and running we now need the WildFly.
278278
[source, text]
279279
----
280-
docker run -d --name wildfly -p 8080:8080 --link db:db <INSTRUCTOR_IP>:5000/wildfly
280+
docker run -d --name wildfly -p 8080:8080 --link db:db -v /Users/youruser/tmp/deployments:/opt/jboss/wildfly/standalone/deployments/:rw <INSTRUCTOR_IP>:5000/wildfly
281281
----
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.
282+
This command starts a container named "wildfly" and links this container to the db container we started earlier.
283+
The "-v" flag maps a local directory into the host. This will be the place to put the deployments. Please make sure to use `-v /c/Users/` notation for drive letters on windows.
284+
The other options are known to you already.
283285
Check the logs if the server is started.
286+
284287
[source, text]
285288
----
286289
docker logs -f wildfly
@@ -307,6 +310,23 @@ Setup the server properties in the following image. The two properties on the l
307310
.Server properties
308311
image::images/jbds3.png[]
309312

313+
Specify a custom deployment folder on Deployment tab of Server Editor
314+
315+
.Server Editor
316+
image::images/jbds4.png[]
317+
318+
Right-click on the newly created server adapter and click “Start”.
319+
320+
.Start Server
321+
image::images/jbds5.png[]
322+
323+
Now you need to right-click, Run on Server on the ticket-monster application and chose this server.
324+
The project runs and displays the start page of ticket-monster
325+
326+
.Start Server
327+
image::images/jbds6.png[]
328+
329+
Congratulations! You've just deployed your first application to a WildFly running in a Docker container............................................................................
310330

311331
http://blog.arungupta.me/deploy-wildfly-docker-eclipse/
312332

0 commit comments

Comments
 (0)