-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Referenced issue: status-im/infra-hq#135 Signed-off-by: markoburcul <[email protected]>
- Loading branch information
1 parent
c5a825e
commit 96731d6
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