don't truncate docker build logs

This commit is contained in:
Brad Warren 2024-09-30 10:20:00 -07:00
parent c543452af1
commit a594bbe4ae

View file

@ -70,7 +70,7 @@ ParseArgs() {
local IFS=","
# Handle the special value "all"
if [[ "${ARCH_LIST}" == "all" ]]; then
# Replace with comma separated
# Replace with comma separated
ARCH_LIST="${ALL_TARGET_ARCH[*]}"
fi
@ -88,7 +88,7 @@ ParseArgs() {
}
# Function for use with trap in the primary scripts to remove the
# Function for use with trap in the primary scripts to remove the
# docker builder and restore the original directory
Cleanup() {
docker buildx rm certbot_builder || true
@ -106,5 +106,11 @@ CreateBuilder() {
# just incase the env is not perfectly clean, remove any old instance of the builder
docker buildx rm certbot_builder || true
# create the builder instance
docker buildx create --name certbot_builder --driver docker-container --driver-opt=network=host --bootstrap
}
#
# BUILDKIT_STEP_LOG_MAX_* environment variables are set to prevent docker
# from truncating build logs that can be useful during debugging. see
# https://github.com/docker/buildx/issues/484#issuecomment-749352728
docker buildx create --name certbot_builder --driver docker-container \
--driver-opt=network=host --driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=-1 \
--driver-opt env.BUILDKIT_STEP_LOG_MAX_SPEED=-1 --bootstrap
}