Skip to content

Commit

Permalink
Add to mirror NERSC
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyzt committed Apr 3, 2024
1 parent 76b3d8f commit 07f7530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ 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

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

# Docker mounts local user files in $(pwd) to $MOUNT,
# which we symlink to $SYNCED
ENV MOUNT=/mnt/local_volume
ENV SYNCED=$HOME/synced

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

# Add startup file to home directory
Expand Down
1 change: 1 addition & 0 deletions welcome.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"* Pipeline code for processing the data are installed at **~/desihub**.\n",
"* For convenience, files inside **~/synced** (`$SYNCED`) are synced to the directory in which you ran this container.\n",
"* Additionally, all files in this container are saved in a volume that you can access with `docker volume`.\n",
"* This includes scratch work done in, say, **~/scratch** (`$SCRATCH`).\n",
"\n",
"*April 2024 - Xing Liu (UC Berkeley) and Anthony Kremin (Berkeley lab)*"
]
Expand Down

0 comments on commit 07f7530

Please sign in to comment.