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 fe462534 just drop logs
fe462534 is described below
commit fe46253456ab5a7fffda0191eb6224d2e9c1516f
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Dec 7 07:14:21 2023 +0100
just drop logs
---
apache-nodes/entrypoint.sh | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/apache-nodes/entrypoint.sh b/apache-nodes/entrypoint.sh
index b8d4ee07..c39d983f 100755
--- a/apache-nodes/entrypoint.sh
+++ b/apache-nodes/entrypoint.sh
@@ -1,24 +1,28 @@
#!/bin/bash
set -e
+# cgroup v2: enable nesting
+if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
+ echo "in cgroupv2 branch"
+ # move the processes from the root group to the /init group,
+ # otherwise writing subtree_control fails with EBUSY.
+ # An error during moving non-existent process (i.e., "cat") is ignored.
+ sudo mkdir -p /sys/fs/cgroup/init
+ sudo bash -c "xargs -rn1 < /sys/fs/cgroup/cgroup.procs >
/sys/fs/cgroup/init/cgroup.procs || :"
+ # enable controllers
+ sudo bash -c "sed -e 's/ / +/g' -e 's/^/+/' <
/sys/fs/cgroup/cgroup.controllers > /sys/fs/cgroup/cgroup.subtree_control"
+fi
+
+
# 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
- # cgroup v2: enable nesting
- if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
- echo "in cgroupv2 branch"
- # move the processes from the root group to the /init group,
- # otherwise writing subtree_control fails with EBUSY.
- # An error during moving non-existent process (i.e., "cat") is
ignored.
- sudo mkdir -p /sys/fs/cgroup/init
- sudo bash -c "xargs -rn1 < /sys/fs/cgroup/cgroup.procs >
/sys/fs/cgroup/init/cgroup.procs || :"
- # enable controllers
- sudo bash -c "sed -e 's/ / +/g' -e 's/^/+/' <
/sys/fs/cgroup/cgroup.controllers > /sys/fs/cgroup/cgroup.subtree_control"
- fi
-
- # Start docker
+ # 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]