add feature to load docker image
This commit is contained in:
parent
4b4e773686
commit
75a5553a11
@ -1,5 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Load the Docker image from the tar file
|
||||||
|
echo "Loading Docker image from $COMPOSE_FILE..."
|
||||||
|
docker load -i "docker/myp-rp_latest.tar.xz"
|
||||||
|
|
||||||
|
# Check if loading the image was successful
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error occurred while loading Docker image"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Execute docker compose
|
# Execute docker compose
|
||||||
echo "Running docker compose..."
|
echo "Running docker compose..."
|
||||||
docker compose -f "$COMPOSE_FILE" up -d
|
docker compose -f "$COMPOSE_FILE" up -d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user