summaryrefslogtreecommitdiff
path: root/examples/docker-minimal/docker/merge.sh
blob: cf10ac1921c41e37e4defb66c7f586a1122e85e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

[ -d mergedb ] && rm -rf mergedb
mkdir mergedb
mkdir mergedb/chains
touch mergedb/logorder

echo "merge: waiting five minutes before merging for the first time"
sleep 300

while true; do
    echo "merge: merging"
    date
    catlfish/tools/merge.py \
        --baseurl https://127.0.0.1:8080/ \
        --storage https://127.0.0.1:8081/ \
        --frontend https://127.0.0.1:8082/ \
        --mergedb mergedb \
        --keyfile examples/docker-minimal/docker/test/eckey.pem
    echo "merge: waiting 20 minutes before merging again"
    sleep 1200
done