summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-08-10 19:42:49 -0400
committerPrudence Au <prudence.au@amdocs.com>2018-08-10 19:43:00 -0400
commit42db1a62ffd76fe88e6134558ca3878b04414619 (patch)
treed163412c8ae7a91416f344b8642e8162091f8cde
parent29d8798a0f0e3a14dc46ec22aa40d115483692e6 (diff)
copying files to docker image
Change-Id: I81995dfd898b19a9a07585353b5f33b5478ab1d8 Issue-ID: LOG-519 Signed-off-by: Prudence Au <prudence.au@amdocs.com>
-rw-r--r--pom.xml14
-rw-r--r--src/main/docker/Dockerfile4
2 files changed, 9 insertions, 9 deletions
diff --git a/pom.xml b/pom.xml
index 9f266d6..4c6a712 100644
--- a/pom.xml
+++ b/pom.xml
@@ -233,7 +233,7 @@
<goals>
<goal>copy-resources</goal>
</goals><!-- here the phase you need -->
- <phase>validate</phase>
+ <phase>package</phase>
<configuration>
<outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
<resources>
@@ -254,7 +254,7 @@
</goals>
<phase>validate</phase>
<configuration>
- <outputDirectory>${project.basedir}/target/docker-stage/opt/app/config</outputDirectory>
+ <outputDirectory>${project.basedir}/target/docker-stage/config</outputDirectory>
<resources>
<resource>
<directory>config</directory>
@@ -273,9 +273,9 @@
<goals>
<goal>copy-resources</goal>
</goals>
- <phase>validate</phase>
+ <phase>package</phase>
<configuration>
- <outputDirectory>${project.basedir}/target/docker-stage/opt/app/bin</outputDirectory>
+ <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
<resources>
<resource>
<directory>src/main/docker</directory>
@@ -292,12 +292,12 @@
<goals>
<goal>copy-resources</goal>
</goals>
- <phase>validate</phase>
+ <phase>package</phase>
<configuration>
- <outputDirectory>${project.basedir}/target/docker-stage/opt/app/lib</outputDirectory>
+ <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
<resources>
<resource>
- <directory>target/</directory>
+ <directory>target</directory>
<includes>
<include>*.jar</include>
</includes>
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 0cdd1cf..f69af02 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -8,9 +8,9 @@ RUN mkdir -p $MICROSERVICE_HOME/config/
RUN mkdir -p $MICROSERVICE_HOME/lib/
RUN mkdir -p $MICROSERVICE_HOME/bin/
-ADD target/pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/
+ADD pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/
COPY config/ $MICROSERVICE_HOME/config/
-ADD target/startService.sh $MICROSERVICE_HOME/bin/
+ADD startService.sh $MICROSERVICE_HOME/bin/
RUN chmod 755 $MICROSERVICE_HOME/config/*
RUN chmod 755 $MICROSERVICE_HOME/lib/*