szaszm commented on code in PR #1574:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1574#discussion_r1204305885
##########
docker/test/integration/cluster/containers/TcpClientContainer.py:
##########
@@ -29,9 +29,11 @@ def deploy(self):
logging.info('Creating and running a tcp client docker container...')
self.client.containers.run(
- self.image_store.get_image(self.get_engine()),
+ "alpine:3.17.3",
detach=True,
name=self.name,
network=self.network.name,
- entrypoint=self.command)
+ entrypoint='/bin/sh',
+ command="-c 'apk add netcat-openbsd && echo TCP client container
started; while true; do echo "
+ f"test_tcp_message | nc
minifi-cpp-flow-{self.context.feature_id} 10254; sleep 1; done'")
Review Comment:
It's in an endless `while` loop, sending a message to
`minifi-cpp-flow-{feature_id}` port `10254`. The sleep is to avoid a busy loop,
sending as many messages as the CPU can churn out.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]