Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates tested docker and apptainer versions for cluster deployment #1230

Merged
merged 6 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
uncomment code
  • Loading branch information
pascal-roth committed Oct 14, 2024
commit 59d9ebf15424e8022bdfb3be3c6b0ef6ffdd384d
34 changes: 17 additions & 17 deletions docker/cluster/cluster_interface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,25 @@ case $command in
fi
# Check if Docker image exists
check_image_exists isaac-lab-$profile:latest
# Check if Docker version is greater than 25
# Check docker and apptainer version
check_docker_version
# source env file to get cluster login and path information
# source $SCRIPT_DIR/.env.cluster
# # make sure exports directory exists
# mkdir -p /$SCRIPT_DIR/exports
# # clear old exports for selected profile
# rm -rf /$SCRIPT_DIR/exports/isaac-lab-$profile*
# # create singularity image
# # NOTE: we create the singularity image as non-root user to allow for more flexibility. If this causes
# # issues, remove the --fakeroot flag and open an issue on the IsaacLab repository.
# cd /$SCRIPT_DIR/exports
# APPTAINER_NOHTTPS=1 apptainer build --sandbox --fakeroot isaac-lab-$profile.sif docker-daemon://isaac-lab-$profile:latest
# # tar image (faster to send single file as opposed to directory with many files)
# tar -cvf /$SCRIPT_DIR/exports/isaac-lab-$profile.tar isaac-lab-$profile.sif
# # make sure target directory exists
# ssh $CLUSTER_LOGIN "mkdir -p $CLUSTER_SIF_PATH"
# # send image to cluster
# scp $SCRIPT_DIR/exports/isaac-lab-$profile.tar $CLUSTER_LOGIN:$CLUSTER_SIF_PATH/isaac-lab-$profile.tar
source $SCRIPT_DIR/.env.cluster
# make sure exports directory exists
mkdir -p /$SCRIPT_DIR/exports
# clear old exports for selected profile
rm -rf /$SCRIPT_DIR/exports/isaac-lab-$profile*
# create singularity image
# NOTE: we create the singularity image as non-root user to allow for more flexibility. If this causes
# issues, remove the --fakeroot flag and open an issue on the IsaacLab repository.
cd /$SCRIPT_DIR/exports
APPTAINER_NOHTTPS=1 apptainer build --sandbox --fakeroot isaac-lab-$profile.sif docker-daemon://isaac-lab-$profile:latest
# tar image (faster to send single file as opposed to directory with many files)
tar -cvf /$SCRIPT_DIR/exports/isaac-lab-$profile.tar isaac-lab-$profile.sif
# make sure target directory exists
ssh $CLUSTER_LOGIN "mkdir -p $CLUSTER_SIF_PATH"
# send image to cluster
scp $SCRIPT_DIR/exports/isaac-lab-$profile.tar $CLUSTER_LOGIN:$CLUSTER_SIF_PATH/isaac-lab-$profile.tar
;;
job)
if [ $# -ge 1 ]; then
Expand Down
Loading