Skip to content

Commit 6a760c9

Browse files
Add changes from #761, #776
1 parent 58a57c6 commit 6a760c9

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## SageMaker Unified Studio Space
2+
3+
Welcome to your project space
4+
This is the root folder for your project files. It contains:
5+
- A shared folder for collaborative work
6+
- Your personal local folder for private development
7+
8+
### Personal local folder
9+
Your personal local folder:
10+
- Includes this root folder and any subfolders (except shared)
11+
- Allows you to work on files privately
12+
- Ideal for frequent file access and modification
13+
- Is visible only in this space
14+
15+
### Shared folder
16+
The shared folder:
17+
- Contains files visible to all project members
18+
- Is accessible across all your tools
19+
- Updates immediately when any member adds or modifies files
20+
- Not well-suited for heavy file read/write workloads due to remote Amazon S3 origin of this folder and potential additional costs associated with frequent Amazon S3 access
21+
- If two individuals are modifying the same file in this folder at the same time that might result in losing some changes
22+
23+
24+
To share your files with other project members, copy or move them to the shared folder when ready.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [ ! -f "$HOME/README.md" ]; then
4+
echo "README file not found in $HOME, creating"
5+
6+
cat /etc/sagemaker-ui/project-storage/README.md > "$HOME/README.md"
7+
else
8+
echo "README already exists, skipping"
9+
fi
10+

build_artifacts/v2/v2.8/v2.8.2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ if [ $is_s3_storage_flag -ne 0 ]; then
195195
git config --global user.email "$email"
196196
git config --global user.name "$username"
197197
else
198-
echo "Project is using Non-Git storage, skipping git repository setup and ~/src dir creation"
198+
echo "Project is using Non-Git storage, skipping git repository setup and ~/src dir creation and creating README"
199+
bash /etc/sagemaker-ui/project-storage/create-storage-readme.sh
199200
fi
200201

201202
# MLFlow tracking server uses the LOGNAME environment variable to track identity. Set the LOGNAME to the username of the user associated with the space
@@ -241,7 +242,13 @@ if bash /etc/sagemaker-ui/network_validation.sh "$is_s3_storage_flag" "$network_
241242
# Read unreachable services from JSON file
242243
failed_services=$(jq -r '.UnreachableServices // empty' "$network_validation_file" || echo "")
243244
if [[ -n "$failed_services" ]]; then
244-
error_message="$failed_services are unreachable. Please contact your admin."
245+
# Count number of services by splitting on comma
246+
IFS=',' read -ra failed_array <<< "$failed_services"
247+
count=${#failed_array[@]}
248+
verb="are"
249+
[[ "$count" -eq 1 ]] && verb="is"
250+
251+
error_message="$failed_services $verb unreachable. Please contact your admin."
245252
# Example error message: Redshift Clusters, Athena, STS, Glue are unreachable. Please contact your admin.
246253
write_status_to_file "error" "$error_message"
247254
echo "$error_message"

0 commit comments

Comments
 (0)