-
Notifications
You must be signed in to change notification settings - Fork 302
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
Container Size on Unraid #162
Comments
no idea about the unraid someone out there made it out of the existing ebook2audiobook docker image If I were to guess though Have you selected multiple fine-tuned models so far? Cause they are saved to the models folder after you use each fine-tuned voice from the dropdown So check the size of the models folder, I'm curious... |
@DrewThomasson I think we should map your volumes to local drives instead of storing it all in your container. Something like this:
|
@janstadt like this?
|
cause the |
Correct, the left hand of the volume is on your host and can be wherever you want. This will allow that content to be outside of the container. I typically use a config directory as a sibling of the docker compose file and then a subdirectory for each of my containers for keeping things clean. I thought about doing the models and voices folders specifically since those are the beefy directories, but i ended up just doing the entire app directory. |
kk I'll add that to the existing docker-compose.yml |
Just added to the |
gona try a test on my end with it hit me up if you have any issue with the new update |
hm changed it to a optional comment you can "uncomment" in the |
Yeah typically when u mount volumes youll need to pass user and group ids in the env vars (or set them in the dockerfile). Im curious if you can also clean up the repo after whatever artifact/binary is built to save space as well. |
Hm Interesting... I didn't know about any of this, still pretty new at docker tbh |
Do you think you might be able to help me re-build the Dockerfile? Cause right now it's been broken and I can't figure this out :/ |
I'll take a quick look |
Thx Heres where my latest broken https://github.com/DrewThomasson/ebook2audiobook/blob/v2.0_Dockerfile/Dockerfile but I would really like to be able to just have it launch the At the moment the current image is built by just pulling this hugginface as a docker image which isn't ideal for development 😅 (edit: I was also looking to just straight up make the |
I'm running into the same issue and was already trying to work this out on my own. Happy to see people are already working on solving this :) |
When trying to fix my docker image / container size issues, so it does not run out of space. In unRaid goto setttings -> docker -> stop docker edit from vDisk to library. **Warring ** Doing this you will have to recreate all you dockers. But I would like not, having to do this. Happy New Years, to you all 🎆🎇 |
Got a fully working That should make it easier to workout more of this stuff... |
So does the new if so I'm closing out this issue 👍 |
It looks like you moved from the ~/app directory to ~/ebook2audiobook which is totally fine. I think i figured out why the volumes werent being mounted properly though. Since you're entrypoint is being fed the CMD ( In the dockerfile you run pip install requirements.txt which includes unidic, but then in the app.py here: https://github.com/DrewThomasson/ebook2audiobook/blob/main/app.py#L61 it checks for unidic and it doesnt find it so it redownloads it which takes a while to get done (its over a gb) so i wonder why thats happening? Shouldnt pip install that via the dockerfile and requirements.txt? Is it because you're passing Finally, permissions are always a pain in docker and the dockerd will run as root on the host server and typically will write mapped volumes as root which causes all sorts of permissioning issues. i thought you could pass Foof, thats a long post..... |
Can someone give me a final update on where this sits/what we can do to mitigate the issue? Because the unraid app (docker template) appears to be from the initial release on December 27th, which didn't work and I'm not really clear on how to get this setup correctly based on the above comments so I'm (hopefully) waiting for an update to that docker template... |
For now I've used the Unraid template (don't think that is absolutely necessary but it's a bit easier), but during the Add Container part I changed the Repository to athomasson2/ebook2audiobook:latest I then added 3 Path mounts: Make sure that you create these directories first before starting the container! I did that using Midnight Commander because I'm lazy and no Linux wizard. After this you should be able to Apply the container settings and start the container. This at least gets some of the more data heavy parts outside of the docker.img edit: This is not the right way to solve this issue though. This is just a dirty workaround. I hope Drew and others are able to solve this in a nice way :). |
Right, thanks, think this did it for me! |
Well...workeed, but unRAID still crashed. No idea what for, though, but definitely related to this (the only thing I've added in months) |
You can spin down your array and edit your docker settings to expand your docker.img file. Seems like its still pulling down things inside the container when it starts that would be great to have that located elsewhere or mounted on the host. |
oh yeah forgot to post here in response to this...
|
I completely removed the image, created the directories, and re-added it with the custom mappings and confirmed files were going into those respective directories. Then I locked down the CPUs to only 3/8. But still, after about 3-4h, my unRAID completely locked up. Unfortunately I don't run an outside syslog server so I don't know why-I could still see port 22 open, but couldn't even connect to that to get in to see so had to just reboot it. |
Container size on Unraid is nearly 30GB. Any advice for offloading some of this to the array vs the docker image?
The text was updated successfully, but these errors were encountered: