This commit is contained in:
Balena CI 2021-07-26 17:05:14 +03:00 committed by VersionBot
parent 51748c5f44
commit 06c3f488e5
5 changed files with 62 additions and 4 deletions

View File

@ -1,3 +1,56 @@
- commits:
- subject: Use tags to track supervised images in docker
hash: f1bd4b8d9bcef29e326cbf97eaddd837c2704d19
body: >
The image manager module now uses tags instead of docker IDs as the main
way to identify docker images on the engine. That is, if the target
state image has a name `imageName:tag@digest`, the supervisor will
always use
the given `imageName` and `tag` (which may be empty) to tag the image on
the engine after fetching. This PR also adds checkups to ensure
consistency is maintained between the database and the engine.
Using tags allows to simplify query and removal operations, since now
removing the image now means removing tags matching the image name.
Before this change the supervisor relied only on information in the
supervisor database, and used that to remove images by docker ID.
However, the docker
id is not a reliable identifier, since images retain the same id between
releases or between services in the same release.
List of squashed commits
- Remove custom type NormalizedImageInfo
- Remove dependency on docker-toolbelt
- Use tags to traack supervised images in docker
- Ensure tag removal occurs in sequence
- Only save database image after download confirmed
footer:
Relates-to: '#1616 #1579'
relates-to: '#1616 #1579'
Change-type: patch
change-type: patch
author: Felipe Lalanne
nested: []
version: 12.9.6
date: 2021-07-26T13:58:29.275Z
- commits:
- subject: Log the delta URL that will be downloaded on update
hash: c05c5803f08ddd31eeddb2000cc5f162fb916003

View File

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
# v12.9.6
## (2021-07-26)
* Use tags to track supervised images in docker [Felipe Lalanne]
# v12.9.5
## (2021-07-22)

View File

@ -1 +1 @@
12.9.5
12.9.6

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-supervisor",
"version": "12.9.5",
"version": "12.9.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "12.9.5",
"version": "12.9.6",
"license": "Apache-2.0",
"repository": {
"type": "git",
@ -138,6 +138,6 @@
}
},
"versionist": {
"publishedAt": "2021-07-22T15:08:58.689Z"
"publishedAt": "2021-07-26T13:58:29.461Z"
}
}