We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5f95c commit 14bea89Copy full SHA for 14bea89
scripts/next-watcher
@@ -1,8 +1,12 @@
1
#!/bin/sh
2
3
if [ "$#" -ne 1 ]; then
4
- echo "Usage: $0 FOLDER_PATH" >&2
5
- exit 1
+ echo "No folder path provided, using current directory: $(pwd)"
+ FOLDER_PATH=$(pwd)
6
+else
7
+ FOLDER_PATH=$1
8
fi
9
-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