Activity Spec docker enhancements

Activity Spec Changes for docker in Kubernetes

Change-Id: I987fe097792ccd5d41a0ad811602dad72259d45f
Issue-ID: SDC-1048
Signed-off-by: priyanshu <pagarwal@amdocs.com>
diff --git a/services/activity-spec/activity-spec-web/pom.xml b/services/activity-spec/activity-spec-web/pom.xml
index a1df977..d565010 100644
--- a/services/activity-spec/activity-spec-web/pom.xml
+++ b/services/activity-spec/activity-spec-web/pom.xml
@@ -26,6 +26,70 @@
             </activation>
             <build>
                 <plugins>
+                  <plugin>
+                        <artifactId>maven-resources-plugin</artifactId>
+                        <version>3.0.2</version>
+                        <executions>
+                            <execution>
+                                <id>copy-activity-spec-docker-assembly</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>copy-resources</goal>
+                                </goals>
+                                <configuration>
+                                    <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+                                    <resources>
+                                        <resource>
+                                            <directory>${project.basedir}/activity-spec-docker-assembly</directory>
+                                        </resource>
+                                    </resources>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>copy-static-configuration-files</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>copy-resources</goal>
+                                </goals>
+                                <configuration>
+                                    <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+                                    <resources>
+                                        <resource>
+                                            <directory>${project.basedir}/activity-spec-service/src/main/resources/config</directory>
+                                            <includes>
+                                                <include>logback.xml</include>
+                                            </includes>
+                                        </resource>
+                                    </resources>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>copy-resources</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>copy-resources</goal>
+                                </goals>
+                                <configuration>
+                                    <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+                                    <resources>
+                                        <resource>
+                                            <directory>${project.basedir}/activity-spec-war/target</directory>
+                                            <includes>
+                                                <include>activity-spec-war-${project.version}.war</include>
+                                            </includes>
+                                        </resource>
+                                        <resource>
+                                            <directory>${project.basedir}/activity-spec-api-docs/target
+                                            </directory>
+                                            <includes>
+                                                <include>activity-spec-api-docs-${project.version}.war</include>
+                                            </includes>
+                                        </resource>
+                                    </resources>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
                     <plugin>
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
@@ -37,11 +101,8 @@
                                         <tags>
                                             <tag>${project.version}</tag>
                                         </tags>
-                                        <dockerFileDir>${project.basedir}</dockerFileDir>
+                                        <dockerFileDir>${project.basedir}/target/activity-spec-docker-assembly</dockerFileDir>
                                         <dockerFile>Dockerfile</dockerFile>
-                                        <args>
-                                            <ARTIFACT_VERSION>${project.version}</ARTIFACT_VERSION>
-                                        </args>
                                     </build>
                                 </image>
                             </images>