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

feat(dashmate): add logs command #1524

Open
pshenmic opened this issue Oct 25, 2023 · 2 comments
Open

feat(dashmate): add logs command #1524

pshenmic opened this issue Oct 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pshenmic
Copy link
Collaborator

Expected Behavior

Dashmate should have a command to read latest logs from the service container to have a way to debug stuff when its not going right

Current Behavior

User have to type docker ps, find the right container id of the service, and execute docker logs $container_id

Possible Solution

Add command that will stream out the logs in the command line. For example dashmate core logs [-f]

@pshenmic pshenmic added the enhancement New feature or request label Oct 25, 2023
@MuhtasimTanmoy
Copy link

I would like to work on this. Any suggested implementation guidelines?

@pshenmic
Copy link
Collaborator Author

pshenmic commented Dec 3, 2023

Hey @MuhtasimTanmoy, that's awesome! Feel free to reach me out in Discord, and we'll handle that.

https://discord.gg/ncN4BH3jpC

Implementation should be pretty straight-forward. We use dockerode and docker-compose to communicate with docker, and as I can see there is already a such method https://github.com/dashpay/docker-compose

You will need to add a new command that will implement that for the given node config. Look at the packages/dashmate/src/commands how we usually do that

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

No branches or pull requests

2 participants