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 278c890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
3 changes: 2 additions & 1 deletion welcome.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"\n",
"* This is the home directory **~** (`$HOME`) of this Docker container.\n",
"* Public DESI data releases are mounted at **~/desibucket**.\n",
"* EDR, the latest public release, is found in **~/desibucket/edr** (`$DESI_ROOT`).\n",
" * EDR, the latest public release, is found in **~/desibucket/edr** (`$DESI_ROOT`).\n",
"* Example code for analyzing the data can be found at **~/tutorials**.\n",
"* 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 278c890

Please sign in to comment.