File tree 4 files changed +5
-16
lines changed
4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- while [ ! -f /shared/init_done ]; do
4
- echo " waiting for db init"
5
- sleep 5
6
- done
7
-
8
3
exec ./linera-proxy \
9
4
--storage scylladb:tcp:scylla:9042 \
10
5
--genesis /config/genesis.json \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- while [ ! -f /shared/init_done ]; do
4
- echo " waiting for db init"
5
- sleep 5
6
- done
7
-
8
3
exec ./linera-server run \
9
4
--storage scylladb:tcp:scylla:9042 \
10
5
--server /config/server.json \
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ while true; do
13
13
--storage scylladb:tcp:scylla:9042 \
14
14
--genesis /config/genesis.json; then
15
15
echo " Initialization successful."
16
- touch /shared/init_done
17
16
exit 0
18
17
else
19
18
echo " Initialization failed, retrying in 5 seconds..."
Original file line number Diff line number Diff line change @@ -20,24 +20,25 @@ services:
20
20
command : [ "./compose-proxy-entrypoint.sh" ]
21
21
volumes :
22
22
- .:/config
23
- - linera-shared:/shared
23
+ depends_on :
24
+ shard-init :
25
+ condition : service_completed_successfully
24
26
shard :
25
27
image : linera
26
28
deploy :
27
29
replicas : 4
28
30
command : [ "./compose-server-entrypoint.sh" ]
29
31
volumes :
30
32
- .:/config
31
- - linera-shared:/shared
32
33
depends_on :
33
- - shard-init
34
+ shard-init :
35
+ condition : service_completed_successfully
34
36
shard-init :
35
37
image : linera
36
38
container_name : shard-init
37
39
command : [ "./compose-server-init.sh" ]
38
40
volumes :
39
41
- .:/config
40
- - linera-shared:/shared
41
42
depends_on :
42
43
- scylla
43
44
@@ -64,5 +65,4 @@ services:
64
65
volumes :
65
66
linera-scylla-data :
66
67
driver : local
67
- linera-shared : # used for cross-container comms.
68
68
grafana-storage :
You can’t perform that action at this time.
0 commit comments