From 2e05ab80011ab648717c615b7e307fe5d7ea9a36 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Wed, 4 Oct 2023 18:41:41 +1100 Subject: [PATCH] Dockerfile: Add filesystems:ceph:s3gw repomd.xml Without this, the subsequent `zypper install ; zypper ref` is effectively a no-op if docker build has already been run and cached that layer, which means we don't pick up updated package versions. Signed-off-by: Tim Serong --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index c1b9c192..508fda95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM opensuse/leap:15.4 as s3gw-base +# This makes sure the Docker cache is invalidated +# if packages in the s3gw repo on OBS have changed +ADD https://download.opensuse.org/repositories/filesystems:/ceph:/s3gw/15.4/repodata/repomd.xml /tmp/ RUN zypper ar \ https://download.opensuse.org/repositories/filesystems:/ceph:/s3gw/15.4/ \ s3gw-deps \