fbdtemme / torrenttools

Commandline tool for inspecting, creating and editing BitTorrent metafiles.
MIT License
196 stars 14 forks source link

Can't create torrent using docker image #49

Open Ulrar opened 1 year ago

Ulrar commented 1 year ago

Hi,

I'm not sure what I'm doing wrong, but I just can't get it to work :

$ docker run -v /media:/media --name torrenttools --rm fbdtemme/torrenttools create -v hybrid -a udp://... udp://... -o /media/ '/media/shows/...'
Configuration error: no configuration was found
Warning: could not find config.yml file: not all features will be available.
$ 

It just exits without generating a torrent. I've tried mapping an empty file using -v ./empty:/etc/torrenttools/config.yml but it makes no difference, exact same error.

h1ght commented 11 months ago

u need to use cli inside the docker container to create a torrent. its just a docker container with the app inside. e.g. your terminal is attached to the container.

the-hotmann commented 5 months ago

u need to use cli inside the docker container to create a torrent. its just a docker container with the app inside. e.g. your terminal is attached to the container.

Completely wrong, since the compiled binary is the entrypoint this does not work. You need to pass the parameters/options to the entrypoint as CMD in docker run.

BUT: this Image does not work anymore, ans exactly this is what @Ulrar reported. I have created an docker-image from v0.6.2 and pushed it to DockerHub.

Feel free to use it. The Image is: h0tmann/alpine_torrenttools

@fbdtemme is there any chance we get a last polish for this application, so we can compile and use it with the latest dependencies and use alpine:3.19 or alpine:3.20 (will be released soon) to have great use of this tool even if no one actively maintains/develops it anymore?

Big thanks for this awesome application!