summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-08-10 14:35:16 -0400
committerPrudence Au <prudence.au@amdocs.com>2018-08-10 14:35:23 -0400
commit29d8798a0f0e3a14dc46ec22aa40d115483692e6 (patch)
tree15fe09ce99ecfaafe5bc67b6e21fdc05aa65c93a
parent3f1ed11b31f0fe440eb4337b72631a058f2dfaf3 (diff)
Copying files to docker image
Change-Id: I092a276060179d5e74ea4a99b8d60867dee378da Issue-ID: LOG-519 Signed-off-by: Prudence Au <prudence.au@amdocs.com>
-rw-r--r--pom.xml4
-rw-r--r--src/main/docker/Dockerfile12
2 files changed, 8 insertions, 8 deletions
diff --git a/pom.xml b/pom.xml
index a8b4f1d..9f266d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -257,7 +257,7 @@
<outputDirectory>${project.basedir}/target/docker-stage/opt/app/config</outputDirectory>
<resources>
<resource>
- <directory>../config</directory>
+ <directory>config</directory>
<includes>
<include>*.properties</include>
<include>builders/*.properties</include>
@@ -297,7 +297,7 @@
<outputDirectory>${project.basedir}/target/docker-stage/opt/app/lib</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 a764fbf..0cdd1cf 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -8,12 +8,12 @@ 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/
-#COPY ./config/ $MICROSERVICE_HOME/config/
-#ADD ./target/startService.sh $MICROSERVICE_HOME/bin/
+ADD target/pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/
+COPY config/ $MICROSERVICE_HOME/config/
+ADD target/startService.sh $MICROSERVICE_HOME/bin/
-#RUN chmod 755 $MICROSERVICE_HOME/config/*
-#RUN chmod 755 $MICROSERVICE_HOME/lib/*
-#RUN chmod 755 $MICROSERVICE_HOME/bin/*
+RUN chmod 755 $MICROSERVICE_HOME/config/*
+RUN chmod 755 $MICROSERVICE_HOME/lib/*
+RUN chmod 755 $MICROSERVICE_HOME/bin/*
CMD ["/opt/app/bin/startServer.sh"]