A small deploy utility package
EMS Deploy script
This project provides a general-purpose deploy script for the EMS projects. It runs the suitable docker-compose command based on the available docker-compose files located in the directory.
pip install ems-deploy
Directory structure and required files
Deploy concatenates a
docker-compose.deploy.yml Default if no tags are given when running the command.
docker-compose.<tag1>.<tag2>.<etc>.yml Optional. Notice there can be any number of tags.
How to use
deploy [-h] [-d] [-v] [--dry-run] [--flags "<flag1> <flag2>"] [tag]
If a tag is supplied, it will append all parent-tags too, and they are required. I.e. if we
run the command
deploy debug.test, it will add (and require) the following three files
docker-compose.yml docker-compose.debug.yml docker-compose.debug.test.yml
Notice one can also use the full file as a tag. That is, the following command will give the same result
The first level tag will be used as the project name, i.e. the
docker-compose -p command.
An argument string can be saved to a file named
The arguments in this string will then automatically be added to the
Additional arguments to the
deploy-command will overwrite the commands from the configuration file.
The following flags are always added to the
If the first level tag is
-d is automatically added.
To deploy the app with
docker-compose.deploy.yml, simply run
-dDetaches the process (this is automatically done in deploy-mode, but not in debug-mode)
-vWrites the resulting command to the terminal.
--dry-runWill not execute the command
--flagsChange default flags. Must specify a sting afterwards, e.g.
--flags "--force-recreate --build"
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.