modified
This commit is contained in:
@@ -11,9 +11,10 @@ is_container_running() {
|
|||||||
# Function to wait for the container to be fully up and running
|
# Function to wait for the container to be fully up and running
|
||||||
wait_for_container() {
|
wait_for_container() {
|
||||||
echo "Waiting for container ${CONTAINER_NAME} to be fully up and running..."
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
|
echo "Container ${CONTAINER_NAME} is now up."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to execute commands in the container
|
# Function to execute commands in the container
|
||||||
|
|||||||
Reference in New Issue
Block a user