I want to allow non-technical people in my project to run Python scripts on their laptop without having them to setup the necessary technical environment (virtual environment, packages, dependencies etc).
I want them for instance to be able to use a command ./merge.sh, so that the script can start the docker container, mount a local directory as a volum (to get the input and the output), run the Python script, stop the container.
I want to be able to do so for different commands (for instance also ./transform.sh, ./encode.sh)…
What is the best way to make this happen, both from a technical point of view (extensible, maintainable) and a usage point of view (only need to install docker/docker-compose and clone my repository).
I have made functions that uses the python image to run a python script in the current directory. I use (more or less) the line from the official pyton image documentation. Something like this: