[tracker-oci-images/sam/podman: 3/5] Avoid podman trying to talk to systemd when running in a container



commit 6c45ab93545f7174a63e6a8dc69c4034bdf0384d
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Dec 11 11:08:50 2019 +0100

    Avoid podman trying to talk to systemd when running in a container
    
    The build works for me locally, but fails in gitlab.gnome.org because
    of this error:
    
        STEP 3: RUN /usr/bin/sh /root/prepare.sh &&     /usr/bin/sh /root/cleanup.sh
        error running container: error creating container for [/bin/sh -c /usr/bin/sh /root/prepare.sh &&     
/usr/bin/sh /root/cleanup.sh]: time="2019-12-11T10:06:29Z" level=error msg="systemd cgroup flag passed, but 
systemd support for managing cgroups is not available"
        systemd cgroup flag passed, but systemd support for managing cgroups is not available
        : exit status 1
    
    Following https://github.com/containers/libpod/issues/1534, let's try
    passing the `--cgroup-manager=cgroupfs` flag.

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8386259..32d278d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ variables:
     # using the vfs driver, and this causes errors.
     - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
 
-    - podman build --format=docker --pull -f ${DOCKERFILE} -t ${IMAGE} ${CONTEXT_DIR}
+    - podman build --cgroup-manager=cgroupfs --format=docker --pull -f ${DOCKERFILE} -t ${IMAGE} 
${CONTEXT_DIR}
     - podman push ${IMAGE}
 
 # Expects $ARCH variable which should be the architexcture of the image ex. x86_64


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