diff --git a/build/integration-in-docker.sh b/build/integration-in-docker.sh index 61ce17d0e5..662c58a766 100755 --- a/build/integration-in-docker.sh +++ b/build/integration-in-docker.sh @@ -36,15 +36,13 @@ function run_tests() { env GOOS=linux GOFLAGS='$GO_FLAGS' go test -c github.com/google/cadvisor/integration/tests/healthz" if [ "$BUILD_PACKAGES" != "" ]; then - BUILD_CMD="echo 'deb http://deb.debian.org/debian buster-backports main'>/etc/apt/sources.list.d/buster.list && \ - apt update && \ - apt install -y -t buster-backports $BUILD_PACKAGES && \ + BUILD_CMD="apt update && apt install -y $BUILD_PACKAGES && \ $BUILD_CMD" fi docker run --rm \ -w /go/src/github.com/google/cadvisor \ -v ${PWD}:/go/src/github.com/google/cadvisor \ - golang:"$GOLANG_VERSION-buster" \ + golang:"$GOLANG_VERSION-bullseye" \ bash -c "$BUILD_CMD" EXTRA_DOCKER_OPTS="-e DOCKER_IN_DOCKER_ENABLED=true" @@ -61,7 +59,8 @@ function run_tests() { --cap-add="sys_admin" \ --entrypoint="" \ gcr.io/k8s-testimages/bootstrap \ - bash -c "echo 'deb http://deb.debian.org/debian buster-backports main'>/etc/apt/sources.list.d/buster.list && \ + bash -c "export DEBIAN_FRONTEND=noninteractive && \ + echo 'deb http://deb.debian.org/debian buster-backports main'>/etc/apt/sources.list.d/buster.list && \ cat /etc/apt/sources.list.d/buster.list && \ apt update && \ apt install -y -t buster-backports $PACKAGES && \