Conversation
|
Impressive work @vorezal - as always! I'm quite overwhelmed with other things currently and can't find time to properly review and feedback this, so it'll be a couple of weeks most likely before this would hit the main branch and a proper release. I'll try to squeeze in a read-through and hopefully run some tests so I can give some feedback! Just a thought about the limitation
Isn't it enough to bind the "root" of the docker project - just exactly to what it is outside of the container? /opt/projects/containers/
├── apache
│ ├── data
│ └── docker-compose.yml
├── homer
│ ├── data
│ └── compose.yml
└── whoogle
└── docker-compose.ymlWouldn't this suffice as a bind mount? And about namespace - I'm fine with either! If you'd like proper credits and host it under your name, or if you think it's more sensible to use mag37/dockcheck. Though might need to name it |
|
I've also seen multiple requests for this so some users will be very happy. 👍 I have DSM and some rootless setups so it's not for me personally. |
|
Yes, sorry my statement about adding compose files was a little unclear. If you only have one root, you only need to add that folder as a volume. I was trying to cover the case where someone could have compose files under multiple different folders for some reason. What I was trying to say is that all compose files for containers you want to manage must be available to the Docker container at the same path as on the host file system, however many volumes you have to add to do it. You could include every single docker file individually, one primary root (if you only have one), or each root if you have more than one. I don't think the Docker namespaces will conflict with Github project names, so we should be able to use mag37/dockcheck for the image without a problem. As for mag37 vs vorezal, I think it makes the most sense to keep it the same as the Github project for discovery and consistency. People will know it is official that way. The issue there is you would have to build and publish a new Docker image with each release or bake the build/publish into the Github project itself using Github actions and GHCR. Adding the build would be nice, but it only takes a few seconds to build and publish the image manually. |
|
Ah then I get what you mean! So let's say I've got this layout (for some reason): /opt/projects/containers/prod
├── container_one
│ ├── data
│ └── docker-compose.yml
└── container_two
└── docker-compose.yml
/home/user_bob/containers/test
├── container_t1
│ ├── data
│ └── docker-compose.yml
└── container_t2
└── docker-compose.ymlI'd need to bind both of them with: volumes:
- /home/user_bob/containers/test:/home/user_bob/containers/test:ro
- /opt/projects/containers/prod:/opt/projects/containers/prod:roOr as you state, bind more granular with individual containers etc.
I'd be fine running it under (I'm considering if a migration to Codeberg is sensible in the future - though that's a later discussion/project when time allows) |
|
Yes that volume structure looks correct! And sounds good on the docker image publishing. I think keeping mag37/dockcheck is quite sensible and the level of effort is pretty minimal. |
I've seen a few requests to run Dockcheck within Docker. This could use a lot more testing than I was able to do with only my use cases, but here is what it should provide:
Limitations I can think of at present:
As always, open to thoughts and improvements!