File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 70
70
CIRRUS_WORKING_DIR : /home/runc
71
71
GO_VERSION : " 1.17.3"
72
72
BATS_VERSION : " v1.3.0"
73
+ RPMS : gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs
73
74
# yamllint disable rule:key-duplicates
74
75
matrix :
75
76
DISTRO : centos-7
89
90
case $DISTRO in
90
91
centos-7)
91
92
(cd /etc/yum.repos.d && curl -O https://copr.fedorainfracloud.org/coprs/adrian/criu-el7/repo/epel-7/adrian-criu-el7-epel-7.repo)
93
+ # EPEL is needed for jq and fuse-sshfs.
94
+ rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
92
95
# sysctl
93
96
echo "user.max_user_namespaces=15076" > /etc/sysctl.d/userns.conf
94
97
sysctl --system
@@ -104,9 +107,14 @@ task:
104
107
# Work around dnf mirror failures by retrying a few times.
105
108
for i in $(seq 0 2); do
106
109
sleep $i
107
- yum install -y -q gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs && break
110
+ yum install -y $RPMS && break
108
111
done
109
112
[ $? -eq 0 ] # fail if yum failed
113
+
114
+ # Double check that all rpms were installed (yum from CentOS 7
115
+ # does not exit with an error if some packages were not found).
116
+ # Use --whatprovides since some packages are renamed.
117
+ rpm -q --whatprovides $RPMS
110
118
# install Go
111
119
curl -fsSL "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" | tar Cxz /usr/local
112
120
# install bats
You can’t perform that action at this time.
0 commit comments