Skip to content

Commit 25bb175

Browse files
author
Ruinong Tian
committed
fix recovery mode
1 parent e0ed3d8 commit 25bb175

File tree

8 files changed

+4
-1738
lines changed

8 files changed

+4
-1738
lines changed

build_artifacts/v3/v3.0/v3.0.1/CHANGELOG-cpu.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

build_artifacts/v3/v3.0/v3.0.1/CHANGELOG-gpu.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

build_artifacts/v3/v3.0/v3.0.1/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ RUN if [[ -z $ARG_BASED_ENV_IN_FILENAME ]] ; \
102102
JUPYTERLAB_VERSION=$(grep "^conda-forge::jupyterlab\[" /tmp/$ENV_IN_FILENAME) && \
103103
SAGEMAKER_JUPYTERLAB_VERSION=$(grep "^conda-forge::sagemaker-jupyterlab-extension" /tmp/$ENV_IN_FILENAME) && \
104104
echo "Installing in sagemaker-recovery-mode micromamba environment: $JUPYTERLAB_VERSION $SAGEMAKER_JUPYTERLAB_VERSION" && \
105-
micromamba create -n sagemaker-recovery-mode && \
106-
micromamba install -n sagemaker-recovery-mode -y $JUPYTERLAB_VERSION $SAGEMAKER_JUPYTERLAB_VERSION $SUPERVISOR_VERSION && \
105+
micromamba create --prefix /opt/conda/envs/sagemaker-recovery-mode && \
106+
micromamba install --prefix /opt/conda/envs/sagemaker-recovery-mode -y $JUPYTERLAB_VERSION $SAGEMAKER_JUPYTERLAB_VERSION $SUPERVISOR_VERSION && \
107107
micromamba clean --all --yes --force-pkgs-dirs && \
108108
rm -rf /tmp/*.in && \
109109
sudo ln -s $(which python3) /usr/bin/python && \

build_artifacts/v3/v3.0/v3.0.1/RELEASE.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

build_artifacts/v3/v3.0/v3.0.1/cpu.env.out

Lines changed: 0 additions & 768 deletions
This file was deleted.

build_artifacts/v3/v3.0/v3.0.1/dirs/usr/local/bin/entrypoint-jupyter-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eval "$(micromamba shell hook --shell=bash)"
99
if [ -n "$SAGEMAKER_RECOVERY_MODE" ]; then
1010
export HOME=$SAGEMAKER_RECOVERY_MODE_HOME
1111
# Activate conda environment `sagemaker-recovery-mode`
12-
micromamba activate /home/sagemaker-user/.conda/envs/sagemaker-recovery-mode
12+
micromamba activate /opt/conda/envs/sagemaker-recovery-mode
1313
else
1414
# Activate conda environment 'base'
1515
micromamba activate base

build_artifacts/v3/v3.0/v3.0.1/dirs/usr/local/bin/start-jupyter-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ eval "$(micromamba shell hook --shell=bash)"
66
if [ -n "$SAGEMAKER_RECOVERY_MODE" ]; then
77
export HOME=$SAGEMAKER_RECOVERY_MODE_HOME
88
# Activate conda environment `sagemaker-recovery-mode`
9-
micromamba activate /home/sagemaker-user/.conda/envs/sagemaker-recovery-mode
9+
micromamba activate /opt/conda/envs/sagemaker-recovery-mode
1010
else
1111
# Activate conda environment 'base'
1212
micromamba activate base

0 commit comments

Comments
 (0)