cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject cxf git commit: Add docker plugin to experiment with creating a spring-boot docker image for the example
Date Mon, 06 Jun 2016 19:13:34 GMT
Repository: cxf
Updated Branches:
  refs/heads/master e0742cf08 -> 540033d24


Add docker plugin to experiment with creating a spring-boot docker image for the example


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/540033d2
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/540033d2
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/540033d2

Branch: refs/heads/master
Commit: 540033d24dee4d02ec5ed8fc2b47faa28b4231e8
Parents: e0742cf
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Jun 6 15:10:43 2016 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jun 6 15:12:54 2016 -0400

----------------------------------------------------------------------
 .../release/samples/jaxws_spring_boot/README    | 15 +++++++++++++++
 .../release/samples/jaxws_spring_boot/pom.xml   | 20 ++++++++++++++++++++
 2 files changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/540033d2/distribution/src/main/release/samples/jaxws_spring_boot/README
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jaxws_spring_boot/README b/distribution/src/main/release/samples/jaxws_spring_boot/README
index 62b3a1a..1217e41 100644
--- a/distribution/src/main/release/samples/jaxws_spring_boot/README
+++ b/distribution/src/main/release/samples/jaxws_spring_boot/README
@@ -17,3 +17,18 @@ to run the client run in a new terminal window:
 $ mvn exec:java
 ----
 
+
+
+Using Docker:
+If you have Docker running on your machine (and appropriate DOCKER_HOST set), 
+you can run
+
+----
+$ mvn docker:build
+----
+
+to create the Docker image.  Once created, you can start the container via:
+
+----
+docker run -p 8080:8080 -t org.apache.cxf.samples/spring-boot-sample-ws-cxf
+----

http://git-wip-us.apache.org/repos/asf/cxf/blob/540033d2/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml b/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
index 57e4210..cbc02fb 100644
--- a/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
+++ b/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
@@ -7,6 +7,8 @@
         <version>1.3.5.RELEASE</version>
     </parent> 
     <artifactId>spring-boot-sample-ws-cxf</artifactId>
+    <groupId>org.apache.cxf.samples</groupId>
+    <version>3.2.0-SNAPSHOT</version>
     <name>Spring Boot CXF Web Services Sample</name>
     <description>Spring Boot CXF Web Services Sample</description>
     <properties>
@@ -47,6 +49,24 @@
               <mainClass>sample.ws.service.client.HelloClient</mainClass>
             </configuration>
            </plugin>
+                        
+            <plugin>
+                <groupId>com.spotify</groupId>
+                <artifactId>docker-maven-plugin</artifactId>
+                <version>0.4.9</version>
+                <configuration>
+                    <imageName>${project.groupId}/${project.artifactId}</imageName>
+                    <baseImage>frolvlad/alpine-oraclejdk8:slim</baseImage>
+                    <entryPoint>java -Djava.security.egd=file:/dev/./urandom -jar ${project.build.finalName}.jar</entryPoint>
+                    <resources>
+                        <resource>
+                            <targetPath>/</targetPath>
+                            <directory>${project.build.directory}</directory>
+                            <include>${project.build.finalName}.jar</include>
+                        </resource>
+                    </resources>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>


Mime
View raw message