Skip to content

Commit

Permalink
Revert "Reshuffle dockerfile (we are also retriggering builds)"
Browse files Browse the repository at this point in the history
This reverts commit e26b17a.
  • Loading branch information
oshadura committed Nov 22, 2023
1 parent e26b17a commit 53497e3
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docker/Dockerfile.cc-base-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
#COPY jupyterlab-workspace.json $HOME/
#RUN jupyter lab workspaces import $HOME/jupyterlab-workspace.json

USER root
# Preparing directories for Dask conf files, patches and job spool directory for HTCondor
RUN mkdir -p ${DASK_ROOT_CONFIG} && chown -R "${NB_USER}:${NB_GID}" ${DASK_ROOT_CONFIG} && \
mkdir -p /opt/condor/config.d && chown -R "${NB_USER}:${NB_GID}" /opt/condor/config.d && \
mkdir -p ${HOME}/.condor/tokens.d && \
mkdir -p /var/lib/condor && \
mkdir -p /etc/condor/config.d

USER ${NB_UID}

RUN mamba install --yes \
Expand All @@ -230,13 +238,11 @@ RUN mamba install --yes \
--force-pkgs-dirs \
--yes

USER ${NB_UID}
# Dask, Labextention and coffea-casa setup
COPY dask/dask.yaml dask/labextension.yaml ${DASK_ROOT_CONFIG}/

USER root
# Preparing directories for Dask conf files, patches and job spool directory for HTCondor
RUN mkdir -p ${DASK_ROOT_CONFIG} && chown -R "${NB_USER}:${NB_GID}" ${DASK_ROOT_CONFIG} && \
mkdir -p /opt/condor/config.d && chown -R "${NB_USER}:${NB_GID}" /opt/condor/config.d && \
mkdir -p ${HOME}/.condor/tokens.d && \
mkdir -p /var/lib/condor && \
mkdir -p /etc/condor/config.d
# Add HTCondor configuration files that not needed to be edited
COPY condor/condor_config /etc/condor/
COPY condor/config.d /etc/condor/config.d/
Expand Down Expand Up @@ -265,10 +271,7 @@ RUN rm -rf /opt/conda/condabin && ln -s /opt/conda/bin /opt/conda/condabin
# if not utilized, crucial if CVMFS is desired
RUN mkdir /cvmfs

USER ${NB_USER}
# Dask, Labextention and coffea-casa setup
COPY dask/dask.yaml dask/labextension.yaml ${DASK_ROOT_CONFIG}/

USER ${NB_USER}
RUN pip install --no-cache-dir \
correctionlib \
funcx \
Expand Down

0 comments on commit 53497e3

Please sign in to comment.