Use chat app as testnet bot (#568)
This commit is contained in:
parent
f33c2613fb
commit
4722b54493
|
@ -139,6 +139,13 @@ services:
|
|||
entrypoint: /usr/bin/mixnode
|
||||
command: /etc/nomos/mixnode_config.yaml
|
||||
|
||||
chatbot:
|
||||
container_name: chatbot
|
||||
build:
|
||||
context: .
|
||||
dockerfile: testnet/Dockerfile
|
||||
entrypoint: /etc/nomos/scripts/run_nomos_bot.sh
|
||||
|
||||
etcd:
|
||||
container_name: etcd
|
||||
image: quay.io/coreos/etcd:v3.4.15
|
||||
|
|
|
@ -27,6 +27,7 @@ LABEL maintainer="augustinas@status.im" \
|
|||
EXPOSE 3000 8080 9000 60000
|
||||
|
||||
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
|
||||
COPY --from=builder /nomos/target/release/nomos-cli /usr/bin/nomos-cli
|
||||
COPY --from=builder /nomos/target/release/mixnode /usr/bin/mixnode
|
||||
COPY --from=builder /usr/bin/etcdctl /usr/bin/etcdctl
|
||||
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "I am a container ${HOSTNAME} bot"
|
||||
|
||||
while true
|
||||
do
|
||||
/usr/bin/nomos-cli chat --author nomos-ghost --message "$(date +%H:%M:%S) ~ ping" --network-config /etc/nomos/cli_config.yml --node-addr http://bootstrap:18080
|
||||
sleep 10
|
||||
done
|
Loading…
Reference in New Issue