File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
v2/dirs/etc/sagemaker-ui/workflows
v3/dirs/etc/sagemaker-ui/workflows Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 33
44# Get project directory based on storage type
55PROJECT_DIR=${SMUS_PROJECT_DIR:- " $HOME /src" }
6- if [ -z " $SMUS_PROJECT_DIR " ]; then
7- MOUNT_DIR=$PROJECT_DIR
8- else
9- MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source
10- fi
6+ MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source if it's symlink
117
128# Datazone project metadata
139RESOURCE_METADATA_FILE=/opt/ml/metadata/resource-metadata.json
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ PROJECT_DIR=${SMUS_PROJECT_DIR:- " $HOME /src" }
4+ MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source if it's symlink
5+
36DOCKER_EXECUTABLE=$( which docker)
47
58# Stop healthchecker
69supervisorctl -s unix:///var/run/supervisord/supervisor.sock stop workflows_healthcheck
710
811# Stop the containers
12+ export MOUNT_DIR=$MOUNT_DIR
913$DOCKER_EXECUTABLE compose -f /etc/sagemaker-ui/workflows/docker-compose.yaml down
1014
1115# Update status to stopped
Original file line number Diff line number Diff line change 33
44# Get project directory based on storage type
55PROJECT_DIR=${SMUS_PROJECT_DIR:- " $HOME /src" }
6- if [ -z " $SMUS_PROJECT_DIR " ]; then
7- MOUNT_DIR=$PROJECT_DIR
8- else
9- MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source
10- fi
6+ MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source if it's symlink
117
128# Datazone project metadata
139RESOURCE_METADATA_FILE=/opt/ml/metadata/resource-metadata.json
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ PROJECT_DIR=${SMUS_PROJECT_DIR:- " $HOME /src" }
4+ MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source if it's symlink
5+
36DOCKER_EXECUTABLE=$( which docker)
47
58# Stop healthchecker
69supervisorctl -s unix:///var/run/supervisord/supervisor.sock stop workflows_healthcheck
710
811# Stop the containers
12+ export MOUNT_DIR=$MOUNT_DIR
913$DOCKER_EXECUTABLE compose -f /etc/sagemaker-ui/workflows/docker-compose.yaml down
1014
1115# Update status to stopped
You can’t perform that action at this time.
0 commit comments