CI: Add more logging during docker builds

This commit is contained in:
Tim Wojtulewicz 2023-10-12 15:00:52 -07:00
parent 2d8e7368ae
commit 3d1380305b
3 changed files with 9 additions and 0 deletions

View file

@ -496,6 +496,7 @@ docker_build_template: &DOCKER_BUILD_TEMPLATE
CIRRUS_LOG_TIMESTAMP: true CIRRUS_LOG_TIMESTAMP: true
BUILDER_IMAGE_CACHE_DIR: /tmp/builder-image-cache BUILDER_IMAGE_CACHE_DIR: /tmp/builder-image-cache
ZEEK_IMAGE_CACHE_DIR: /tmp/zeek-image-cache-${CIRRUS_ARCH} ZEEK_IMAGE_CACHE_DIR: /tmp/zeek-image-cache-${CIRRUS_ARCH}
BUILDKIT_PROGRESS: plain
always: always:
ccache_cache: ccache_cache:

View file

@ -3,6 +3,10 @@
# Layer to build Zeek. # Layer to build Zeek.
FROM debian:bookworm-slim 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. # Allow apt to retry 3 times before failing.
RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries

View file

@ -3,6 +3,10 @@
# Final layer containing all artifacts. # Final layer containing all artifacts.
FROM debian:bookworm-slim 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. # Allow apt to retry 3 times before failing.
RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries