mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-22 22:22:22 +00:00
28 lines
829 B
Bash
28 lines
829 B
Bash
|
#!/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-compose >/dev/null 2>&1; then
|
||
|
>&2 echo "Error 'docker-compose' binary not found, but required."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
# -------------------------------------------------------------------------------------------------
|
||
|
# ENTRYPOINT
|
||
|
# -------------------------------------------------------------------------------------------------
|
||
|
|
||
|
run "docker-compose logs || true" "1" "${DVLBOX_PATH}"
|