This python script updates the images of one or many docker-compose stacks automatically.
If multiple docker-compose directories are supplied, the script updates them in parallel.
This DEMO is outdated. Use compose-update * to update all subdirectories
command: compose-update *
for update all sub directory
Usage: compose-update [OPTIONS] [UPDATE_DIRS]...
Update docker-compose images automatically.
Takes one or more directories as input and searches for a
compose file in one of the following forms:
"compose.yaml", "compose.yml",
"docker-compose.yaml", "docker-compose.yml"
Options:
--prune, -p Prune docker images after update
process if set
--help Show this message and exit.
By default the script gets run by the python interpreter python3
.
If you want to run the script with a different python interpreter you can just call it as you would normaly with the interpreter.
python3 compose-update
git clone https://github.com/FrederikRogalski/compose-update.git
cd compose-update
pip3 install -r requirements.txt
chmod +x compose-update
Then add the file 'update-compose' to your path.
At the moment the script has a problem with reading from stdin. Please supply your arguments after the command until this is fixed.