From eaa88730aae715f66b8ba3a59cd806d79be38479 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Mon, 18 Nov 2024 11:12:18 +0100 Subject: [PATCH] Add loop for updating the OpenWrt repo. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12d0aa0..a06ab00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -146,8 +146,8 @@ RUN echo "Building for platform '$TARGETPLATFORM'" \ \ # Wait for OpenWrt startup and update repo \ && until ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new root@localhost -p $SSH_PORT "cat /etc/banner"; do echo "Waiting for OpenWrt boot ..."; sleep 1; done \ - # Update package repo \ - && ssh root@localhost -p $SSH_PORT "${PACKAGE_UPDATE}" \ + # Update package repo. Some some reasons it can fail. So try it until we are successfull. \ + && until ssh root@localhost -p $SSH_PORT "${PACKAGE_UPDATE}"; do echo "Retrying ${PACKAGE_UPDATE} ..."; sleep 1; done\ # Download Luci, qemu guest agent and mDNS support \ && ssh root@localhost -p $SSH_PORT "${PACKAGE_INSTALL} qemu-ga luci luci-ssl umdns losetup ${PACKAGE_EXTRA}" \ # Download Wi-Fi access point support and Wi-Fi USB devices support \