File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
build_artifacts/v2/v2.8/v2.8.2/dirs/etc/sagemaker-ui/workflows Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Get project directory based on storage type
5
5
PROJECT_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
11
7
12
8
# Datazone project metadata
13
9
RESOURCE_METADATA_FILE=/opt/ml/metadata/resource-metadata.json
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ PROJECT_DIR=${SMUS_PROJECT_DIR:- " $HOME /src" }
4
+ MOUNT_DIR=$( readlink -f " $PROJECT_DIR " ) # get the symlink source if it's symlink
5
+
3
6
DOCKER_EXECUTABLE=$( which docker)
4
7
5
8
# Stop healthchecker
6
9
supervisorctl -s unix:///var/run/supervisord/supervisor.sock stop workflows_healthcheck
7
10
8
11
# Stop the containers
12
+ export MOUNT_DIR=$MOUNT_DIR
9
13
$DOCKER_EXECUTABLE compose -f /etc/sagemaker-ui/workflows/docker-compose.yaml down
10
14
11
15
# Update status to stopped
You can’t perform that action at this time.
0 commit comments