This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new cf938a2 UNOMI-511: replace tail usage to run karaf process in docker
instance… (#380)
cf938a2 is described below
commit cf938a29b989486edebbc28ff7208179fbb50aa4
Author: kevan Jahanshahi <[email protected]>
AuthorDate: Tue Jan 25 16:50:47 2022 +0100
UNOMI-511: replace tail usage to run karaf process in docker instance…
(#380)
* UNOMI-511: replace tail usage to run karaf process in docker instance by
karaf process itself
* UNOMI-511: replace tail usage to run karaf process in docker instance by
karaf process itself
---
docker/src/main/docker/entrypoint.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/docker/src/main/docker/entrypoint.sh
b/docker/src/main/docker/entrypoint.sh
index 8ffbadd..9db9246 100755
--- a/docker/src/main/docker/entrypoint.sh
+++ b/docker/src/main/docker/entrypoint.sh
@@ -33,7 +33,5 @@ until ([ "$health_check" = 'yellow' ] || [ "$health_check" =
'green' ]); do
sleep 1
done
-$UNOMI_HOME/bin/start
-$UNOMI_HOME/bin/status # Call to status delays while Karaf creates karaf.log
-
-tail -f $UNOMI_HOME/data/log/karaf.log
+# Run Unomi in current bash session, if Unomi crash or shutdown the container
will stop
+$UNOMI_HOME/bin/karaf run
\ No newline at end of file