e489ca0477
* feat: add dockerfile and env variables * Added workflow for pushing node status api on harbor * Misc changes to pathing and using yq instead of jq * fix: change the way we read env vars for nyxd, nym api and explorer * fix: docker build workflow * Remove config in favor of clap args * Added naming and tags * change from value to result --------- Co-authored-by: Lawrence Stalder <lawrence@nymtech.net> Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
19 lines
622 B
Bash
Executable File
19 lines
622 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export RUST_LOG=${RUST_LOG:-debug}
|
|
|
|
export NYM_API_CLIENT_TIMEOUT=60
|
|
export EXPLORER_CLIENT_TIMEOUT=60
|
|
#export NYXD=https://rpc.nymtech.net
|
|
#export NYM_API=https://validator.nymtech.net/api/
|
|
#export EXPLORER_API=https://explorer.nymtech.net/api/
|
|
#export NETWORK_NAME=mainnet
|
|
|
|
#cargo run --package nym-node-status-api --release -- --connection-url "sqlite://node-status-api.sqlite?mode=rwc"
|
|
|
|
cd ..
|
|
docker build -t node-status-api -f nym-node-status-api/Dockerfile .
|
|
docker run --env-file envs/mainnet.env -e NYM_NODE_STATUS_API_CONNECTION_URL="sqlite://node-status-api.sqlite?mode=rwc" node-status-api
|