Skip to content

Commit

Permalink
Disabled coredumps via python
Browse files Browse the repository at this point in the history
Removed line from Dockerfile
  • Loading branch information
ckunki committed Feb 23, 2024
1 parent ade77ab commit 448d37b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion exasol/ds/sandbox/lib/dss_docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import re
import resource
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 448d37b

Please sign in to comment.