@@ -78,11 +78,6 @@ RUN chmod +x /usr/bin/tini
7878COPY jupyterhub/fix-permissions /usr/local/bin/fix-permissions
7979RUN chmod a+rx /usr/local/bin/fix-permissions
8080
81- RUN rm -rf /etc/grid-security && \
82- ln -s /usr/local/etc/grid-security /etc/grid-security && \
83- chmod 755 /etc/grid-security/certificates && \
84- chmod g-w /etc/grid-security/certificates
85-
8681# Enable prompt color in the skeleton .bashrc before creating the default NB_USER
8782# hadolint ignore=SC2016
8883RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashrc && \
@@ -165,6 +160,16 @@ ENV PATH="${CONDA_DIR}/bin/:$PATH"
165160USER root
166161# Setup supervisord files
167162COPY k8s-worker/supervisord.conf /etc/supervisor/
163+
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
172+
168173# Setup HTCondor user/group and change group for user $NB_USER
169174# Fix error (submitting jobs as user/group 0 (root) is not allowed for security reasons) and
170175# it configured from kubernetes side and updated in docker container to match it
@@ -177,9 +182,6 @@ COPY dask/distributed ${CONDA_DIR}/lib/python3.12/site-packages/distributed
177182RUN cd ${CONDA_DIR}/lib/python3.12/site-packages/distributed && \
178183 patch -p2 < 0001-Patch-from-bbockelman-adaptive-scaling.patch && \
179184 patch -p2 < 0002-Allow-scheduler-to-preserve-worker-hostnames.patch
180- # && patch -p2 < 0003-Activate-patch.patch
181- # && patch -p2 < 0004-Add-possibility-to-setup-external_adress-for-schedul.patch
182- # && patch -p2 < 0005-Add-nanny-patch.patch
183185
184186# FIXME: we have a wrong path, let's make a link.
185187# cms-jovyan@jupyter-oksana-2eshadura-40cern-2ech:~$ echo $PATH
0 commit comments