This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch kie-issues_747
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git


The following commit(s) were added to refs/heads/kie-issues_747 by this push:
     new 7ced63bb prepare for pr
7ced63bb is described below

commit 7ced63bb661dbce8756c55d8bd1b56dd80c62b53
Author: jstastny-cz <[email protected]>
AuthorDate: Fri Dec 8 08:17:23 2023 +0100

    prepare for pr
---
 apache-nodes/entrypoint.sh | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/apache-nodes/entrypoint.sh b/apache-nodes/entrypoint.sh
index c39d983f..61d79e22 100755
--- a/apache-nodes/entrypoint.sh
+++ b/apache-nodes/entrypoint.sh
@@ -13,17 +13,10 @@ if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
        sudo bash -c "sed -e 's/ / +/g' -e 's/^/+/' < 
/sys/fs/cgroup/cgroup.controllers > /sys/fs/cgroup/cgroup.subtree_control"
 fi
 
+# Start docker and print logs
+start-docker.sh
 
-# To make jenkins docker plugin happy container is supposed to process command 
passed to it and not perform entrypoint first.
-# https://github.com/docker-library/official-images#consistency
-# Start docker if a shell is opened or docker cmd passed directly
-if [[ $# -eq 0 ]] || [[ "$1" = @(sh|bash|docker) ]]; then
-       # Start docker and print logs
-       start-docker.sh
-else
-       # Don't produce logs
-       start-docker.sh > /dev/null
-fi
-
-# process the command passed, only for some (if above) docker is started before
-exec "$@"
+# process the command passed, after docker is started
+if [ $# -gt 0 ]; then
+       exec "$@"
+fi
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to