You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
432 B
15 lines
432 B
#!/usr/bin/env sh
|
|
|
|
if ! [ -x "$(command -v docker-compose)" ]; then
|
|
echo 'Error: docker-compose is not installed.' >&2
|
|
exit 1
|
|
fi
|
|
|
|
DOCKER_COMPOSE_VERSION=$(docker-compose version --short)
|
|
DOCKER_COMPOSE_MIN_VERSION="1.25.0"
|
|
|
|
# shellcheck disable=SC2039
|
|
if [ "$DOCKER_COMPOSE_VERSION" \< "$DOCKER_COMPOSE_MIN_VERSION" ]; then
|
|
echo "Update docker-compose. Required version $DOCKER_COMPOSE_MIN_VERSION and higher" >&2
|
|
exit 2
|
|
fi
|