-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathMakefileEks.mk
94 lines (74 loc) · 3.7 KB
/
MakefileEks.mk
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
PWD := $(shell pwd)
LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT)
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION)
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"
# gas-oracle
# mainnet
build-bk-prod-morph-prod-mainnet-to-morph-gas-price-oracle:
if [ ! -d dist ]; then mkdir -p dist; fi
cd $(PWD)/gas-oracle/app && cargo build --release
cp gas-oracle/app/target/release/app dist/
aws s3 cp s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-mainnet-to-morph-gas-price-oracle:
/data/secret-manager-wrapper ./app
# qanet
build-bk-test-morph-test-qanet-to-morph-gas-price-oracle-qanet:
if [ ! -d dist ]; then mkdir -p dist; fi
cd $(PWD)/gas-oracle/app && cargo build --release
cp gas-oracle/app/target/release/app dist/
aws s3 cp s3://morph-7637-morph-technical-department-qanet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-test-morph-test-qanet-to-morph-gas-price-oracle-qanet:
/data/secret-manager-wrapper ./app
# prover
# mainnet
build-bk-prod-morph-prod-mainnet-to-morph-prover:
if [ ! -d dist ]; then mkdir -p dist; fi
cd $(PWD)/prover/bin/server && RUSTFLAGS="-C target-feature=+avx2,+avx512f" cargo build --release
cp prover/target/release/prover-server dist/
cp -r prover/configs dist/
aws s3 cp s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-mainnet-to-morph-prover:
/data/secret-manager-wrapper ./prover-server
# challenge-handler
# mainnet
build-bk-prod-morph-prod-mainnet-to-morph-challenge-handler:
if [ ! -d dist ]; then mkdir -p dist; fi
cd $(PWD)/prover/bin/challenge && cargo build --release
cp prover/bin/challenge/target/release/challenge-handler dist/
aws s3 cp s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-mainnet-to-morph-challenge-handler:
/data/secret-manager-wrapper ./challenge-handler
# shadow-proving
# mainnet
build-bk-prod-morph-prod-mainnet-to-morph-shadow-proving:
if [ ! -d dist ]; then mkdir -p dist; fi
cd $(PWD)/prover/bin/shadow-prove && cargo build --release
cp prover/bin/shadow-prove/target/release/shadow-proving dist/
aws s3 cp s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-mainnet-to-morph-shadow-proving:
/data/secret-manager-wrapper ./shadow-proving
# staking-oracle
# mainnet
build-bk-prod-morph-prod-mainnet-to-morph-staking-oracle:
if [ ! -d dist ]; then mkdir -p dist; fi
env GO111MODULE=on CGO_LDFLAGS="-ldl" CGO_ENABLED=1 go build -v $(LDFLAGS) -o oracle/staking-oracle ./oracle/cmd/staking-oracle
cp oracle/staking-oracle dist/
aws s3 cp s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-mainnet-to-morph-staking-oracle:
/data/secret-manager-wrapper ./staking-oracle
# qanet
build-bk-test-morph-test-qanet-to-morph-staking-oracle-qanet:
if [ ! -d dist ]; then mkdir -p dist; fi
env GO111MODULE=on CGO_LDFLAGS="-ldl" CGO_ENABLED=1 go build -v $(LDFLAGS) -o oracle/staking-oracle ./oracle/cmd/staking-oracle
cp oracle/staking-oracle dist/
aws s3 cp s3://morph-7637-morph-technical-department-qanet-data/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-test-morph-test-qanet-to-morph-staking-oracle-qanet:
/data/secret-manager-wrapper ./staking-oracle