copilot test
This commit is contained in:
14
scripts/install_hooks.sh
Executable file
14
scripts/install_hooks.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
# Install repository-local git hooks by setting core.hooksPath
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
HOOKS_DIR="$REPO_ROOT/.githooks"
|
||||
|
||||
if [ ! -d "$HOOKS_DIR" ]; then
|
||||
echo "No .githooks directory found in repo root: $HOOKS_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git config core.hooksPath "$HOOKS_DIR"
|
||||
echo "Installed git hooks path: $HOOKS_DIR"
|
||||
echo "You can revert with: git config --unset core.hooksPath"
|
||||
10
scripts/start_scenar.sh
Normal file
10
scripts/start_scenar.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
# Usage: ./scripts/start_scenar.sh [image] [container_name] [port]
|
||||
IMAGE=${1:-scenar-creator:latest}
|
||||
NAME=${2:-scenar-creator}
|
||||
PORT=${3:-8080}
|
||||
|
||||
echo "Starting container '$NAME' from image '$IMAGE' on port $PORT..."
|
||||
docker run -d --name "$NAME" -p "$PORT:8080" "$IMAGE"
|
||||
echo "Container started."
|
||||
8
scripts/stop_scenar.sh
Normal file
8
scripts/stop_scenar.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
# Usage: ./scripts/stop_scenar.sh [container_name]
|
||||
NAME=${1:-scenar-creator}
|
||||
|
||||
echo "Stopping and removing container '$NAME'..."
|
||||
docker rm -f "$NAME" >/dev/null 2>&1 || true
|
||||
echo "Container removed (if it existed)."
|
||||
Reference in New Issue
Block a user