-
Notifications
You must be signed in to change notification settings - Fork 0
/
start
executable file
·31 lines (26 loc) · 1002 Bytes
/
start
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
#!/bin/bash
./stop || true
./build docker || exit 1
echo "### Starting rawrepo-introspect-backend docker ###"
rawrepo_introspect_port=${RAWREPO_INTROSPECT_PORT:-8080}
docker run --rm --name rawrepo-introspect-backend -d -p ${rawrepo_introspect_port}:8080 \
-e RAWREPO_RECORD_SERVICE_URL=${RAWREPO_RECORD_SERVICE_URL} \
-e MOREINFO_DANBIB_URL=${MOREINFO_DANBIB_URL} \
-e MOREINFO_UPDATE_URL=${MOREINFO_UPDATE_URL} \
-e MOREINFO_BASIS_URL=${MOREINFO_BASIS_URL} \
-e JAVA_MAX_HEAP_SIZE=2G \
docker-metascrum.artifacts.dbccloud.dk/rawrepo-introspect-backend:devel
attempts=0
max_attempts=60
until $(curl --output /dev/null --silent --head --fail http://localhost:${rawrepo_introspect_port}/health/ready); do
if [ ${attempts} -eq ${max_attempts} ]; then
break
fi
printf '.'
attempts=$(($attempts+1))
sleep 0.5
done
echo ""
echo "### Status for rawrepo-introspect service ###"
curl -vs http://localhost:${rawrepo_introspect_port}/health/ready
echo ""