Skip to content

Commit

Permalink
Merge branch 'main' into issue-1316
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc authored May 22, 2024
2 parents be29a11 + 602a1f9 commit 16124aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
# ***************************************************************

ARG BASE_YUM_REPO=release
ARG BASE_OSG_SERIES=3.6
ARG BASE_OSG_SERIES=23
ARG BASE_OS=el9

FROM goreleaser/goreleaser:v1.21.0 AS pelican-build
ARG IS_NONRELEASE_BUILD="true"
Expand All @@ -39,16 +40,15 @@ RUN\

FROM --platform=linux/amd64 hub.opensciencegrid.org/sciauth/scitokens-oauth2-server:release-20231118-1823 AS scitokens-oauth2-server

FROM --platform=linux/amd64 opensciencegrid/software-base:$BASE_OSG_SERIES-el8-$BASE_YUM_REPO AS dependency-build
FROM --platform=linux/amd64 opensciencegrid/software-base:$BASE_OSG_SERIES-$BASE_OS-$BASE_YUM_REPO AS dependency-build

# Create the xrootd user with a fixed GID/UID
RUN groupadd -o -g 10940 xrootd
RUN useradd -o -u 10940 -g 10940 -s /bin/sh xrootd

# Install dependencies
RUN yum -y update \
&& yum -y install https://repo.opensciencegrid.org/osg/23-main/osg-23-main-el8-release-latest.rpm\
&& yum -y install tini xrootd xrootd-client xrdcl-http xrootd-server xrootd-scitokens xrootd-voms xrootd-multiuser curl java-17-openjdk-headless \
&& yum -y --allowerasing install tini xrootd xrootd-client xrdcl-http xrootd-server xrootd-scitokens xrootd-voms xrootd-multiuser curl java-17-openjdk-headless \
&& yum clean all \
&& rm -rf /var/cache/yum/

Expand Down Expand Up @@ -124,7 +124,7 @@ WORKDIR /pelican
# Download and install tomcat
RUN useradd -r -s /sbin/nologin tomcat ;\
mkdir -p /opt/tomcat ;\
curl -s -L https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.80/bin/apache-tomcat-9.0.80.tar.gz | tar -zxf - -C /opt/tomcat --strip-components=1 ;\
curl -s -L https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.83/bin/apache-tomcat-9.0.83.tar.gz | tar -zxf - -C /opt/tomcat --strip-components=1 ;\
chgrp -R tomcat /opt/tomcat/conf ;\
chmod g+rwx /opt/tomcat/conf ;\
chmod g+r /opt/tomcat/conf/* ;\
Expand Down
14 changes: 7 additions & 7 deletions images/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# fail on building this container on arm machine
FROM --platform=linux/amd64 hub.opensciencegrid.org/sciauth/scitokens-oauth2-server:release-20231118-1823 AS scitokens-oauth2-server

FROM almalinux:8
FROM almalinux:9

# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETARCH
Expand All @@ -32,7 +32,7 @@ ENV GOFLAGS="-buildvcs=false"
RUN groupadd -o -g 10940 xrootd
RUN useradd -o -u 10940 -g 10940 -s /bin/sh xrootd

RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
/usr/bin/crb enable && \
# ^^ crb enables the Code Ready Builder repository (EL9) or PowerTools (EL8), needed for some of our dependencies \
yum clean all
Expand All @@ -49,7 +49,7 @@ gpgcheck=0' > /etc/yum.repos.d/goreleaser.repo
RUN echo '%_topdir /usr/local/src/rpmbuild' > $HOME/.rpmmacros

# Download OSG's XRootD SRPM and rebuild it. Create a yum repository to put the results in.
RUN yum install -y yum-utils createrepo https://repo.opensciencegrid.org/osg/23-main/osg-23-main-el8-release-latest.rpm && \
RUN yum install -y yum-utils createrepo https://repo.opensciencegrid.org/osg/23-main/osg-23-main-el9-release-latest.rpm && \
yum-config-manager --setopt=install_weak_deps=False --save && \
# ^^ save some space by not installing weak dependencies \
yum-config-manager --disable osg --save && \
Expand All @@ -60,7 +60,7 @@ RUN yum install -y yum-utils createrepo https://repo.opensciencegrid.org/osg/23-
yumdownloader --source xrootd --disablerepo=\* --enablerepo=osg-development-source && \
yum-builddep -y xrootd-*.osg*.src.rpm && \
rpmbuild --define 'osg 1' \
--define 'dist .osg.el8' \
--define 'dist .osg.el9' \
--without compat \
--without doc \
--nocheck \
Expand Down Expand Up @@ -164,7 +164,7 @@ RUN n lts && \
##
RUN useradd -r -s /sbin/nologin tomcat ;\
mkdir -p /opt/tomcat ;\
curl -s -L https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.80/bin/apache-tomcat-9.0.80.tar.gz | tar -zxf - -C /opt/tomcat --strip-components=1 ;\
curl -s -L https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.83/bin/apache-tomcat-9.0.83.tar.gz | tar -zxf - -C /opt/tomcat --strip-components=1 ;\
chgrp -R tomcat /opt/tomcat/conf ;\
chmod g+rwx /opt/tomcat/conf ;\
chmod g+r /opt/tomcat/conf/* ;\
Expand Down Expand Up @@ -229,8 +229,8 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
fi

# Install pre-commit
RUN yum install -y python39 python39-pip &&\
/bin/pip-3.9 install pre-commit
RUN python3.9 -m ensurepip &&\
pip3.9 install pre-commit

COPY ./images/dev-container-entrypoint.sh /usr/local/bin/

Expand Down

0 comments on commit 16124aa

Please sign in to comment.