Commit Graph

1105 Commits

Author SHA1 Message Date
Balena CI
7648d075f6 v12.10.12 2021-09-28 18:30:57 +03:00
Balena CI
191e47344d v12.10.11 2021-09-27 16:18:10 +03:00
Balena CI
7191e7a042 v12.10.10 2021-09-07 18:03:20 +03:00
Balena CI
eeefc3abdd v12.10.9 2021-09-02 16:13:03 +03:00
Balena CI
19af36123e v12.10.8 2021-09-02 00:43:34 +03:00
Balena CI
f332ba646d v12.10.7 2021-09-01 23:46:44 +03:00
Balena CI
79f7f5fb24 v12.10.6 2021-09-01 21:13:03 +03:00
Balena CI
0ae52edbc8 v12.10.5 2021-09-01 01:59:03 +03:00
Balena CI
337e6affcd v12.10.4 2021-08-31 21:57:46 +03:00
Balena CI
f8cc2bc0ce v12.10.3 2021-08-25 16:53:22 +03:00
Balena CI
7e2ce7fc56 v12.10.2 2021-08-03 01:22:12 +03:00
Balena CI
49a391823c v12.10.1 2021-08-02 19:35:58 +03:00
Balena CI
0df979be55 v12.10.0 2021-07-31 01:27:29 +03:00
Balena CI
06c3f488e5 v12.9.6 2021-07-26 17:05:14 +03:00
Felipe Lalanne
f1bd4b8d9b Use tags to track supervised images in docker
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

Relates-to: #1616 #1579
Change-type: patch
2021-07-26 09:52:25 -04:00
Balena CI
19bcc6232b v12.9.5 2021-07-22 19:02:51 +03:00
Balena CI
f6774be127 v12.9.4 2021-07-08 22:26:09 +03:00
Balena CI
74ba1823c5 v12.9.3 2021-07-08 15:15:39 +03:00
Balena CI
3caf608158 v12.9.2 2021-07-07 16:54:35 +03:00
Balena CI
3cdab68df5 v12.9.1 2021-07-06 03:51:12 +03:00
Balena CI
41e745ce85 v12.9.0 2021-07-06 01:50:32 +03:00
Balena CI
5bd53db905 v12.8.12 2021-07-02 01:35:43 +03:00
Balena CI
71555f7a4d v12.8.11 2021-06-30 18:42:56 +03:00
Balena CI
b397ccef35 v12.8.10 2021-06-30 08:12:20 +03:00
Balena CI
5223262557 v12.8.9 2021-06-29 08:36:50 +03:00
Balena CI
cacbcfd2b1 v12.8.8 2021-06-18 15:15:45 +03:00
Balena CI
5486a74b82 v12.8.7 2021-06-14 14:15:43 +03:00
Balena CI
3974aacdc7 v12.8.6 2021-06-14 13:18:55 +03:00
Balena CI
7db799efa4 v12.8.5 2021-06-08 23:02:15 +03:00
Balena CI
27405d910b v12.8.4 2021-06-03 10:02:33 +03:00
Balena CI
b76fb36249 v12.8.3 2021-05-29 03:11:23 +03:00
Balena CI
a4be293ec4 v12.8.2 2021-05-26 17:58:13 +03:00
Balena CI
20a23155c1 v12.8.1 2021-05-25 07:07:45 +03:00
Balena CI
b77fdbb249 v12.8.0 2021-05-18 21:19:13 +03:00
Balena CI
e1cdade9b7 v12.7.4 2021-05-12 12:05:41 +03:00
Christina Wang
62375c907f
Upgrade mocha to v8, use mocha fixtures for chai plugins
Remove chai-events and add explicit chai devDependency

Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 17:10:57 +09:00
Balena CI
8bfaca7d97 v12.7.3 2021-05-12 10:52:42 +03:00
Balena CI
9a3596c44c v12.7.2 2021-05-10 07:17:22 +03:00
dependabot[bot]
90fe8359f1
Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 13:07:50 +09:00
Balena CI
853acae4a8 v12.7.1 2021-05-07 18:41:34 +03:00
Micah Halter
19a7ccb998 Bump contrato from 0.5.0 to 0.6.3
Change-type: patch
Signed-off-by: Micah Halter <micah@balena.io>
2021-05-06 12:46:17 +00:00
Balena CI
2cf9a9d6f3 v12.7.0 2021-05-07 15:12:18 +03:00
Kyle Harding
5faf9d7686 Rename resin-supervisor to balena-supervisor
Change-type: minor
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-05-06 17:05:25 +00:00
Balena CI
2f9d52cc6a v12.6.8 2021-05-07 00:20:57 +03:00
Balena CI
6fc91965fb v12.6.7 2021-05-06 19:48:57 +03:00
Balena CI
662b27c26d v12.6.6 2021-05-06 18:43:07 +03:00
Balena CI
042ff77564 v12.6.5 2021-05-06 15:47:47 +03:00
Pagan Gazzard
9e52bb33ac Update balena-register-device and send extra info at provision time
This extra info will mean the API is able to immediately set default
config vars based on the os/supervisor version so that they are
available on the first target state fetch rather than having a delay
whilst waiting for the supervisor to report them as part of a state
patch

Update balena-register-device from 6.1.6 to 7.2.0

Change-type: patch
2021-04-29 13:44:30 +00:00
Balena CI
8ceabbdb4d v12.6.4 2021-05-06 03:06:40 +03:00
Balena CI
e745648b5e v12.6.3 2021-05-04 06:03:17 +03:00
Balena CI
d9223bd460 v12.6.2 2021-04-30 23:27:19 +03:00
Balena CI
c8600ff22c v12.6.1 2021-04-28 01:59:29 +03:00
Christina Wang
b8deb757d6
Update blinking to 0.0.4
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-28 07:20:16 +09:00
Christina Wang
4a2ac557ef
Remove mz, mkdirp, body-parser dependencies
'mz' can be safely replaced with fs.promises
and util.promisify for faster native methods.
'mkdirp' after Node v8 uses native fs.mkdir, thus
is redundant. 'body-parser' is deprecated and
contained within express v4.x.

Closes: #1567
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-28 07:20:15 +09:00
Balena CI
f40cde8372 v12.6.0 2021-04-27 21:22:51 +03:00
Felipe Lalanne
95fb568aae Bump dockerode types to 2.5.34
This commit updates dockerode types to the latest 2.x version, removing the need
for custom composer types for network.

This commit also modifies network tests to use the new types

Change-type: minor
2021-04-27 13:00:56 -04:00
Balena CI
e2d54e9d6c v12.5.16 2021-04-27 19:49:06 +03:00
Balena CI
7908d19f9e v12.5.15 2021-04-26 23:53:04 +03:00
Miguel Casqueira
6f4030634a Added clean step to remove previous builds before running tests
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-26 19:51:07 +00:00
Balena CI
c1f2ac9c58 v12.5.14 2021-04-26 22:53:02 +03:00
Balena CI
10b56658e6 v12.5.13 2021-04-26 21:09:43 +03:00
Felipe Lalanne
fd06c06092 Update supervisor to typescript 4
Change-type: patch
2021-04-19 15:18:21 +00:00
Balena CI
5b7bc8a870 v12.5.12 2021-04-21 02:01:06 +03:00
Balena CI
2b30ce3b49 v12.5.11 2021-04-16 03:02:26 +03:00
Balena CI
5a7511b1a2 v12.5.10 2021-04-13 01:04:59 +03:00
Balena CI
14efec2c7d v12.5.9 2021-04-10 01:44:44 +03:00
Balena CI
6c0df43f1a v12.5.8 2021-04-09 16:29:30 +03:00
Miguel Casqueira
204475d3dc Improved mutable (/data) file system detection
Change-type: patch
Closes: #1609
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-08 17:34:27 -04:00
Balena CI
d78165b966 v12.5.7 2021-04-06 18:36:31 +03:00
Balena CI
6651ab4f2e v12.5.6 2021-04-05 19:10:53 +03:00
Balena CI
b7eb4c30a7 v12.5.5 2021-04-05 13:15:32 +03:00
Balena CI
0f906fd9d8 v12.5.4 2021-04-02 03:42:01 +03:00
Balena CI
16f981c478 v12.5.3 2021-04-01 10:09:53 +03:00
Balena CI
4f41901275 v12.5.2 2021-04-01 02:11:11 +03:00
Balena CI
7358db6af7 v12.5.1 2021-03-31 16:59:49 +03:00
Balena CI
bfad084972 v12.5.0 2021-03-30 17:18:28 +03:00
Balena CI
44e8134e02 v12.4.10 2021-03-22 20:40:06 +02:00
Balena CI
cc5fb4ac16 v12.4.9 2021-03-22 19:43:31 +02:00
Pagan Gazzard
18a8c1168d Move chai-things and chai-like into dev dependencies
Change-type: patch
2021-03-22 13:41:50 +00:00
Balena CI
ebce68d6d1 v12.4.8 2021-03-22 16:31:26 +02:00
Pagan Gazzard
b83160ff4b Add explicit dockerode dependency
Change-type: patch
2021-03-22 13:15:13 +00:00
Balena CI
78821824ad v12.4.7 2021-03-18 15:49:10 +02:00
Balena CI
bc338c92c5 v12.4.6 2021-03-16 02:37:29 +02:00
Balena CI
1ef5b62841 v12.4.5 2021-03-12 19:16:23 +02:00
Balena CI
2f74ca11bf v12.4.4 2021-03-09 20:18:30 +02:00
Balena CI
dc96cca5e5 v12.4.3 2021-02-24 19:52:48 +02:00
Balena CI
64127b24d2 v12.4.2 2021-02-19 04:55:33 +02:00
Balena CI
dd24662b47 v12.4.1 2021-02-18 20:28:20 +02:00
Balena CI
19079ae89d v12.4.0 2021-02-18 06:21:13 +02:00
Balena CI
c96d732131 v12.3.7 2021-02-17 15:01:37 +02:00
Balena CI
17b6b00778 v12.3.6 2021-02-09 13:19:51 +02:00
Balena CI
432b1dbcc5 v12.3.5 2021-02-03 18:26:58 +02:00
Balena CI
1fa8f5f920 v12.3.4 2021-01-25 20:02:10 +02:00
Balena CI
25de14d7b7 v12.3.3 2021-01-22 22:35:58 +02:00
Miguel Casqueira
ba1c857c4f Cancel pending apply target after /v1/update request
Closes: #1530
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-01-20 22:21:14 -05:00
Balena CI
e6ebfca0b9 v12.3.2 2021-01-12 01:05:38 +02:00
dependabot[bot]
2c61a961c1 patch: bump @types/yargs from 15.0.5 to 15.0.12
Bumps [@types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 15.0.5 to 15.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11 17:18:16 -05:00
Balena CI
c0da65edca v12.3.1 2021-01-11 22:33:07 +02:00
dependabot[bot]
8a4369f8df patch: bump pretty-ms from 7.0.0 to 7.0.1
Bumps [pretty-ms](https://github.com/sindresorhus/pretty-ms) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/sindresorhus/pretty-ms/releases)
- [Commits](https://github.com/sindresorhus/pretty-ms/compare/v7.0.0...v7.0.1)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11 14:44:20 -05:00
Balena CI
79b7540d36 v12.3.0 2021-01-06 20:49:20 +02:00