summaryrefslogtreecommitdiffstats
path: root/pomba/network-discovery/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorMohammadreza Pasandideh <mohammadreza.pasandideh@amdocs.com>2018-08-15 15:41:22 -0400
committerMohammadreza Pasandideh <mohammadreza.pasandideh@amdocs.com>2018-08-16 13:45:55 -0400
commit4083ef5710e8851cd505dc264469c7342126d093 (patch)
treeaea29bce98175a35f0629d1366fd58681c8b8d80 /pomba/network-discovery/src/main/docker/Dockerfile
parent41a3f1b3b0e14fb1df40273adb4b4b1937c5a977 (diff)
Docker file: networkDiscovery serviceDecomposition
Issue-ID: LOG-397 SDNC-317 Change-Id: I80171ad4332e70872e5d3d8c42625f8669aa4d99 Signed-off-by: Mohammadreza Pasandideh <mohammadreza.pasandideh@amdocs.com>
Diffstat (limited to 'pomba/network-discovery/src/main/docker/Dockerfile')
-rw-r--r--pomba/network-discovery/src/main/docker/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/pomba/network-discovery/src/main/docker/Dockerfile b/pomba/network-discovery/src/main/docker/Dockerfile
new file mode 100644
index 0000000..a7f5782
--- /dev/null
+++ b/pomba/network-discovery/src/main/docker/Dockerfile
@@ -0,0 +1,22 @@
+FROM anapsix/alpine-java:jre8
+
+ARG MICROSERVICE_HOME=/opt/app/
+
+# Build up the deployment folder structure
+RUN mkdir -p $MICROSERVICE_HOME
+RUN mkdir -p $MICROSERVICE_HOME/config/
+RUN mkdir -p $MICROSERVICE_HOME/config/auth/
+RUN mkdir -p $MICROSERVICE_HOME/lib/
+RUN mkdir -p $MICROSERVICE_HOME/bin/
+
+ADD pomba-network-discovery.jar $MICROSERVICE_HOME/lib/
+ADD startService.sh $MICROSERVICE_HOME/bin/
+COPY config/ $MICROSERVICE_HOME/config/
+COPY config/auth/ $MICROSERVICE_HOME/config/auth/
+
+RUN chmod 755 $MICROSERVICE_HOME/config/*
+RUN chmod 755 $MICROSERVICE_HOME/config/auth/*
+RUN chmod 755 $MICROSERVICE_HOME/lib/*
+RUN chmod 755 $MICROSERVICE_HOME/bin/*
+
+CMD ["/opt/app/bin/startService.sh"] \ No newline at end of file