devilbox/.tests/scripts/compose-pull.sh
2019-11-18 00:17:10 +01:00

28 lines
806 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -u
set -o pipefail
SCRIPT_PATH="$( cd "$(dirname "$0")" && pwd -P )"
DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
# shellcheck disable=SC1090
. "${SCRIPT_PATH}/.lib.sh"
# -------------------------------------------------------------------------------------------------
# Pre-check
# -------------------------------------------------------------------------------------------------
if ! command -v docker >/dev/null 2>&1; then
>&2 echo "Error 'docker' binary not found, but required."
exit 1
fi
# -------------------------------------------------------------------------------------------------
# ENTRYPOINT
# -------------------------------------------------------------------------------------------------
run "docker-compose pull" "60" "${DVLBOX_PATH}"