File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
build_artifacts/v2/v2.3/v2.3.0/dirs/usr/local/bin Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 6
6
# micromamba commands (e.g. using `micromamba activate` to activate environments)
7
7
eval " $( micromamba shell hook --shell=bash) "
8
8
9
- # Activate conda environment 'base', where supervisord is installed
10
- micromamba activate base
9
+ if [ -n " $SAGEMAKER_RECOVERY_MODE " ]; then
10
+ export HOME=$SAGEMAKER_RECOVERY_MODE
11
+ # Activate conda environment `sagemaker-recovery-mode`
12
+ micromamba activate sagemaker-recovery-mode
13
+ else
14
+ # Activate conda environment 'base'
15
+ micromamba activate base
16
+ fi
11
17
12
18
# Set up SAGEMAKER_APP_TYPE_LOWERCASE based on SAGEMAKER_APP_TYPE
13
19
export SAGEMAKER_APP_TYPE_LOWERCASE=$( echo $SAGEMAKER_APP_TYPE | tr ' [:upper:]' ' [:lower:]' )
Original file line number Diff line number Diff line change 3
3
4
4
eval " $( micromamba shell hook --shell=bash) "
5
5
6
- # Activate conda environment 'base', which is the default environment for Cosmos
7
- micromamba activate base
6
+ if [ -n " $SAGEMAKER_RECOVERY_MODE " ]; then
7
+ export HOME=$SAGEMAKER_RECOVERY_MODE
8
+ # Activate conda environment `sagemaker-recovery-mode`
9
+ micromamba activate sagemaker-recovery-mode
10
+ else
11
+ # Activate conda environment 'base'
12
+ micromamba activate base
13
+ fi
8
14
9
15
# Start Jupyter server in rtc mode for shared spaces
10
16
if [ -n " $SAGEMAKER_APP_TYPE_LOWERCASE " ] && [ " $SAGEMAKER_SPACE_TYPE_LOWERCASE " == " shared" ]; then
You can’t perform that action at this time.
0 commit comments