wiserain / docker-flexget

Docker image for running Flexget
https://hub.docker.com/r/wiserain/flexget
68 stars 40 forks source link

Maybe the script in /config/custom-cont-init.d should be executed before flexget runs when the container starts ? #48

Closed Oscar1011 closed 2 years ago

Oscar1011 commented 2 years ago

I made a script in /config/custom-cont-init.d to install pip requirements. and put some plugins in flexget. If I recreate the docker container. it fails to start and reports missing requirements

wiserain commented 2 years ago

Executing flexget for setting password in /etc/cont-init.d/20-config might cause missing requirements error when fresh container startup.

If that's the case, you should not declare top-level import for the dependencies in your plugin script. It is recommended having local imports in each necessary function like we implemented here.

Oscar1011 commented 2 years ago

thank you