14
14
log () { printf "\n %s\t %s\n\n " "$(date '+%F %X %z')" "$*" ; } ; \
15
15
# Attempt to grab the major version from the tag \
16
16
DVER=$(egrep -o '[0-9][\. 0-9]*$' <<< "$IMAGE_BASE" | cut -d. -f1); \
17
- if [[ $DVER == 7 ]]; then \
18
- YUM_PKG_NAME="yum-plugin-priorities" ; \
19
- yum-config-manager \
20
- --setopt=skip_missing_names_on_install=False \
21
- --setopt=skip_missing_names_on_update=False \
22
- --save > /dev/null; \
23
- else \
24
- YUM_PKG_NAME="yum-utils" ; \
25
- fi && \
26
17
log "Updating OS YUM cache" && time \
27
18
yum makecache && \
28
19
log "Updating OS" && time \
35
26
log "Installing EPEL/OSG repo packages" && time \
36
27
yum -y install $OSG_URL \
37
28
epel-release \
38
- $YUM_PKG_NAME && \
39
- if [[ $DVER == 8 ]]; then \
40
- yum-config-manager --enable powertools && \
41
- yum-config-manager --setopt=install_weak_deps=False --save > /dev/null; \
42
- fi && \
43
- if [[ $DVER == 9 ]]; then \
44
- yum-config-manager --enable crb && \
45
- yum-config-manager --setopt=install_weak_deps=False --save > /dev/null; \
46
- fi && \
29
+ yum-utils && \
30
+ yum-config-manager --setopt=install_weak_deps=False --save > /dev/null && \
31
+ /usr/bin/crb enable && \
47
32
if [[ $BASE_YUM_REPO != "release" ]]; then \
48
33
yum-config-manager --enable osg-${BASE_YUM_REPO}; \
49
34
yum-config-manager --enable osg-upcoming-${BASE_YUM_REPO}; else \
72
57
# Impatiently ignore the Yum mirrors
73
58
sed -i 's/\# baseurl/baseurl/; s/mirrorlist/\# mirrorlist/' \
74
59
/etc/yum.repos.d/osg*.repo && \
75
- # Disable gpgcheck for devops, till we get them rebuilt for SOFTWARE-5422
76
- if [[ $OSG_RELEASE == "3.6" ]]; then \
77
- sed -i 's/gpgcheck=1/gpgcheck=0/' \
78
- /etc/yum.repos.d/devops*.repo; \
79
- fi && \
80
60
mkdir -p /etc/osg/image-{cleanup,init}.d/ && \
81
61
# Support old init script dir name
82
62
ln -s /etc/osg/image-{init,config}.d
@@ -96,7 +76,6 @@ RUN chmod g+w /var/log /var/log/supervisor /var/run
96
76
97
77
# Allow use of SHA1 certificates.
98
78
# Accepted values are "YES" (enable them, even on EL9), "NO" (disable them, even on EL8), "DEFAULT" (use OS default).
99
- # No effect on EL7.
100
79
ENV ENABLE_SHA1=DEFAULT
101
80
102
81
CMD ["/usr/local/sbin/supervisord_startup.sh" ]
0 commit comments