From d28a0fc25e91921858774ad38033e863f29824e3 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 6 Aug 2023 21:34:30 +0200 Subject: [PATCH] Stop hosts-leaking into the container --- build-image.sh | 2 ++ build-packages.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build-image.sh b/build-image.sh index 1f50ad4..d43f099 100755 --- a/build-image.sh +++ b/build-image.sh @@ -17,6 +17,8 @@ LOGDIR="${LOGDIR:-$(pwd)/logs}" DOCKER_FILE="${DOCKER_FILE:-$(pwd)/Dockerfile}" podman_build_args=( + # Do not leak the host's /etc/host into the container. + --no-hosts # Limit the memory to be used. --memory=20G --memory-swap=1G diff --git a/build-packages.sh b/build-packages.sh index 7fd27cb..dd5d150 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -17,6 +17,8 @@ LOGDIR="${LOGDIR:-$(pwd)/logs}" PACKAGE_USE="${PACKAGE_USE:-$(pwd)/package.use}" podman_build_args=( + # Do not leak the host's /etc/host into the container. + --no-hosts # Remove the container after usage. --rm # Allow interactive questsions by portage