[extensions-web/barthalion/ci-shared-runners] Run CI on shared runners with buildah and podman
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/barthalion/ci-shared-runners] Run CI on shared runners with buildah and podman
- Date: Mon, 20 Jul 2020 15:04:58 +0000 (UTC)
commit 0bb7bff7edaba19e3879965f5c874e622ead99b4
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Jul 20 16:57:50 2020 +0200
Run CI on shared runners with buildah and podman
.gitlab-ci.yml | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 217e4f8..3d7117d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,19 +1,16 @@
-image: docker:stable
+image: 'registry.fedoraproject.org/fedora:32'
variables:
- DOCKER_TLS_CERTDIR: ""
-
-services:
- - docker:dind
-
-before_script:
- - docker info
+ STORAGE_DRIVER: 'vfs'
test:
stage: test
- tags:
- - privileged
script:
- - docker build -f openshift/docker/Dockerfile -t extensions-web .
- - docker run -e EGO_SECRET_KEY=. -e EGO_DEBUG=1 extensions-web python manage.py test
- - docker run extensions-web bash -c 'pip install safety && safety check -r requirements.txt && safety
check -r requirements.ego.txt'
+ - dnf install -y buildah podman
+ # 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
+
+ - podman build --cgroup-manager=cgroupfs -f openshift/docker/Dockerfile -t extensions-web .
+ - podman run --cgroup-manager=cgroupfs -e EGO_SECRET_KEY=. -e EGO_DEBUG=1 extensions-web python
manage.py test
+ - podman run extensions-web bash -c 'pip install safety && safety check -r requirements.txt && safety
check -r requirements.ego.txt'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]