=> single command to update your gitlab docker container
Each execution of the program will update the container to the next minor version. To be safe, a backup will be made before upgrading gitlab version.
- gitlab running on linux server (tested with ubuntu 18.04)
- gitlab community edition
- docker-compose installed
docker-compose.yml
needs to fulfill the following criteriacontainer_name
with the name of the gitlab containerimage
has to be an exact gitlab version (e.g.gitlab/gitlab-ce:12.9.0-ce.0
)
- jar has to be in the the same folder as
docker-compose.yml
- java needs to be installed (tested with java 11)
- Download jar next to
docker-compose.yml
- Run the jar with java -jar GitlabDockerUpdater-latest.jar
- Get current version from
docker-compose.yml
- Check if there is a new version
- Perform backup for current version
- Set new version tag into
docker-compose.yml
- Pull new version image, restart docker container, display logs
- After that point you can press strg+c at any time to stop the program