[extensions-web/wip/ci/buildah] ci: switch to buildah in-docker build
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/ci/buildah] ci: switch to buildah in-docker build
- Date: Sat, 29 Feb 2020 16:50:11 +0000 (UTC)
commit 0523cd2bbeef30b111305427fcc01a7067e3c8fe
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sat Feb 29 19:22:07 2020 +0400
ci: switch to buildah in-docker build
.gitlab-ci.yml | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3df5d13..b2b37da 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,16 @@
-image: docker:stable
-
+---
variables:
- DOCKER_TLS_CERTDIR: ""
-
-services:
- - docker:dind
-
-before_script:
- - docker info
+ STORAGE_DRIVER: vfs
test:
+ image: fedora:32
stage: test
+ before_script:
+ - dnf -y install podman-docker buildah crun fuse-overlayfs slirp4netns
+ - |
+ > /etc/containers/nodocker
+ - buildah info
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'
+ - buildah bud --isolation chroot -f openshift/docker/Dockerfile -t extensions-web:${CI_PIPELINE_ID} .
+ - buildah run --isolation chroot -e EGO_SECRET_KEY=. -e EGO_DEBUG=1 extensions-web python manage.py test
+ - buildah run --isolation chroot 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]