Unify DMaaP Data Router image creation
[dmaap/datarouter.git] / datarouter-prov / pom.xml
index 0bb5417..2c69cbd 100755 (executable)
@@ -3,6 +3,7 @@
   * org.onap.dmaap\r
   * ===========================================================================\r
   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
+  * Modifications Copyright (C) 2018 Nokia. All rights reserved.\r
   * ===========================================================================\r
   * Licensed under the Apache License, Version 2.0 (the "License");\r
   * you may not use this file except in compliance with the License.\r
@@ -25,7 +26,7 @@
     <parent>\r
         <groupId>org.onap.dmaap.datarouter</groupId>\r
         <artifactId>parent</artifactId>\r
-        <version>1.0.2-SNAPSHOT</version>\r
+        <version>1.0.3-SNAPSHOT</version>\r
         <relativePath>../pom.xml</relativePath>\r
     </parent>\r
     <artifactId>datarouter-prov</artifactId>\r
                         <version>1.0.0</version>\r
                         <configuration>\r
                             <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>\r
-                            <dockerDirectory>${docker.location}</dockerDirectory>\r
+                            <baseImage>java:8</baseImage>\r
                             <serverId>${onap.nexus.dockerregistry.daily}</serverId>\r
                             <skipDockerBuild>false</skipDockerBuild>\r
                             <imageTags>\r
                                 <imageTag>latest</imageTag>\r
                             </imageTags>\r
                             <forceTags>true</forceTags>\r
+                            <entryPoint>["/startup.sh", "start"]</entryPoint>\r
                             <resources>\r
                                 <resource>\r
-                                    <targetPath>/</targetPath>\r
-                                    <directory>${project.basedir}</directory>\r
-                                    <excludes>\r
-                                        <exclude>target/**/*</exclude>\r
-                                        <exclude>pom.xml</exclude>\r
-                                    </excludes>\r
+                                    <targetPath>/opt</targetPath>\r
+                                    <directory>${project.build.directory}/opt</directory>\r
                                 </resource>\r
-\r
                                 <resource>\r
                                     <targetPath>/</targetPath>\r
-                                    <directory>${project.build.directory}</directory>\r
-                                    <include>**/**</include>\r
+                                    <directory>${docker.location}</directory>\r
+                                    <include>startup.sh</include>\r
                                 </resource>\r
                             </resources>\r
+                            <runs>\r
+                                <run>chmod 0700 /startup.sh</run>\r
+                            </runs>\r
+                            <exposes>\r
+                                <expose>8080</expose>\r
+                                <expose>8443</expose>\r
+                            </exposes>\r
                         </configuration>\r
                     </plugin>\r
                 </plugins>\r