@@ -36,12 +36,17 @@ ENV LC_ALL en_US.UTF-8
3636ENV LANG en_US.UTF-8
3737ENV LANGUAGE en_US.UTF-8
3838
39+ # Terrible bug in all .r0 not allowing to use our xcache
40+ RUN conda uninstall -y ca-policy-lcg
41+
3942# Install all OS dependencies for notebook server that starts but lacks all
4043# features (e.g., download as all possible file formats)
41- RUN yum -y update \
44+ RUN yum install -y https://repo.osg-htc.org/osg/24-main/osg-24-main-el9-release-latest.rpm \
45+ && yum -y update \
4246 && yum -y group install "Development Tools" \
4347 && yum -y install \
4448 wget \
49+ osg-ca-certs \
4550 epel-release \
4651 gettext \
4752 bzip2 \
@@ -149,10 +154,6 @@ RUN cd /tmp && \
149154ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
150155ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClXcachePlugin-5.so"
151156
152- # Include additional CA certificates beyond ca-policy-lcg
153- COPY certs/* /etc/grid-security/certificates/
154- RUN openssl rehash /etc/grid-security/certificates/
155-
156157# TODO: RETEST IF WE STILL NEED THIS
157158ENV LD_LIBRARY_PATH="${CONDA_DIR}/lib/:$LD_LIBRARY_PATH"
158159ENV PATH="${CONDA_DIR}/bin/:$PATH"
@@ -161,18 +162,22 @@ USER root
161162# Setup supervisord files
162163COPY k8s-worker/supervisord.conf /etc/supervisor/
163164
164- #TODO please remove this line later: rm -rf /usr/local/etc/grid-security/certificates/*.r0 && \
165- RUN rm -rf /etc/grid-security && \
166- rm -rf /usr/local/etc/grid-security/certificates/*.r0 && \
167- cp -R /usr/local/etc/grid-security /etc/grid-security && \
168- chown -h "${NB_USER}:${NB_GID}" /etc/grid-security && \
169- test -d /usr/local/etc/grid-security && chmod -R 755 /usr/local/etc/grid-security && \
170- find /usr/local/etc/grid-security -type f -exec chmod g-w {} + && \
171- test -d /etc/grid-security && chmod -R 755 /etc/grid-security
165+ # Fix permission after all packages installations are done
166+ RUN fix-permissions "${CONDA_DIR}"
172167
168+ # Include additional CA certificates beyond ca-policy-lcg
169+ COPY certs/* /etc/grid-security/certificates/
170+ RUN openssl rehash /etc/grid-security/certificates/
171+
172+ RUN chmod -R g-w /usr/local/etc/grid-security/ && chmod -R g-w /etc/grid-security/
173+ #chown -h "${NB_USER}:${NB_GID}" /etc/grid-security && \
174+ #test -d /usr/local/etc/grid-security && chmod -R 755 /usr/local/etc/grid-security && \
175+ #find /usr/local/etc/grid-security -type f -exec chmod g-w {} + && \
176+ #test -d /etc/grid-security && chmod -R 755 /etc/grid-security
173177# Setup HTCondor user/group and change group for user $NB_USER
174178# Fix error (submitting jobs as user/group 0 (root) is not allowed for security reasons) and
175179# it configured from kubernetes side and updated in docker container to match it
180+
176181RUN groupadd -r condor && \
177182 useradd -r -g condor -d /var/lib/condor -s /sbin/nologin condor
178183
@@ -208,8 +213,5 @@ RUN mkdir /cvmfs
208213ADD prepare-env/prepare-env-cc-analysis.sh /usr/local/bin/prepare-env.sh
209214RUN chmod ugo+x /usr/local/bin/prepare-env.sh
210215
211- # Fix permission after all packages installations are done
212- RUN fix-permissions "${CONDA_DIR}"
213-
214216USER $NB_USER
215217ENTRYPOINT ["tini", "-g", "--", "/usr/local/bin/prepare-env.sh"]
0 commit comments