Conversation
|
This will be useful if you have Docker but no Python, or had trouble getting the dependencies installed. If you think about it, though, you're pulling a small Debian operating system image across the InterWebs and spinning up a server just to run one Python program. If you already have a Python interpreter on the host system, or another similar system, you might be happier deploying a zipapp. Because rotate-backups has a lot of dependencies, Python's built-in git clone https://github.com/xolox/python-rotate-backups.git
cd python-rotate-backups
shiv -c rotate-backups -o rotate-backups .
./rotate-backups --helpThat If you don't already have One caveat: Windows doesn't understand Unix "shebang" lines without hacks and workarounds, so you may need to add a |
Simple Dockerfile for this package.