msgbyte / tianji

Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives
https://tianji.msgbyte.com/
Apache License 2.0
1.51k stars 90 forks source link

feat: add support for podman #102

Open baka-gourd opened 3 weeks ago

baka-gourd commented 3 weeks ago

Basically podman has the same syntax as docker and podman is being used more and more widely, hopefully support for podman will be added.

moonrailgun commented 2 weeks ago

hi, @baka-gourd . i am not use podman before.

did you mind create PR for it? i think its will very helpful for us

baka-gourd commented 2 weeks ago

hi, @baka-gourd . i am not use podman before.

did you mind create PR for it? i think its will very helpful for us

I looked for the current docker implementation and found it to be quite different from what I had envisioned, and it may take me a while to figure out how to use a go client to access podman

moonrailgun commented 2 weeks ago

idk but why we have to use go client to access podman?

baka-gourd commented 2 weeks ago

idk but why we have to use go client to access podman?

https://github.com/msgbyte/tianji/blob/3d9d03296e9fb26eb363b2dba2f830f2eb9d58f3/reporter/utils/utils.go#L254

If I understand correctly, this should be using client to access docker. so the counterpart to this is accessing podman

moonrailgun commented 1 week ago

oh i see, you wanna get podman inspect info which like docker?

its interesting, i will keep this issue here and maybe add support in later(because never use podman before and need time to learn it.)

and welcome to send PR to help us improve it.