From 1a483ac55c81ae129232989c71f320f34a00a060 Mon Sep 17 00:00:00 2001 From: Nicolas Setton Date: Tue, 17 Sep 2019 10:05:15 -0400 Subject: [PATCH] S917-017 limit the size of the journal --- infrastructure/container_payload/Makefile.safecontainer | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/infrastructure/container_payload/Makefile.safecontainer b/infrastructure/container_payload/Makefile.safecontainer index da32cf0..fc72fef 100644 --- a/infrastructure/container_payload/Makefile.safecontainer +++ b/infrastructure/container_payload/Makefile.safecontainer @@ -1,14 +1,17 @@ -all: deploy_base_packages create_preloader install_gnat_community protect create_workspace +all: deploy_base create_preloader install_gnat_community protect create_workspace -deploy_base_packages: +deploy_base: + # install packages apt-get update -y apt install -y gcc apt install -y libfontconfig apt install -y libx11-xcb-dev apt install -y python + # limit the size of the journal + echo "SystemMaxUse=200" >> /etc/systemd/journald.conf # do this only once - touch deploy_base_packages + touch deploy_base create_preloader: # do this only once