From 04df6af413f925318af04d4db2738e6ed48b6e00 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 24 Jul 2024 11:28:22 +0200 Subject: [PATCH] new: [docker-host] limit docker logs size --- precise/host/hooks/install.d/60-docker.sh | 6 +++++- precise/host/hooks/install.d/70-0k.sh | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/precise/host/hooks/install.d/60-docker.sh b/precise/host/hooks/install.d/60-docker.sh index d8d5acb..112b5e1 100755 --- a/precise/host/hooks/install.d/60-docker.sh +++ b/precise/host/hooks/install.d/60-docker.sh @@ -14,13 +14,17 @@ if [ "$exname" == "bash" ]; then exit 1 fi fi -for bin in apt-get grep dpkg file lsb_release; do +for bin in apt-get grep dpkg file lsb_release yq; do if ! type -p "$bin" >/dev/null; then echo "Error: \`\`$bin\`\` not found" >&2 exit 1 fi done +## +## Install docker +## + STATIC_DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64" distro=$(lsb_release -is) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 1e4fb29..4978bf3 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -277,3 +277,22 @@ fi apt-get install -y pv buffer < /dev/null apt-get install -y postgresql-client