From 3d1380305beaf2e48e22444a285e1f64e4d120d0 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 12 Oct 2023 15:00:52 -0700 Subject: [PATCH] CI: Add more logging during docker builds --- .cirrus.yml | 1 + docker/builder.Dockerfile | 4 ++++ docker/final.Dockerfile | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 5eddbeff6a..418fa8f4ec 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -496,6 +496,7 @@ docker_build_template: &DOCKER_BUILD_TEMPLATE CIRRUS_LOG_TIMESTAMP: true BUILDER_IMAGE_CACHE_DIR: /tmp/builder-image-cache ZEEK_IMAGE_CACHE_DIR: /tmp/zeek-image-cache-${CIRRUS_ARCH} + BUILDKIT_PROGRESS: plain always: ccache_cache: diff --git a/docker/builder.Dockerfile b/docker/builder.Dockerfile index 96c595b102..1223ddee93 100644 --- a/docker/builder.Dockerfile +++ b/docker/builder.Dockerfile @@ -3,6 +3,10 @@ # Layer to build Zeek. FROM debian:bookworm-slim +# Make the shell split commands in the log so we can determine reasons for +# failures more easily. +SHELL ["/bin/sh", "-x", "-c"] + # Allow apt to retry 3 times before failing. RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries diff --git a/docker/final.Dockerfile b/docker/final.Dockerfile index c70999de2a..eeafb1de09 100644 --- a/docker/final.Dockerfile +++ b/docker/final.Dockerfile @@ -3,6 +3,10 @@ # Final layer containing all artifacts. FROM debian:bookworm-slim +# Make the shell split commands in the log so we can determine reasons for +# failures more easily. +SHELL ["/bin/sh", "-x", "-c"] + # Allow apt to retry 3 times before failing. RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries