Skip to content

Commit be56dd0

Browse files
Take changes from #760
1 parent 1385867 commit be56dd0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build_artifacts/v2/v2.8/v2.8.2/dirs/etc/sagemaker-ui/workflows/start-workflows-container.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ set -eu
33

44
# Get project directory based on storage type
55
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
117

128
# Datazone project metadata
139
RESOURCE_METADATA_FILE=/opt/ml/metadata/resource-metadata.json

build_artifacts/v2/v2.8/v2.8.2/dirs/etc/sagemaker-ui/workflows/stop-workflows-container.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
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+
36
DOCKER_EXECUTABLE=$(which docker)
47

58
# Stop healthchecker
69
supervisorctl -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

0 commit comments

Comments
 (0)