copying files to docker image 93/60093/1
authorPrudence Au <prudence.au@amdocs.com>
Fri, 10 Aug 2018 23:42:49 +0000 (19:42 -0400)
committerPrudence Au <prudence.au@amdocs.com>
Fri, 10 Aug 2018 23:43:00 +0000 (19:43 -0400)
Change-Id: I81995dfd898b19a9a07585353b5f33b5478ab1d8
Issue-ID: LOG-519
Signed-off-by: Prudence Au <prudence.au@amdocs.com>
pom.xml
src/main/docker/Dockerfile

diff --git a/pom.xml b/pom.xml
index 9f266d6..4c6a712 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        <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>
                                                </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>
                                                <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>
                                                <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>
index 0cdd1cf..f69af02 100644 (file)
@@ -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/*