-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathMakefileEks.mk
158 lines (125 loc) · 6.38 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
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
# gas-oracle
# testnet
build-bk-prod-morph-prod-testnet-to-morph-gas-price-oracle-holesky:
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-testnet-data/testnet/holesky/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-testnet-to-morph-gas-price-oracle-holesky:
/data/secret-manager-wrapper ./app
# prover
# testnet
build-bk-prod-morph-prod-testnet-to-morph-prover-holesky:
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-testnet-data/testnet/holesky/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-testnet-to-morph-prover-holesky:
/data/secret-manager-wrapper ./prover-server
# challenge-handler
# testnet
build-bk-prod-morph-prod-testnet-to-morph-challenge-handler-holesky:
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-testnet-data/testnet/holesky/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-testnet-to-morph-challenge-handler-holesky:
/data/secret-manager-wrapper ./challenge-handler
# shadow-proving
# testnet
build-bk-prod-morph-prod-testnet-to-morph-shadow-proving-holesky:
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-testnet-data/testnet/holesky/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-testnet-to-morph-shadow-proving-holesky:
/data/secret-manager-wrapper ./shadow-proving
# staking-oracle
# testnet
build-bk-prod-morph-prod-testnet-to-morph-staking-oracle-holesky:
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-testnet-data/testnet/holesky/morph-setup/secret-manager-wrapper.tar.gz ./
tar -xvzf secret-manager-wrapper.tar.gz
start-bk-prod-morph-prod-testnet-to-morph-staking-oracle-holesky:
/data/secret-manager-wrapper ./staking-oracle