|
10 months ago | |
---|---|---|
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
config.cfg.dist | 1 year ago | |
requirements.txt | 1 year ago | |
upgrade-drone.py | 10 months ago |
The goal of this script is to make sure we use the latest available docker image for all containers.
It works as follows:
Dockerfile
of each git repository and get the docker base image
(this is specified in the FROM
LINE in the Dockerfiles)docker-compose.yml
file and get images pulled from remote
registriesGet the latest
version (or clone the repository if you feel adventurous), rename
config.cfg.dist
to config.cfg
and fill in the right
parameters. Then install the required Python packages found in
requirements.txt using pyenv:
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
Then you can run the script with python upgrade-drone.py
to upgrade images for
all projects, or use the --repo
command line flag to specify a git repository.