-
Notifications
You must be signed in to change notification settings - Fork 104
/
export_env.sh
executable file
·81 lines (79 loc) · 2.59 KB
/
export_env.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
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
# Source this with the CONTEXT and NETWORK env set, containing the full path and
# supported network name.
# e.g.
# CONTEXT=$PWD NETWORK=mainnet . ./scripts/export_env.sh
export BIN_DIR=${CONTEXT}/bin
export CONFIG_DIR=${CONTEXT}/config/network/${NETWORK}
export SECRETS_DIR=${CONTEXT}/placeholder-secrets
export STATE_DIR=${CONTEXT}/state/network/${NETWORK}
case "$NETWORK" in
mainnet)
API_PORT=3100
HASURA_PORT=8090
METADATA_SERVER_URI="http://localhost:8080"
OGMIOS_PORT=1337
PG_ADMIN_PORT=8442
POSTGRES_PORT=5432
TOKEN_REGISTRY_PORT=8080
CHAIN_FOLLOWER_START_SLOT=23068800
CHAIN_FOLLOWER_START_ID="a650a3f398ba4a9427ec8c293e9f7156d81fd2f7ca849014d8d2c1156c359b3a"
;;
testnet)
API_PORT=3101
HASURA_PORT=8091
METADATA_SERVER_URI="http://localhost:8081"
OGMIOS_PORT=1338
PG_ADMIN_PORT=8443
POSTGRES_PORT=5443
TOKEN_REGISTRY_PORT=8081
;;
preprod)
API_PORT=3102
HASURA_PORT=8092
METADATA_SERVER_URI="http://localhost:8082"
OGMIOS_PORT=1339
PG_ADMIN_PORT=8444
POSTGRES_PORT=5444
TOKEN_REGISTRY_PORT=8082
;;
preview)
API_PORT=3103
HASURA_PORT=8093
METADATA_SERVER_URI="http://localhost:8083"
OGMIOS_PORT=1340
PG_ADMIN_PORT=8445
POSTGRES_PORT=5445
TOKEN_REGISTRY_PORT=8083
;;
vasil-dev)
API_PORT=3104
HASURA_PORT=8094
METADATA_SERVER_URI="http://localhost:8084"
OGMIOS_PORT=1341
PG_ADMIN_PORT=8446
POSTGRES_PORT=5446
TOKEN_REGISTRY_PORT=8084
;;
esac
export ALLOW_INTROSPECTION=true
export API_PORT
export CARDANO_NODE_CONFIG_PATH=${CONFIG_DIR}/cardano-node/config.json
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
export HASURA_CLI_PATH=${BIN_DIR}/hasura
export HASURA_CLI_EXT_PATH=${HASURA_CLI_PATH}
export HASURA_PORT
export HASURA_URI=http://localhost:${HASURA_PORT}
export METADATA_SERVER_URI
export NETWORK
export OGMIOS_PORT
export OGMIOS_HOST=localhost
export POSTGRES_DB_FILE=${SECRETS_DIR}/postgres_db
export POSTGRES_PASSWORD_FILE=${SECRETS_DIR}/postgres_password
export PG_ADMIN_PORT
export POSTGRES_PORT
export POSTGRES_USER_FILE=${SECRETS_DIR}/postgres_user
export POSTGRES_HOST=localhost
export TOKEN_REGISTRY_TAG=latest
export CHAIN_FOLLOWER_START_SLOT
export CHAIN_FOLLOWER_START_ID