@@ -14,36 +14,17 @@ RUN \
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 \
29
20
yum distro-sync -y && \
30
- if [[ $OSG_RELEASE =~ ^[0-9][0-9]$ ]]; then \
31
- OSG_URL=https://repo.opensciencegrid.org/osg/${OSG_RELEASE}-main/osg-${OSG_RELEASE}-main-el${DVER}-release-latest.rpm; \
32
- else \
33
- OSG_URL=https://repo.opensciencegrid.org/osg/${OSG_RELEASE}/osg-${OSG_RELEASE}-el${DVER}-release-latest.rpm; \
34
- fi && \
21
+ OSG_URL=https://repo.opensciencegrid.org/osg/${OSG_RELEASE}-main/osg-${OSG_RELEASE}-main-el${DVER}-release-latest.rpm && \
35
22
log "Installing EPEL/OSG repo packages" && time \
36
23
yum -y install $OSG_URL \
37
24
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 && \
25
+ yum-utils && \
26
+ yum-config-manager --setopt=install_weak_deps=False --save > /dev/null && \
27
+ /usr/bin/crb enable && \
47
28
if [[ $BASE_YUM_REPO != "release" ]]; then \
48
29
yum-config-manager --enable osg-${BASE_YUM_REPO}; \
49
30
yum-config-manager --enable osg-upcoming-${BASE_YUM_REPO}; else \
72
53
# Impatiently ignore the Yum mirrors
73
54
sed -i 's/\# baseurl/baseurl/; s/mirrorlist/\# mirrorlist/' \
74
55
/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
56
mkdir -p /etc/osg/image-{cleanup,init}.d/ && \
81
57
# Support old init script dir name
82
58
ln -s /etc/osg/image-{init,config}.d
@@ -96,7 +72,6 @@ RUN chmod g+w /var/log /var/log/supervisor /var/run
96
72
97
73
# Allow use of SHA1 certificates.
98
74
# 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
75
ENV ENABLE_SHA1=DEFAULT
101
76
102
77
CMD ["/usr/local/sbin/supervisord_startup.sh" ]
0 commit comments