From 2e39bafa4c15ea667f2342ef7e15e57ac560934d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 15 Apr 2019 22:28:59 -0400 Subject: [PATCH] Disable build cache during sanity check --- images/alpine/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/alpine/functions b/images/alpine/functions index eda4a78..da25da3 100644 --- a/images/alpine/functions +++ b/images/alpine/functions @@ -49,6 +49,9 @@ sanity_check() { echo "Testing networking..." guest_ssh -p 8022 build@localhost curl https://example.org echo "Testing apk..." + # repo cache doesn't work in this context + guest_ssh -p 8022 build@localhost \ + sudo sed -i /etc/apk/repositories -e 's/repo-cache.local/dl-2.alpinelinux.org/g' guest_ssh -p 8022 build@localhost sudo apk update guest_ssh -p 8022 build@localhost sudo apk upgrade guest_ssh -p 8022 build@localhost sudo apk add htop -- 2.38.5