-
Notifications
You must be signed in to change notification settings - Fork 5
/
start.sh
executable file
·40 lines (29 loc) · 2.16 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
echo -e "
███ ██ ██ ██ ███████ ███████ ██ ██ ███ ██ █████ ██████ ██ ██ ███████ ██████
████ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ███████ ███████ █████ ██ ██ ██ ███████ ██ █████ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ████ ██████ ███████ ███████ ██ ██ ██ ████ ██ ██ ██████ ██ ██ ███████ ██ ██
QUICKSTART
"
echo "Running Nussknacker Quickstart..."
echo ""
if ! docker version &>/dev/null; then
echo "ERROR: No Docker found. Docker is required to run this Quickstart. See https://docs.docker.com/engine/install/"
exit 1
fi
if ! docker compose version &>/dev/null; then
echo "ERROR: No docker compose found. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/"
exit 2
fi
if ! docker compose config > /dev/null; then
echo "ERROR: Cannot validate docker compose configuration. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/"
exit 3
fi
docker compose up -d --build --remove-orphans --wait
echo ""
echo "Nussknacker and its dependencies are up and running."
echo "Open http://localhost:8080 and log in as admin:admin..."