summaryrefslogtreecommitdiffstats
path: root/test/docker/centos7/install-packages.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtest/docker/centos7/install-packages.sh15
1 files changed, 15 insertions, 0 deletions
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