diff options
author | 2018-08-17 15:58:10 +0000 | |
---|---|---|
committer | 2018-08-17 15:58:10 +0000 | |
commit | e3d9e2b6ed6a4958ded1ac0cbcac7c9cee2fe334 (patch) | |
tree | aa75d0833ee006d606398d08d2fb482cfd6fe067 /pomba/network-discovery/src | |
parent | 705c39c8274ceefebe0d8fd6c7bcd741e1bb6797 (diff) | |
parent | 4083ef5710e8851cd505dc264469c7342126d093 (diff) |
Merge "Docker file: networkDiscovery serviceDecomposition"
Diffstat (limited to 'pomba/network-discovery/src')
-rw-r--r-- | pomba/network-discovery/src/main/docker/Dockerfile | 22 | ||||
-rw-r--r-- | pomba/network-discovery/src/main/docker/startService.sh | 8 |
2 files changed, 30 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 diff --git a/pomba/network-discovery/src/main/docker/startService.sh b/pomba/network-discovery/src/main/docker/startService.sh new file mode 100644 index 0000000..2169c4d --- /dev/null +++ b/pomba/network-discovery/src/main/docker/startService.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +cd /opt/app +if [ -z "${java_runtime_arguments}" ]; then + java -Dlogging.config=config/logback.xml -Xms128m -Xmx512m -jar /opt/app/lib/pomba-network-discovery.jar +else + java -Dlogging.config=config/logback.xml $java_runtime_arguments -jar /opt/app/lib/pomba-network-discovery.jar +fi
\ No newline at end of file |