summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/docker/startService.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/docker/startService.sh b/src/main/docker/startService.sh
index fd555ff..a6b368a 100644
--- a/src/main/docker/startService.sh
+++ b/src/main/docker/startService.sh
@@ -1,5 +1,16 @@
#!/bin/sh
+
+cd /opt/app
+preStartFile="/opt/app/bin/pre_start.sh"
+if [ -f "$preStartFile" ]
+then
+ echo "$preStartFile found."
+ exec $preStartFile
+else
+ echo "$preStartFile not found."
+fi
+
cd /opt/app
if [ -z "${java_runtime_arguments}" ]; then
java -Dlogging.config=config/logback.xml -Xms128m -Xmx512m -jar /opt/app/lib/pomba-context-aggregator.jar