1414 log () { printf "\n %s\t %s\n\n " "$(date '+%F %X %z')" "$*" ; } ; \
1515 # Attempt to grab the major version from the tag \
1616 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 && \
2617 log "Updating OS YUM cache" && time \
2718 yum makecache && \
2819 log "Updating OS" && time \
3526 log "Installing EPEL/OSG repo packages" && time \
3627 yum -y install $OSG_URL \
3728 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 && \
4732 if [[ $BASE_YUM_REPO != "release" ]]; then \
4833 yum-config-manager --enable osg-${BASE_YUM_REPO}; \
4934 yum-config-manager --enable osg-upcoming-${BASE_YUM_REPO}; else \
7257 # Impatiently ignore the Yum mirrors
7358 sed -i 's/\# baseurl/baseurl/; s/mirrorlist/\# mirrorlist/' \
7459 /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 && \
8060 mkdir -p /etc/osg/image-{cleanup,init}.d/ && \
8161 # Support old init script dir name
8262 ln -s /etc/osg/image-{init,config}.d
@@ -96,7 +76,6 @@ RUN chmod g+w /var/log /var/log/supervisor /var/run
9676
9777# Allow use of SHA1 certificates.
9878# Accepted values are "YES" (enable them, even on EL9), "NO" (disable them, even on EL8), "DEFAULT" (use OS default).
99- # No effect on EL7.
10079ENV ENABLE_SHA1=DEFAULT
10180
10281CMD ["/usr/local/sbin/supervisord_startup.sh" ]
0 commit comments