-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-test.sh
executable file
·47 lines (46 loc) · 937 Bytes
/
docker-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
while read IMG REST; do
# echo docker pull $IMG
# docker pull $IMG >/dev/null
for PROG in su-exec-glibc-shared su-exec-glibc-static su-exec-musl-shared su-exec-musl-static; do
docker run --rm -e 'LC_ALL=en_US.UTF-8' -e 'TZ=Asia/Shanghai' -v `pwd`:/opt $IMG /opt/$PROG daemon date >/dev/null 2>&1
RC=$?
if [ "${RC}0" -eq "0" ] ; then
echo $IMG $PROG "OK"
else
echo $IMG $PROG "XX"
fi
done
done << EOF
alpine:3.2
alpine:3.3
alpine:3.4
alpine:3.5
alpine:3.6
alpine:3.7
alpine:3.8
alpine:3.9
alpine:3.10
alpine:3.11
centos:5
centos:6
centos:7
centos:8
debian:6
debian:7
debian:8
debian:9
debian:10
ubuntu:10.04
ubuntu:12.04
ubuntu:14.04
ubuntu:16.04
ubuntu:18.04
ubuntu:20.04
registry.access.redhat.com/rhel6
registry.access.redhat.com/rhel7
registry.access.redhat.com/ubi7/ubi
registry.access.redhat.com/ubi8/ubi
registry.suse.com/suse/sles12sp5
registry.suse.com/suse/sle15:15.1
EOF