diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/docker/Dockerfile | 6 | ||||
-rw-r--r-- | src/main/docker/startService.sh | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 41f2f1a..7f3efd2 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-sdc-context-builder.jar $MICROSERVICE_HOME/lib/
+ADD pomba-sdc-context-builder.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/*
RUN chmod 755 $MICROSERVICE_HOME/bin/*
-CMD ["/opt/app/bin/startServer.sh"]
\ No newline at end of file +CMD ["/opt/app/bin/startService.sh"]
\ No newline at end of file diff --git a/src/main/docker/startService.sh b/src/main/docker/startService.sh index 56d4d76..f28ade7 100644 --- a/src/main/docker/startService.sh +++ b/src/main/docker/startService.sh @@ -1,8 +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-sdc-context-builder.jar
-else
- java -Dlogging.config=config/logback.xml $java_runtime_arguments -jar /opt/app/lib/pomba-sdc-context-builder.jar
+#!/bin/sh + +cd /opt/app +if [ -z "${java_runtime_arguments}" ]; then + java -Dlogging.config=config/logback.xml -Xms128m -Xmx512m -jar /opt/app/lib/pomba-sdc-context-builder.jar +else + java -Dlogging.config=config/logback.xml $java_runtime_arguments -jar /opt/app/lib/pomba-sdc-context-builder.jar fi
\ No newline at end of file |