summaryrefslogtreecommitdiffstats
path: root/test/docker/centos7
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
commitf2621414ee5f2f601424c22f00e207903e3b6104 (patch)
tree56a856dafd1ca684bb23263cacaa723ee4f404fc /test/docker/centos7
parentAdding debian version 1:2.11-8. (diff)
downloadbash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.tar.xz
bash-completion-f2621414ee5f2f601424c22f00e207903e3b6104.zip
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/docker/centos7')
-rw-r--r--test/docker/centos7/Dockerfile27
-rwxr-xr-xtest/docker/centos7/install-packages.sh15
2 files changed, 42 insertions, 0 deletions
diff --git a/test/docker/centos7/Dockerfile b/test/docker/centos7/Dockerfile
new file mode 100644
index 0000000..c0611e7
--- /dev/null
+++ b/test/docker/centos7/Dockerfile
@@ -0,0 +1,27 @@
+FROM centos:7
+
+RUN set -x \
+ && sed -i -e /tsflags=nodocs/d /etc/yum.conf \
+ && yum -y install \
+ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
+ && yum -y upgrade \
+ && yum -y install \
+ /usr/bin/autoconf \
+ /usr/bin/automake \
+ /usr/bin/make \
+ # /usr/bin/which: https://bugzilla.redhat.com/show_bug.cgi?id=1443357 \
+ /usr/bin/which \
+ /usr/bin/xvfb-run \
+ python36-pexpect
+
+ADD test-cmd-list.txt \
+ requirements.txt \
+ docker/centos7/install-packages.sh \
+ /tmp/
+
+RUN set -x \
+ && pip3 install --prefix /usr/local -Ir /tmp/requirements.txt
+
+RUN /tmp/install-packages.sh </tmp/test-cmd-list.txt \
+ && yum -Cy clean all \
+ && rm -r /tmp/* /root/.cache/pip /var/lib/yum/history/* /var/lib/yum/yumdb/*
diff --git a/test/docker/centos7/install-packages.sh b/test/docker/centos7/install-packages.sh
new file mode 100755
index 0000000..7373c00
--- /dev/null
+++ b/test/docker/centos7/install-packages.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -xeuo pipefail
+
+shopt -s extglob
+
+cd "${TMPDIR:-/tmp}"
+
+while read -r file; do
+ case $file in
+ mock | */mock) printf "%s\n" mock ;;
+ /*) printf "%s\n" "$file" ;;
+ *) printf "%s\n" {/usr,}/{,s}bin/"$file" ;;
+ esac
+done |
+ xargs yum -y install