As run_tester_node.sh is not assembled into liteprotocoltester image, we dont need it here, docker compose file adapted to the change
This commit is contained in:
parent
30190e12eb
commit
2682cedf49
|
@ -29,25 +29,15 @@ services:
|
||||||
image: ${LPT_IMAGE:-harbor.status.im/wakuorg/liteprotocoltester:latest}
|
image: ${LPT_IMAGE:-harbor.status.im/wakuorg/liteprotocoltester:latest}
|
||||||
deploy:
|
deploy:
|
||||||
replicas: ${NUM_PUBLISHER_NODES:-1}
|
replicas: ${NUM_PUBLISHER_NODES:-1}
|
||||||
# ports:
|
|
||||||
# - 30304:30304/tcp
|
|
||||||
# - 30304:30304/udp
|
|
||||||
# - 9005:9005/udp
|
|
||||||
# - 127.0.0.1:8003:8003
|
|
||||||
# - 80:80 #Let's Encrypt
|
|
||||||
# - 8000:8000/tcp #WSS
|
|
||||||
# - 127.0.0.1:8646:8646
|
|
||||||
<<:
|
<<:
|
||||||
- *logging
|
- *logging
|
||||||
environment:
|
environment:
|
||||||
DOMAIN: ${DOMAIN:-}
|
DOMAIN: ${DOMAIN:-}
|
||||||
<<:
|
<<:
|
||||||
- *test_running_conditions
|
- *test_running_conditions
|
||||||
volumes:
|
|
||||||
- ./run_tester_node.sh:/opt/run_tester_node.sh:Z
|
|
||||||
entrypoint: sh
|
entrypoint: sh
|
||||||
command:
|
command:
|
||||||
- /opt/run_tester_node.sh
|
- /usr/bin/run_tester_node_on_fleet.sh
|
||||||
- /usr/bin/liteprotocoltester
|
- /usr/bin/liteprotocoltester
|
||||||
- SENDER
|
- SENDER
|
||||||
|
|
||||||
|
@ -55,25 +45,15 @@ services:
|
||||||
image: ${LPT_IMAGE:-harbor.status.im/wakuorg/liteprotocoltester:latest}
|
image: ${LPT_IMAGE:-harbor.status.im/wakuorg/liteprotocoltester:latest}
|
||||||
deploy:
|
deploy:
|
||||||
replicas: ${NUM_RECEIVER_NODES:-1}
|
replicas: ${NUM_RECEIVER_NODES:-1}
|
||||||
# ports:
|
|
||||||
# - 30304:30304/tcp
|
|
||||||
# - 30304:30304/udp
|
|
||||||
# - 9005:9005/udp
|
|
||||||
# - 127.0.0.1:8003:8003
|
|
||||||
# - 80:80 #Let's Encrypt
|
|
||||||
# - 8000:8000/tcp #WSS
|
|
||||||
# - 127.0.0.1:8647:8647
|
|
||||||
<<:
|
<<:
|
||||||
- *logging
|
- *logging
|
||||||
environment:
|
environment:
|
||||||
DOMAIN: ${DOMAIN:-}
|
DOMAIN: ${DOMAIN:-}
|
||||||
<<:
|
<<:
|
||||||
- *test_running_conditions
|
- *test_running_conditions
|
||||||
volumes:
|
|
||||||
- ./run_tester_node.sh:/opt/run_tester_node.sh:Z
|
|
||||||
entrypoint: sh
|
entrypoint: sh
|
||||||
command:
|
command:
|
||||||
- /opt/run_tester_node.sh
|
- /usr/bin/run_tester_node_on_fleet.sh
|
||||||
- /usr/bin/liteprotocoltester
|
- /usr/bin/liteprotocoltester
|
||||||
- RECEIVER
|
- RECEIVER
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -87,8 +67,6 @@ services:
|
||||||
command:
|
command:
|
||||||
- --config.file=/etc/prometheus/prometheus.yml
|
- --config.file=/etc/prometheus/prometheus.yml
|
||||||
- --web.listen-address=:9099
|
- --web.listen-address=:9099
|
||||||
# ports:
|
|
||||||
# - 127.0.0.1:9090:9090
|
|
||||||
restart: on-failure:3
|
restart: on-failure:3
|
||||||
depends_on:
|
depends_on:
|
||||||
- publishernode
|
- publishernode
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#set -x
|
|
||||||
#echo "$@"
|
|
||||||
|
|
||||||
if test -f .env; then
|
|
||||||
echo "Using .env file"
|
|
||||||
. $(pwd)/.env
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "I am a lite-protocol-tester node"
|
|
||||||
|
|
||||||
BINARY_PATH=$1
|
|
||||||
|
|
||||||
if [ ! -x "${BINARY_PATH}" ]; then
|
|
||||||
echo "Invalid binary path '${BINARY_PATH}'. Failing"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${2}" = "--help" ]; then
|
|
||||||
echo "You might want to check nwaku/apps/liteprotocoltester/README.md"
|
|
||||||
exec "${BINARY_PATH}" --help
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
FUNCTION=$2
|
|
||||||
if [ "${FUNCTION}" = "SENDER" ]; then
|
|
||||||
FUNCTION=--test-func=SENDER
|
|
||||||
SERIVCE_NODE_ADDR=${LIGHTPUSH_SERVICE_PEER:-${LIGHTPUSH_BOOTSTRAP:-}}
|
|
||||||
NODE_ARG=${LIGHTPUSH_SERVICE_PEER:+--service-node="${LIGHTPUSH_SERVICE_PEER}"}
|
|
||||||
NODE_ARG=${NODE_ARG:---bootstrap-node="${LIGHTPUSH_BOOTSTRAP}"}
|
|
||||||
METRICS_PORT=--metrics-port="${PUBLISHER_METRICS_PORT:-8003}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${FUNCTION}" = "RECEIVER" ]; then
|
|
||||||
FUNCTION=--test-func=RECEIVER
|
|
||||||
SERIVCE_NODE_ADDR=${FILTER_SERVICE_PEER:-${FILTER_BOOTSTRAP:-}}
|
|
||||||
NODE_ARG=${FILTER_SERVICE_PEER:+--service-node="${FILTER_SERVICE_PEER}"}
|
|
||||||
NODE_ARG=${NODE_ARG:---bootstrap-node="${FILTER_BOOTSTRAP}"}
|
|
||||||
METRICS_PORT=--metrics-port="${RECEIVER_METRICS_PORT:-8003}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${SERIVCE_NODE_ADDR}" ]; then
|
|
||||||
echo "Service/Bootsrap node peer_id or enr is not provided. Failing"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
MY_EXT_IP=$(wget -qO- --no-check-certificate https://api4.ipify.org)
|
|
||||||
|
|
||||||
if [ -n "${PUBSUB}" ]; then
|
|
||||||
PUBSUB=--pubsub-topic="${PUBSUB}"
|
|
||||||
else
|
|
||||||
PUBSUB=--pubsub-topic="/waku/2/rs/66/0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${CONTENT_TOPIC}" ]; then
|
|
||||||
CONTENT_TOPIC=--content-topic="${CONTENT_TOPIC}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${CLUSTER_ID}" ]; then
|
|
||||||
CLUSTER_ID=--cluster-id="${CLUSTER_ID}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${START_PUBLISHING_AFTER}" ]; then
|
|
||||||
START_PUBLISHING_AFTER=--start-publishing-after="${START_PUBLISHING_AFTER}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${MIN_MESSAGE_SIZE}" ]; then
|
|
||||||
MIN_MESSAGE_SIZE=--min-test-msg-size="${MIN_MESSAGE_SIZE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${MAX_MESSAGE_SIZE}" ]; then
|
|
||||||
MAX_MESSAGE_SIZE=--max-test-msg-size="${MAX_MESSAGE_SIZE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ -n "${NUM_MESSAGES}" ]; then
|
|
||||||
NUM_MESSAGES=--num-messages="${NUM_MESSAGES}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${DELAY_MESSAGES}" ]; then
|
|
||||||
DELAY_MESSAGES=--delay-messages="${DELAY_MESSAGES}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Running binary: ${BINARY_PATH}"
|
|
||||||
echo "Node function is: ${FUNCTION}"
|
|
||||||
echo "Using service/bootstrap node as: ${NODE_ARG}"
|
|
||||||
echo "My external IP: ${MY_EXT_IP}"
|
|
||||||
|
|
||||||
exec "${BINARY_PATH}"\
|
|
||||||
--log-level=INFO\
|
|
||||||
--nat=extip:${MY_EXT_IP}\
|
|
||||||
${NODE_ARG}\
|
|
||||||
${DELAY_MESSAGES}\
|
|
||||||
${NUM_MESSAGES}\
|
|
||||||
${PUBSUB}\
|
|
||||||
${CONTENT_TOPIC}\
|
|
||||||
${CLUSTER_ID}\
|
|
||||||
${FUNCTION}\
|
|
||||||
${START_PUBLISHING_AFTER}\
|
|
||||||
${MIN_MESSAGE_SIZE}\
|
|
||||||
${MAX_MESSAGE_SIZE}\
|
|
||||||
${METRICS_PORT}
|
|
Loading…
Reference in New Issue