Each time when a developer change the core service version they need to update docker compose file in several repositories. For now there are four repositories: openlmis-contract-tests, openlmis-ref-distro, openlmis-reference-ui and openlmis-deployment. In the last repository the developer needs to update the docker files for each OpenLMIS server that use service SNAPSHOT version (currently there are too servers: test and perftest). This document will try to show solutions to the problem.
Single version file
With the
Jira Legacy | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Disadvantage of this solution is that a developer still need to update service version in each repository each time when the service version will be changed. This solution only combine all pieces needed to updat in the given repository to a single place.
Script
The docker hub expose API that could be used to find and update service version in the given repository. To retrieve a list of all docker images we need to only send a request to the following URL. The important thing is that this endpoint is accessible for everyone. Authentication is not needed.
...