Skip to content

Commit

Permalink
[ALS-5982] Move conda env config to install_kernel script (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
srpiatt authored Mar 1, 2024
1 parent e83cfea commit ff5c722
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/usr/bin/env bash

# --------------------------- Load Kernels to Conda -------------------------- #
KERNEL_PATH="/home/ec2-user/SageMaker/.kernels"
echo "Adding $KERNEL_PATH to conda configuration"
mkdir -p $KERNEL_PATH
chown ec2-user:ec2-user $KERNEL_PATH
cat << EOF >> /home/ec2-user/.condarc
envs_dirs:
- $KERNEL_PATH
- /home/ec2-user/anaconda3/envs
EOF
echo "Finished Adding $KERNEL_PATH to conda configuration"

# --------------------------------- Idle Stop -------------------------------- #
if [ "$AUTO_STOP_IDLE_TIME" != "0" ]; then
echo "Installing the idle stop script"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash

# DEPRECATED - use bootstrap.sh instead

bootstrap_s3_location="$1"
s3_mounts="$2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ if [ "$kernels" != "" ]; then
fi
done
fi

# --------------------------- Load Kernels to Conda -------------------------- #
echo "Adding $KERNEL_PATH to conda configuration"
mkdir -p $KERNEL_PATH
chown ec2-user:ec2-user $KERNEL_PATH
cat << EOF >> /home/ec2-user/.condarc
envs_dirs:
- $KERNEL_PATH
- /home/ec2-user/anaconda3/envs
EOF
echo "Finished Adding $KERNEL_PATH to conda configuration"

0 comments on commit ff5c722

Please sign in to comment.