first commit
This commit is contained in:
30
docker/scripts/install_container_image.sh
Normal file
30
docker/scripts/install_container_image.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
|
||||
###############################################################################
|
||||
Reference in New Issue
Block a user