-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.reflex.stack
More file actions
39 lines (37 loc) · 2.29 KB
/
.reflex.stack
File metadata and controls
39 lines (37 loc) · 2.29 KB
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
-r "\.(go|sql)$" -s -R "devel/.*" -- sh -c \
'test -f ./devel/.demo.env || { echo "Missing ./devel/.demo.env. Run ./devel/sds demo setup first."; exit 1; } && \
. ./devel/.demo.env && \
: "${SDS_DEMO_COLLECTOR_ADDRESS:?Missing SDS_DEMO_COLLECTOR_ADDRESS in ./devel/.demo.env}" && \
: "${SDS_DEMO_SIGNER_PRIVATE_KEY:?Missing SDS_DEMO_SIGNER_PRIVATE_KEY in ./devel/.demo.env}" && \
CONSUMER_LISTEN_ADDR="${SDS_DEMO_CONSUMER_LISTEN_ADDR:-:9002}" && \
echo "Starting Consumer Sidecar ..." && \
DLOG=".*=debug" ./devel/sds consumer sidecar \
--grpc-listen-addr="$CONSUMER_LISTEN_ADDR" \
--plaintext \
--signer-private-key="$SDS_DEMO_SIGNER_PRIVATE_KEY" \
--collector-address="$SDS_DEMO_COLLECTOR_ADDRESS"'
-r "\.(go|sql)$" -s -R "devel/.*" -- sh -c \
'test -f ./devel/.demo.env || { echo "Missing ./devel/.demo.env. Run ./devel/sds demo setup first."; exit 1; } && \
. ./devel/.demo.env && \
: "${SDS_DEMO_SERVICE_PROVIDER_ADDRESS:?Missing SDS_DEMO_SERVICE_PROVIDER_ADDRESS in ./devel/.demo.env}" && \
: "${SDS_DEMO_COLLECTOR_ADDRESS:?Missing SDS_DEMO_COLLECTOR_ADDRESS in ./devel/.demo.env}" && \
: "${SDS_DEMO_ESCROW_ADDRESS:?Missing SDS_DEMO_ESCROW_ADDRESS in ./devel/.demo.env}" && \
: "${SDS_DEMO_RPC_ENDPOINT:?Missing SDS_DEMO_RPC_ENDPOINT in ./devel/.demo.env}" && \
PROVIDER_LISTEN_ADDR="${SDS_DEMO_PROVIDER_LISTEN_ADDR:-:9001}" && \
echo "Starting Provider Gateway ..." && \
touch ./devel/.provider-gateway && \
DLOG=".*=debug" ./devel/sds provider gateway \
--grpc-listen-addr="$PROVIDER_LISTEN_ADDR" \
--plaintext \
--service-provider="$SDS_DEMO_SERVICE_PROVIDER_ADDRESS" \
--collector-address="$SDS_DEMO_COLLECTOR_ADDRESS" \
--escrow-address="$SDS_DEMO_ESCROW_ADDRESS" \
--rpc-endpoint="$SDS_DEMO_RPC_ENDPOINT"'
-r "(\.provider-gateway|firecore\.config\.yaml)$" -s -R "devel/.*" -- sh -c \
'echo "Restarting firehose-core instance (5s delay for provider gateway startup)..." && \
sleep 5 && \
rm -rf ./devel/.firehose && \
echo "Starting Firehose Core" && \
echo " Substreams: sds sink -e https://localhost:10016 --insecure" && \
echo "" && \
PATH="$(go env GOPATH)/bin:$PATH" DLOG="${DLOG:-error}" firecore -c devel/firecore.config.yaml -d ./devel/.firehose start'