-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sonda: adapt setup for deployment (#3151)
Referenced issue: status-im/infra-hq#135 Signed-off-by: markoburcul <[email protected]>
- Loading branch information
1 parent
b4d3678
commit 02c8f35
Showing
4 changed files
with
56 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
FROM python:3.9.18-alpine3.18 | ||
|
||
RUN pip install requests argparse prometheus_client | ||
ENV METRICS_PORT=8004 | ||
ENV NODE_REST_ADDRESS="http://nwaku:8645" | ||
ENV QUERY_DELAY=60 | ||
ENV STORE_NODES="" | ||
ENV CLUSTER_ID=1 | ||
ENV SHARD=1 | ||
ENV HEALTH_THRESHOLD=5 | ||
|
||
WORKDIR /opt | ||
|
||
COPY sonda.py /opt/sonda.py | ||
|
||
RUN pip install requests argparse prometheus_client | ||
|
||
CMD python -u /opt/sonda.py \ | ||
--metrics-port=$METRICS_PORT \ | ||
--node-rest-address="${NODE_REST_ADDRESS}" \ | ||
--delay-seconds=$QUERY_DELAY \ | ||
--pubsub-topic="/waku/2/rs/${CLUSTER_ID}/${SHARD}" \ | ||
--store-nodes="${STORE_NODES}" \ | ||
--health-threshold=$HEALTH_THRESHOLD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters