Two of our services (gitea and jitsi meet) need to take special action when docker-compose pull updates images and cannot rely on a basic up -d after a pull. Previously we checked the stderr output of docker-compose for a string indicating at least one image was updated to determine if any images updated. The problem with this approach is docker compose is less verbose than docker-compose and does not give us this information. In preparation for our slow but eventual migration to docker compose for these services update the new image check process. Now we perform a docker image listing before and after the pull and compare the emitted image ID lists. Image ids should change when we pull new images and their sort order should be stable command to command (they are sorted by image age). Change-Id: I7e9ca8cc7bc0454dcca82c02b6913d81aa4927b3
3.2 KiB
3.2 KiB