File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -112,3 +112,24 @@ That's it! Welcome in the community!
112112* [ WildFly] ( https://javaee-support.ci.cloudbees.com/job/javaee7-samples-wildfly-8.1/ )
113113* [ GlassFish] ( https://javaee-support.ci.cloudbees.com/job/javaee7-samples-glassfish-4.1/ )
114114* [ TomEE] ( https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/ )
115+
116+ ## Run each sample in Docker
117+
118+ . Install Docker client from http://boot2docker.io/
119+ . Build the sample that you want to run as
120+
121+ `` mvn clean package -DskipTests ``
122+
123+ For example:
124+
125+ `` mvn -f jaxrs/jaxrs-client/pom.xml clean package -DskipTests ``
126+
127+ . Change the second line in `` Dockerfile `` to specify the location of the generated WAR file
128+ . Run boot2docker and give the command
129+
130+ `` docker build -it -p 80:8080 javaee7-sample ``
131+ . In a different shell, find out the IP address of the running container as:
132+
133+ `` boot2docker ip ``
134+ . Access the sample as http://<IP >:80/jaxrs-client/webresources/persons
135+
You can’t perform that action at this time.
0 commit comments