Skip to content

Commit 4d8f9b1

Browse files
Merge pull request #91 from opensciencegrid/matyasselmeci-patch-091924
Remove EL7/3.6 code from Dockerfile
2 parents 538f043 + 95714db commit 4d8f9b1

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

Dockerfile

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,17 @@ 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 \
2920
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 && \
3522
log "Installing EPEL/OSG repo packages" && time \
3623
yum -y install $OSG_URL \
3724
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 && \
4728
if [[ $BASE_YUM_REPO != "release" ]]; then \
4829
yum-config-manager --enable osg-${BASE_YUM_REPO}; \
4930
yum-config-manager --enable osg-upcoming-${BASE_YUM_REPO}; else \
@@ -72,11 +53,6 @@ RUN \
7253
# Impatiently ignore the Yum mirrors
7354
sed -i 's/\#baseurl/baseurl/; s/mirrorlist/\#mirrorlist/' \
7455
/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 && \
8056
mkdir -p /etc/osg/image-{cleanup,init}.d/ && \
8157
# Support old init script dir name
8258
ln -s /etc/osg/image-{init,config}.d
@@ -96,7 +72,6 @@ RUN chmod g+w /var/log /var/log/supervisor /var/run
9672

9773
# Allow use of SHA1 certificates.
9874
# Accepted values are "YES" (enable them, even on EL9), "NO" (disable them, even on EL8), "DEFAULT" (use OS default).
99-
# No effect on EL7.
10075
ENV ENABLE_SHA1=DEFAULT
10176

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

0 commit comments

Comments
 (0)