This commit is contained in:
zino
2023-11-23 14:11:36 +01:00
parent 6816f5ba10
commit 5709330af5

View File

@@ -11,9 +11,10 @@ is_container_running() {
# Function to wait for the container to be fully up and running
wait_for_container() {
echo "Waiting for container ${CONTAINER_NAME} to be fully up and running..."
while ! docker exec "${CONTAINER_NAME}" echo "Container is up" &>/dev/null; do
while ! docker exec "${CONTAINER_NAME}" /bin/sh -c "exit" &> /dev/null; do
sleep 1
done
echo "Container ${CONTAINER_NAME} is now up."
}
# Function to execute commands in the container