aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-13 10:59:07 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-13 10:59:07 +0200
commitff6bc9edb9ebd0c8151faa173339780ba924ae6f (patch)
tree5aad1845bc899e8a89d29cb104f7a0660a3ac7fc
parent500167be46d965b50eba5d9214d88bdceac64c0a (diff)
downloadpodman-docker-builder-ff6bc9edb9ebd0c8151faa173339780ba924ae6f.tar.gz
move rpm install to configure-podman
-rw-r--r--.gitlab-ci.yml1
-rw-r--r--Dockerfile4
-rwxr-xr-xconfigure-podman5
3 files changed, 5 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6b12a86..e2a6202 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,6 @@ stages:
Build:
stage: build
script:
- - dnf install -y podman buildah
- ./configure-podman
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --tag $CI_REGISTRY_IMAGE:latest .
diff --git a/Dockerfile b/Dockerfile
index 56fefc4..152a35c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,9 +9,5 @@ LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
USER root
-RUN dnf update -y && \
- dnf install -y podman podman-docker buildah && \
- dnf clean all -y
-
COPY configure-podman /root
RUN /root/configure-podman
diff --git a/configure-podman b/configure-podman
index dce3b09..3992043 100755
--- a/configure-podman
+++ b/configure-podman
@@ -3,6 +3,11 @@
# need to tweak some config options so "podman build" can run inside a container
#
+# update & install packages
+dnf update -y
+dnf install -y podman podman-docker buildah
+dnf clean all -y
+
# storage: can't use overlay (can't be stacked).
sed -i.orig -e '/^driver/s/overlay/vfs/' /etc/containers/storage.conf
diff -u /etc/containers/storage.conf.orig /etc/containers/storage.conf