Skip to content

Commit

Permalink
Partially mitigate FNALLPC#19.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexx Perloff authored and Alexx Perloff committed Jun 28, 2021
1 parent d2a42cc commit 2be2c3e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions containerize/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="Provides a runnable CMSSW image with $ANALYSIS_NAME pre-installed." \
org.label-schema.vendor="FNAL"

USER cmsusr
ARG USERDIR_BUILD=/home/${USER}
ARG USER_BUILD=cmsusr
ARG USERDIR_BUILD=/home/${USER_BUILD}
USER ${USER_BUILD}
WORKDIR ${USERDIR_BUILD}

ARG CMSSW_VERSION
Expand Down Expand Up @@ -45,8 +46,10 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vendor="FNAL"

ARG CMSSW_VERSION
ARG USER_BUILD=cmsusr
ARG NONPRIVILEGED_USER=cmsusr
ARG USERDIR_BUILD=/home/${USER_BUILD}
ARG USERDIR=/home/${NONPRIVILEGED_USER}
WORKDIR ${USERDIR}
COPY --from=builder --chown=cmsusr:cmsusr /home/cmsusr/${CMSSW_VERSION} ${USERDIR}/${CMSSW_VERSION}
COPY --from=builder --chown=cmsusr:cmsusr ${USERDIR_BUILD}/${CMSSW_VERSION} ${USERDIR}/${CMSSW_VERSION}
RUN pwd && ls -alh ./

0 comments on commit 2be2c3e

Please sign in to comment.