fb0b55d540
* ns-api: remove sqlite support ns-api: add env var to skip migrations for local dev ns-api: tidy up imports ns-api: fix deserialisation fo node descriptions update dockerfile update README fix up README and example env ns-api: bump major version to 4 ns-api: add more geoip data and new performance field in dvpn responses * ns-api: polyfill dVPN probe outcomes to make compatible with existing clients * Use explicit transaction for testrun status change (#6046) * Use explicit transaction for testrun status change * Improve run scripts * Skip locked rows * bump version 4.0.2 * Fix build.rs * Fix up .sqlx queries * Bump agent version and change dockerfile to run the agent in a loop * Make time between agents configurable by env var SLEEP_TIME * Update entrypoint.sh * Update Dockerfile with full path * Force bigint to avoid postgres numeric cast * Add override args to agent entry point, bump agent version and NS API version --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com> Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
38 lines
1.0 KiB
Docker
38 lines
1.0 KiB
Docker
# this will only work with VPN, otherwise remove the harbor part
|
|
FROM harbor.nymte.ch/dockerhub/rust:latest AS builder
|
|
|
|
COPY ./ /usr/src/nym
|
|
WORKDIR /usr/src/nym/nym-node-status-api/nym-node-status-api/
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
#-------------------------------------------------------------------
|
|
# The following environment variables are required at runtime:
|
|
#
|
|
# EXPLORER_API
|
|
# NYXD
|
|
# NYM_API
|
|
# DATABASE_URL
|
|
#
|
|
# And optionally:
|
|
#
|
|
# NYM_NODE_STATUS_API_NYM_HTTP_CACHE_TTL
|
|
# NYM_NODE_STATUS_API_HTTP_PORT
|
|
# NYM_API_CLIENT_TIMEOUT
|
|
# EXPLORER_CLIENT_TIMEOUT
|
|
# NODE_STATUS_API_MONITOR_REFRESH_INTERVAL
|
|
# NODE_STATUS_API_TESTRUN_REFRESH_INTERVAL
|
|
#
|
|
# see https://github.com/nymtech/nym/blob/develop/nym-node-status-api/src/cli.rs for details
|
|
#-------------------------------------------------------------------
|
|
|
|
FROM harbor.nymte.ch/dockerhub/ubuntu:24.04
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
|
|
|
WORKDIR /nym
|
|
|
|
COPY --from=builder /usr/src/nym/target/release/nym-node-status-api ./
|
|
ENTRYPOINT [ "/nym/nym-node-status-api" ]
|