[gnome-runtime-images/abderrahim/buildah] use buildah (and podman) instead of docker
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-runtime-images/abderrahim/buildah] use buildah (and podman) instead of docker
- Date: Fri, 2 Aug 2019 04:26:10 +0000 (UTC)
commit 48def569baa468613ca963cd7e3f952f97c1225f
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Aug 2 05:03:08 2019 +0100
use buildah (and podman) instead of docker
.gitlab-ci.yml | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a1a7eba..9d3a8e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,8 @@
-image: docker:latest
-services:
- - docker:dind
+image: fedora:latest
-# When using dind, it's wise to use the overlayfs driver for
-# improved performance.
+# Buildah can't use 'overlay' driver when running inside docker
variables:
- DOCKER_DRIVER: overlay2
+ STORAGE_DRIVER: vfs
stages:
- base
@@ -18,12 +15,19 @@ stages:
script:
# For debugging
- echo ${DOCKERFILE} / ${DOCKERIMAGE}
- - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- - docker build --pull -f ${DOCKERFILE} -t ${DOCKERIMAGE} .
- - docker push ${DOCKERIMAGE}
+ - dnf install -y buildah podman
+ - buildah login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
+ - buildah bud --pull -f ${DOCKERFILE} -t ${DOCKERIMAGE} .
+ - buildah push ${DOCKERIMAGE}
after_script:
- - docker run --rm ${DOCKERIMAGE} flatpak list --columns=application,branch,arch,active,size
- - docker image inspect --format "{{json .Id}}" ${DOCKERIMAGE}
+ # don't try to use systemd/journald
+ - |
+ cat >> /etc/containers/libpod.conf << END
+ cgroup_manager = "cgroupfs"
+ events_logger = "file"
+ END
+ - podman run --rm ${DOCKERIMAGE} flatpak list --columns=application,branch,arch,active,size
+ - buildah inspect --format "{{.FromImageID}}" ${DOCKERIMAGE}
only:
- master
- triggers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]