Skip to content

Commit edfd4b3

Browse files
Remove EL7/3.6 code from Dockerfile
Also makes use of /usr/bin/crb (provided by the epel-release RPM) which enables the powertools/crb repo, as appropriate for the distro.
1 parent 538f043 commit edfd4b3

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

Dockerfile

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ RUN \
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 \
@@ -35,15 +26,9 @@ RUN \
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 \
@@ -72,11 +57,6 @@ RUN \
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.
10079
ENV ENABLE_SHA1=DEFAULT
10180

10281
CMD ["/usr/local/sbin/supervisord_startup.sh"]

0 commit comments

Comments
 (0)