-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart
executable file
·37 lines (33 loc) · 1.41 KB
/
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
32
33
34
35
36
37
./stop || true
./build docker || exit 1
echo "### Starting opencat-business-service docker ###"
opencat_business_service_port=${OPENCAT_BUSINESS_SERVICE_PORT:-8080}
docker run --rm --name opencat-business-service -d -p ${opencat_business_service_port}:8080 \
-e INSTANCE_NAME=${USER}_dev \
-e RAWREPO_RECORD_SERVICE_URL=${RAWREPO_RECORD_SERVICE_URL} \
-e VIPCORE_CACHE_AGE="1" \
-e VIPCORE_ENDPOINT="http://vipcore.iscrum-vip-extern-test.svc.cloud.dbc.dk" \
-e OPENNUMBERROLL_URL="https://opennumberroll.addi.dk/1.1/" \
-e OPENNUMBERROLL_NAME_FAUST_8="faust" \
-e OPENNUMBERROLL_NAME_FAUST="faust" \
-e DOUBLE_RECORD_MAIL_HOST="${DOUBLE_RECORD_MAIL_HOST}" \
-e DOUBLE_RECORD_MAIL_PORT="${DOUBLE_RECORD_MAIL_PORT}" \
-e DOUBLE_RECORD_MAIL_FROM="${DOUBLE_RECORD_MAIL_FROM}" \
-e DOUBLE_RECORD_MAIL_RECIPIENT="${DOUBLE_RECORD_MAIL_RECIPIENT}" \
-e JAVA_MAX_HEAP_SIZE=2G \
-e SOLR_URL="8" \
docker-metascrum.artifacts.dbccloud.dk/opencat-business-service:devel
attempts=0
max_attempts=60
until $(curl --output /dev/null --silent --head --fail http://localhost:${opencat_business_service_port}/api/status); do
if [ ${attempts} -eq ${max_attempts} ]; then
break
fi
printf '.'
attempts=$(($attempts+1))
sleep 0.5
done
echo ""
echo "### Status for opencat-business-service service ###"
curl -vs http://localhost:${opencat_business_service_port}/api/status
echo ""