Files
Shiip-of-Hakinian-Espanol-A…/docker/scripts/install_container_image.sh
2026-03-30 10:05:53 +00:00

31 lines
942 B
Bash

#!/usr/bin/env bash
###############################################################################
# Actual script directory path
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
# Load Container IMAGE_NAME and IMAGE_TAG variables
source ${DIR}/set_container_vars.sh
###############################################################################
# Container Pull Installation
echo ""
echo "-----------------------------------------------------------"
echo "-- Installing Container Image --"
echo "-----------------------------------------------------------"
echo "Pulling '${REGISTRY_REPO}:${IMAGE_TAG}'..."
docker pull "${REGISTRY_REPO}:${IMAGE_TAG}"
if [[ $? -ne 0 ]]; then
echo "Error: Image pull fail."
exit 1
fi
echo "Image '${REGISTRY_REPO}:${IMAGE_TAG}' installation success"
echo ""
exit 0
###############################################################################