This commit is contained in:
Your Name
2025-04-21 20:34:48 +12:00
parent 2e652be9f9
commit b53e0f6654
7 changed files with 106 additions and 4 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
source "$(dirname "$0")/_common.sh"
load_env "$1" || die "Failed to load environment variables"
echo $HOST_PORT

View File

@ -13,3 +13,10 @@ DOCKER_RUN_CMD="docker run -d \
if ! create_and_start_container "$DOCKER_RUN_CMD"; then
die "Failed to start container ${CONTAINER_NAME}"
fi
# Check if the container is running
if ! _is_container_running "$CONTAINER_NAME"; then
die "Container ${CONTAINER_NAME} is not running"
fi
echo "Container ${CONTAINER_NAME} started"

View File

@ -3,3 +3,5 @@ source "$(dirname "$0")/_common.sh"
load_env "$1" || die "Failed to load environment variables"
_stop_container $CONTAINER_NAME || die "Failed to stop container ${CONTAINER_NAME}"
echo "Container ${CONTAINER_NAME} stopped"