-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh
executable file
·40 lines (29 loc) · 1.89 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 "
███ ██ ██ ██ ███████ ███████ ██ ██ ███ ██ █████ ██████ ██ ██ ███████ ██████
████ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ███████ ███████ █████ ██ ██ ██ ███████ ██ █████ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ████ ██████ ███████ ███████ ██ ██ ██ ████ ██ ██ ██████ ██ ██ ███████ ██ ██
INSTALLATION EXAMPLE
"
echo "Running Nussknacker Installation Example ..."
echo ""
if ! docker version &>/dev/null; then
echo "No Docker found. Docker is required to run this example. See https://docs.docker.com/engine/install/"
exit 1
fi
if ! docker compose version &>/dev/null; then
echo "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 "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 --wait
echo ""
echo "Nussknacker and its dependencies are up and running."
echo "Open http://localhost:8080 and log in as admin:admin ..."