I work with nsq_to_file utility while running some automation code, I wanted to automate that utility as a docker-compose service. I can't find any documentation about using this utility with docker. I use it as follows:
./nsq_to_file --lookupd-http-address=<http_address> --topic=ta-gcp-test -output-dir=/path/to/local/dir -filename-format=local_file_name
Does anyone have any input on that?
You can build a Docker container with the nsq_to_file executable, it would look like this:
You can then build it and run it:
docker build -t oliver006/nsq_to_file -f Dockerfile .docker run --rm oliver006/nsq_to_file --lookupd-http-address=<http_address> --topic=ta-gcp-test ...