summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-21 09:08:45 -0400
committerGitHub <noreply@github.com>2020-04-21 09:08:45 -0400
commit84bbdcef5d3f6f431fe8fbf9e59896d7fc311111 (patch)
treef358d1d09018eb4f682ba9e20ae489821cbc2253
parent08823e738381a64952580e08188f6edc7bb9e3f0 (diff)
parent05a5184302520438c6e3b13c14b5da4145dc01a0 (diff)
downloadpodman-84bbdcef5d3f6f431fe8fbf9e59896d7fc311111.tar.gz
podman-84bbdcef5d3f6f431fe8fbf9e59896d7fc311111.tar.bz2
podman-84bbdcef5d3f6f431fe8fbf9e59896d7fc311111.zip
Merge pull request #5910 from abitrolly/shared-deps
Move Fedora 31 dependencies for building podman into separate file
-rw-r--r--contrib/dependencies.txt34
-rw-r--r--contrib/gate/Dockerfile39
2 files changed, 39 insertions, 34 deletions
diff --git a/contrib/dependencies.txt b/contrib/dependencies.txt
new file mode 100644
index 000000000..5a6fa9834
--- /dev/null
+++ b/contrib/dependencies.txt
@@ -0,0 +1,34 @@
+# Fedora dependencies for building podman
+
+btrfs-progs-devel
+bzip2
+container-selinux
+containernetworking-cni
+device-mapper-devel
+findutils
+git
+glib2-devel
+glibc-static
+golang
+gpgme-devel
+iptables
+libassuan-devel
+libseccomp-devel
+libselinux-devel
+lsof
+make
+nmap-ncat
+procps-ng
+python
+python3-dateutil
+python3-pip
+python3-psutil
+python3-pytoml
+python3-pyyaml
+python3-varlink
+rsync
+slirp4netns
+unzip
+which
+xz
+zip
diff --git a/contrib/gate/Dockerfile b/contrib/gate/Dockerfile
index 4fddae557..f7cd8f2b3 100644
--- a/contrib/gate/Dockerfile
+++ b/contrib/gate/Dockerfile
@@ -1,38 +1,4 @@
FROM fedora:31
-RUN dnf -y install \
- btrfs-progs-devel \
- bzip2 \
- container-selinux \
- containernetworking-cni \
- device-mapper-devel \
- findutils \
- git \
- glib2-devel \
- glibc-static \
- golang \
- gpgme-devel \
- iptables \
- libassuan-devel \
- libseccomp-devel \
- libselinux-devel \
- lsof \
- make \
- nmap-ncat \
- procps-ng \
- python \
- python3-dateutil \
- python3-pip \
- python3-psutil \
- python3-pytoml \
- python3-pyyaml \
- python3-varlink \
- rsync \
- slirp4netns \
- unzip \
- which \
- xz \
- zip \
- && dnf clean all
ENV GOPATH="/var/tmp/go" \
GOBIN="/var/tmp/go/bin" \
@@ -43,6 +9,11 @@ ENV GOPATH="/var/tmp/go" \
# Only needed for installing build-time dependencies, then will be removed
COPY / $GOSRC
+# Install packages from dependencies.txt, ignoring commented lines
+RUN dnf -y install \
+ $(grep "^[^#]" $GOSRC/contrib/dependencies.txt) \
+ && dnf clean all
+
# Install dependencies
RUN set -x && \
mkdir -p "$GOBIN" && \