Skip to content

Commit

Permalink
Add NERSC compat hardcoded path
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyzt committed Apr 3, 2024
1 parent 278c890 commit d8251fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ ENV DESI_BUCKET_CACHE=$HOME/.desibucket_cache
# For compatibility with NERSC, $DESI_ROOT points to the base of the latest public data release
ENV DESI_ROOT=$DESI_BUCKET/$DESI_RELEASE

# Some NERSC tutorials use this hard-coded path instead, which we symlink
ENV DESI_BUCKET_NERSC=/global/cfs/cdirs/desi/public
ENV DESI_ROOT_NERSC=$DESI_BUCKET_NERSC/$DESI_RELEASE

# NERSC also provides a "scratch" directory for scratch work
ENV SCRATCH=$HOME/scratch

Expand All @@ -54,8 +58,9 @@ ENV MOUNT=/mnt/local_volume
ENV SYNCED=$HOME/synced

# Create directories
RUN mkdir -p $HOME $DESI_HUB $DESI_BUCKET $DESI_BUCKET_CACHE $SCRATCH $MOUNT \
&& ln -s $MOUNT $SYNCED
RUN mkdir -p $HOME $DESI_HUB $DESI_BUCKET $DESI_BUCKET_CACHE $DESI_BUCKET_NERSC $SCRATCH $MOUNT \
&& ln -s $MOUNT $SYNCED \
&& ln -s $DESI_ROOT $DESI_ROOT_NERSC

# Add startup file to home directory
COPY ./welcome.ipynb $HOME
Expand Down

0 comments on commit d8251fd

Please sign in to comment.