@@ -19,18 +19,20 @@ if --null "${data}"
19
19
exit
20
20
fi
21
21
22
+ set --conditional -s service_host -v "SERVICE_HOST"
23
+
22
24
## -----------------------------------------------------------------
23
25
## Set the default set of eservices that this file knows
24
26
## about. There may be more that have been added to the
25
27
## eservice database. This list is primarily that ones that
26
28
## will be used by the local client to create & interact with
27
29
## contracts.
28
30
## -----------------------------------------------------------------
29
- set -s eservice1 -v http://SERVICE_HOST :7101
30
- set -s eservice2 -v http://SERVICE_HOST :7102
31
- set -s eservice3 -v http://SERVICE_HOST :7103
32
- set -s eservice4 -v http://SERVICE_HOST :7104
33
- set -s eservice5 -v http://SERVICE_HOST :7105
31
+ set -s eservice1 -v http://${service_host} :7101
32
+ set -s eservice2 -v http://${service_host} :7102
33
+ set -s eservice3 -v http://${service_host} :7103
34
+ set -s eservice4 -v http://${service_host} :7104
35
+ set -s eservice5 -v http://${service_host} :7105
34
36
35
37
## load the local database if it exists
36
38
set --conditional -s dbfile --state Service EnclaveServiceDatabaseFile
58
60
## provisioning services that will be used for provisioning keys
59
61
## into the contract enclaves.
60
62
## -----------------------------------------------------------------
61
-
62
- set -s pservice1 -v http://SERVICE_HOST:7001
63
- set -s pservice2 -v http://SERVICE_HOST:7002
64
- set -s pservice3 -v http://SERVICE_HOST:7003
65
- set -s pservice4 -v http://SERVICE_HOST:7004
66
- set -s pservice5 -v http://SERVICE_HOST:7005
63
+ set -s pservice1 -v http://${service_host}:7001
64
+ set -s pservice2 -v http://${service_host}:7002
65
+ set -s pservice3 -v http://${service_host}:7003
66
+ set -s pservice4 -v http://${service_host}:7004
67
+ set -s pservice5 -v http://${service_host}:7005
67
68
68
69
## default pservice group
69
70
pservice add --url ${pservice1}
@@ -145,12 +146,11 @@ eservice --group all use --url ${eservice1}
145
146
## current state of the object can be retrieved from the
146
147
## persistent storage service
147
148
## -----------------------------------------------------------------
148
-
149
- set -s sservice1 -v http://SERVICE_HOST:7201
150
- set -s sservice2 -v http://SERVICE_HOST:7202
151
- set -s sservice3 -v http://SERVICE_HOST:7203
152
- set -s sservice4 -v http://SERVICE_HOST:7204
153
- set -s sservice5 -v http://SERVICE_HOST:7205
149
+ set -s sservice1 -v http://${service_host}:7201
150
+ set -s sservice2 -v http://${service_host}:7202
151
+ set -s sservice3 -v http://${service_host}:7203
152
+ set -s sservice4 -v http://${service_host}:7204
153
+ set -s sservice5 -v http://${service_host}:7205
154
154
155
155
set -s persistent_storage_service -v ${sservice1}
156
156
0 commit comments