docs: Add 42 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 59s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 59s
This commit is contained in:
18
squashkiwi-streaming/ssh.sh
Executable file
18
squashkiwi-streaming/ssh.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "PROJECT_NAME"
|
||||
|
||||
# List running containers
|
||||
echo "Available containers:"
|
||||
docker ps --filter "name=${PROJECT_NAME}" --format "table {{.Names}}\t{{.Status}}"
|
||||
|
||||
echo ""
|
||||
read -p "Enter container name to SSH into (or press Enter for mediamtx): " container
|
||||
|
||||
if [[ -z "$container" ]]; then
|
||||
container="${PROJECT_NAME}-mediamtx"
|
||||
fi
|
||||
|
||||
echo "Connecting to ${container}..."
|
||||
docker exec -it "${container}" /bin/sh
|
Reference in New Issue
Block a user