Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please include NATS Tools in docker container #143

Open
ryn9 opened this issue Feb 24, 2024 · 5 comments
Open

Please include NATS Tools in docker container #143

ryn9 opened this issue Feb 24, 2024 · 5 comments
Assignees

Comments

@ryn9
Copy link

ryn9 commented Feb 24, 2024

It would be helpful to have the nats and nats-top commands available in the container.

That way, we could execute the following to interface with the running instance:
docker exec -it CONTAINER_NAME nats
docker exec -it CONTAINER_NAME nats-top

references:
https://docs.nats.io/using-nats/nats-tools/nats_cli
https://docs.nats.io/using-nats/nats-tools/nats_top

@jnehlmeier
Copy link

There is https://hub.docker.com/r/natsio/nats-box which contains the tools.

@ryn9
Copy link
Author

ryn9 commented Mar 5, 2024

hmm - didnt see that.
Maybe reference that in the readme of this effort?

@jnehlmeier
Copy link

Indeed it is a bit hard to discover. I stumbled upon it while reading https://docs.nats.io/running-a-nats-service/nats_docker#testing-the-clusters

I think there should be an additional docker section/page in https://docs.nats.io/using-nats/nats-tools to mention it.

@kostyaten
Copy link

kostyaten commented Feb 26, 2025

This does not solve the problem when you need to check if the service is running. Or can you tell me how to check?
My example is docker-compose.yaml

    healthcheck:
      test: "how?????"
      interval: 10s
      timeout: 5s
      retries: 5

@jnehlmeier
Copy link

You can turn on monitoring (https://docs.nats.io/running-a-nats-service/configuration/monitoring) and then use curl to call the healthz endpoint.

All endpoints: https://docs.nats.io/running-a-nats-service/nats_admin/monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants