summaryrefslogtreecommitdiff
path: root/contrib/gate
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gate')
-rw-r--r--contrib/gate/Dockerfile39
-rw-r--r--contrib/gate/README.md8
2 files changed, 9 insertions, 38 deletions
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" && \
diff --git a/contrib/gate/README.md b/contrib/gate/README.md
index fe1205dc5..b2bc56023 100644
--- a/contrib/gate/README.md
+++ b/contrib/gate/README.md
@@ -1,6 +1,6 @@
![PODMAN logo](../../logo/podman-logo-source.svg)
-A standard container image for lint-checking and validating changes to the libpod
-repository. The
-[contributors guide contains the documentation for usage.](https://github.com/containers/libpod/blob/master/CONTRIBUTING.md#go-format-and-lint). Note that this container image is also utilized
-in automation, see the file [.cirrus.yml](.cirrus.yml)
+The "gate" image is a standard container image for lint-checking and validating
+changes to the libpod repository. It must be built from the repository root as
+[described in the contibutors guide](https://github.com/containers/libpod/blob/master/CONTRIBUTING.md#go-format-and-lint).
+The image is also used in [CI/CD automation](../../.cirrus.yml).