Skip to content

Commit 14bea89

Browse files
committed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/next-watcher

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/sh
22

33
if [ "$#" -ne 1 ]; then
4-
echo "Usage: $0 FOLDER_PATH" >&2
5-
exit 1
4+
echo "No folder path provided, using current directory: $(pwd)"
5+
FOLDER_PATH=$(pwd)
6+
else
7+
FOLDER_PATH=$1
68
fi
79

8-
docker run -it --rm -v "$1":/app -w /app public.ecr.aws/kplatform/polycode/next-watcher:latest
10+
echo "Logging in to AWS public ECR..."
11+
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
12+
docker run -it --rm -v "$FOLDER_PATH":/app -w /app public.ecr.aws/kplatform/polycode/next-watcher:latest

0 commit comments

Comments
 (0)