-
Notifications
You must be signed in to change notification settings - Fork 1
/
pre-deployment.sh
executable file
·26 lines (24 loc) · 1.13 KB
/
pre-deployment.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
#!/bin/sh
GIT_TOPLEVEL=$(git rev-parse --show-toplevel)
# Create new directory that will hold node and services' configuration
mkdir -p .testnets && chmod o+w .testnets
# Create separate subpaths for each component and copy relevant configuration
rm -rf .testnets
mkdir -p .testnets/bitcoin
mkdir -p .testnets/bitcoin-signer
mkdir -p .testnets/rabbitmq_data
mkdir -p .testnets/staking-indexer/data .testnets/staking-indexer/logs
mkdir -p .testnets/mongo
mkdir -p .testnets/staking-api-service
mkdir -p .testnets/staking-expiry-checker
mkdir -p .testnets/unbonding-pipeline
mkdir -p .testnets/covenant-signer
cp artifacts/sid.conf .testnets/staking-indexer/sid.conf
cp artifacts/global-params.json .testnets/
cp artifacts/finality-providers.json .testnets/
cp artifacts/staking-api-service-config.yml .testnets/staking-api-service
cp artifacts/init-mongo.sh .testnets/mongo
cp artifacts/staking-expiry-checker-config.yml .testnets/staking-expiry-checker
cp artifacts/unbonding-pipeline-config.toml .testnets/unbonding-pipeline
cp artifacts/covenant-signer-config.toml .testnets/covenant-signer
cp artifacts/covenant-signer.dat .testnets/bitcoin-signer