aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/pom.xml
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2018-05-28 15:29:26 +0300
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-05-29 08:59:17 +0000
commitdaf0dfe8308a259d168734d3fe98212cadad1a9e (patch)
tree921c28edbda67f876fd88935f0a50fec6eb98e11 /services/activity-spec/activity-spec-web/pom.xml
parent80a35922da9c0244e736a87fea3007de92822967 (diff)
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>
Diffstat (limited to 'services/activity-spec/activity-spec-web/pom.xml')
-rw-r--r--services/activity-spec/activity-spec-web/pom.xml69
1 files changed, 65 insertions, 4 deletions
diff --git a/services/activity-spec/activity-spec-web/pom.xml b/services/activity-spec/activity-spec-web/pom.xml
index a1df9771fd..d565010c75 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>