Tidying
This commit is contained in:
5
templates/squashkiwi/_ports.sh
Normal file
5
templates/squashkiwi/_ports.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
load_env "$1" || die "Failed to load environment variables"
|
||||
|
||||
echo $HOST_PORT
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user