-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.sh
executable file
·28 lines (24 loc) · 1.33 KB
/
check.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
#!/usr/bin/env bash
test_name="hello-impl"
source ../../../bin/test-common.sh
dockerfile="${test_name}/target/docker/${test_name}/1.0/build/Dockerfile"
if [ -f $dockerfile ]; then
check $dockerfile 'com.lightbend.rp.app-name="hello-impl"'
check $dockerfile 'com.lightbend.rp.app-type="lagom"'
check $dockerfile 'com.lightbend.rp.modules.common.enabled="true"'
check $dockerfile 'com.lightbend.rp.modules.akka-management.enabled="true"'
check $dockerfile 'com.lightbend.rp.modules.service-discovery.enabled="true"'
check $dockerfile 'com.lightbend.rp.modules.akka-cluster-bootstrap.enabled="true"'
check $dockerfile 'com.lightbend.rp.endpoints.0.protocol="http"'
check $dockerfile 'com.lightbend.rp.endpoints.0.ingress.0.type="http"'
check $dockerfile 'com.lightbend.rp.endpoints.0.ingress.0.paths.0="/api/hello/"'
check $dockerfile 'com.lightbend.rp.endpoints.0.ingress.0.ingress-ports.0="80"'
check $dockerfile 'com.lightbend.rp.endpoints.0.ingress.0.ingress-ports.1="443"'
check $dockerfile 'com.lightbend.rp.endpoints.1.name="akka-remote"'
check $dockerfile 'com.lightbend.rp.endpoints.1.protocol="tcp"'
check $dockerfile 'com.lightbend.rp.endpoints.2.name="akka-mgmt-http"'
check $dockerfile 'com.lightbend.rp.endpoints.2.protocol="tcp"'
else
echo "File $dockerfile not found"
exit 1
fi