[gnome-runtime-images] ci: properly fix the moutnopts error



commit dd096c052d4f14dc524a62584a132aa6ba48d1e1
Author: Jordan Petridis <jpetridis gnome org>
Date:   Wed Aug 21 15:43:41 2019 +0300

    ci: properly fix the moutnopts error
    
    Newer versions of podman/buildah try to set overlayfs mount options when
    using the vfs driver, which seems to be causing errros.
    
    https://major.io/2019/08/13/buildah-error-vfs-driver-does-not-support-overlay-mountopt-options/

 .gitlab-ci.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73433e7..e8e6977 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,10 @@ stages:
 # Expects ${DOCKERFILE} variable which should be the path to the Dockerfile.
 .build_template:
     script:
+        # Newer versions of podman/buildah try to set overlayfs mount options when
+        # using the vfs driver, and this causes errors.
+        -  sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
+
         # For debugging
         - echo ${DOCKERFILE} / ${DOCKERIMAGE}
         - dnf install -y buildah podman
@@ -27,7 +31,7 @@ stages:
           events_logger = "file"
           END
         - podman run --rm ${DOCKERIMAGE} flatpak list --columns=application,branch,arch,active,size
-        # - buildah inspect --format "{{.FromImageID}}" ${DOCKERIMAGE}
+        - buildah inspect --format "{{.FromImageID}}" ${DOCKERIMAGE}
     only:
         - master
         - triggers


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]