cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [3/3] cxf git commit: Add docker plugin to experiment with creating a spring-boot docker image for the example
Date Mon, 06 Jun 2016 21:58:10 GMT
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/4533e004
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4533e004
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4533e004

Branch: refs/heads/3.1.x-fixes
Commit: 4533e0040e82de9f11ab68036dceda9b67b8c2f8
Parents: 8961873
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Jun 6 15:10:43 2016 -0400
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Jun 6 22:57:21 2016 +0100

----------------------------------------------------------------------
 .../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/4533e004/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/4533e004/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 aa38d11..b5e92bc 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