From 448d37b402315a65df540d1788138f2340381ae6 Mon Sep 17 00:00:00 2001 From: ckunki Date: Fri, 23 Feb 2024 12:06:29 +0100 Subject: [PATCH] Disabled coredumps via python Removed line from Dockerfile --- exasol/ds/sandbox/lib/dss_docker/Dockerfile | 1 - .../runtime/ansible/roles/entrypoint/files/entrypoint.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/exasol/ds/sandbox/lib/dss_docker/Dockerfile b/exasol/ds/sandbox/lib/dss_docker/Dockerfile index b9bf7be9..40bd041b 100644 --- a/exasol/ds/sandbox/lib/dss_docker/Dockerfile +++ b/exasol/ds/sandbox/lib/dss_docker/Dockerfile @@ -1,4 +1,3 @@ FROM ubuntu:20.04 ENV DEBIAN_FRONTEND noninteractive -RUN ulimit -c 0 RUN apt-get update && apt-get install --no-install-recommends --assume-yes python3 python3-pexpect diff --git a/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py b/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py index 8c2bb2d4..96873c8b 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py +++ b/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py @@ -2,6 +2,7 @@ import logging import os import re +import resource import shutil import subprocess import sys @@ -148,6 +149,10 @@ def ensure_file(src: Path, dst: Path): ensure_dir(copy / name) +def disable_core_dumps(): + resource.setrlimit(resource.RLIMIT_CORE, (0, 0)) + + def sleep_inifinity(): while True: time.sleep(1) @@ -161,6 +166,7 @@ def main(): args.notebooks, args.warning_as_error, ) + disable_core_dumps() if (args.jupyter_server and args.notebooks and args.jupyter_logfile