Commit Graph

4852 Commits

Author SHA1 Message Date
Pagan Gazzard
766cce89c7 Convert multiple bluebird uses to native promises
Change-type: patch
2023-10-16 11:40:45 +01:00
flowzone-app[bot]
f6a4465114
v14.13.9 2023-10-16 02:14:34 +00:00
flowzone-app[bot]
906fee7c89
Merge pull request #2212 from balena-os/expose-network-service
Do not expose ports from image if service network mode
2023-10-16 02:13:38 +00:00
Felipe Lalanne
0c7bad7792 Do not expose ports from image if service network mode
The supervisor exposes ports configured using the `EXPOSE` directive in
the dockerfile when configuring the container for runtime. This can
cause issues if using `network_mode: service:<service name>` as the
expose configuration is not compatible with that network mode. This
fix now skips image exposed ports for that particular network mode.

Change-type: patch
Relates-to: #2211
2023-10-12 18:03:42 -03:00
flowzone-app[bot]
60c457f966
v14.13.8 2023-10-12 19:28:43 +00:00
flowzone-app[bot]
84321d5481
Merge pull request #2190 from balena-os/update-dependencies
Update dependencies
2023-10-12 19:27:37 +00:00
Felipe Lalanne
eb485cfde4 Move mdns-resolver to devDependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
c3832cf061 Move got to devDependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
dcef2ec78b Move semver to dev-dependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
50d2d59cd1 Move happy-eyeballs to dev-dependencies
This allows it to be tree-shaken

Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
a67a5a0f8f Move systeminformation to devDependencies
devDependencies are tree-shaked, while dependencies are stored in the
image. We reserve dependencies just for those that contain binary
bindings

Change-type: patch
2023-10-12 10:28:17 -03:00
flowzone-app[bot]
ddf99429eb
v14.13.7 2023-10-12 01:34:05 +00:00
flowzone-app[bot]
9f79b4b157
Merge pull request #2209 from balena-os/logs-optimization
Logs optimizations
2023-10-12 01:33:08 +00:00
Pagan Gazzard
3d73bf3e91 Use mutation for adding service/image ids to logs to reduce allocations
Change-type: patch
2023-10-11 15:39:19 -03:00
Pagan Gazzard
d685ccacb2 Keep the container lock for the entire duration of attaching logs
Change-type: patch
2023-10-11 15:39:19 -03:00
Pagan Gazzard
74d374b5ad Remove unnecessary async on handling journald stderr entries
Change-type: patch
2023-10-11 15:39:19 -03:00
Pagan Gazzard
e3806ec018 Avoid unnecessary work in systemd log row handling for invalid logs
Change-type: patch
2023-10-11 15:39:19 -03:00
flowzone-app[bot]
b94a4f7047
v14.13.6 2023-10-11 14:12:07 +00:00
flowzone-app[bot]
3e0f33ca56
Merge pull request #2208 from balena-os/remove-docker-logs
Remove unused docker logs logging code
2023-10-11 14:11:11 +00:00
Pagan Gazzard
894bdeeeb6 Remove unused docker logs logging code
Change-type: patch
2023-10-11 14:20:33 +01:00
flowzone-app[bot]
bcf6476b2d
v14.13.5 2023-10-10 18:54:24 +00:00
flowzone-app[bot]
db2046649f
Merge pull request #2206 from balena-os/revert-os-release-file-path
Revert os release file path
2023-10-10 18:53:24 +00:00
Christina Ying Wang
bc1d251e66 Revert os-release path to /mnt/root
/mnt/boot/os-release isn't always accurate so /mnt/root should be the source of truth.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-10-09 14:02:02 -07:00
Christina Ying Wang
b096cb6328 Make Node & NPM versions in package.json slightly more permissive to avoid warning
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-10-09 13:41:12 -07:00
flowzone-app[bot]
f3f854af21
v14.13.4 2023-10-02 21:38:15 +00:00
flowzone-app[bot]
668f090b97
Merge pull request #2204 from balena-os/add-tmpfs-for-tmp-in-integration-tests
Add tmpfs for /mnt/root/tmp in test env
2023-10-02 21:37:19 +00:00
Christina Ying Wang
5564a51acf Add tmpfs for /mnt/root/tmp in test env
This is to prevent the target state cache from getting written to host
during tests.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-10-02 12:47:50 -07:00
flowzone-app[bot]
1b6cf322b0
v14.13.3 2023-10-02 14:22:27 +00:00
flowzone-app[bot]
70b9930ec1
Merge pull request #2201 from balena-os/apk-node-version
Use `~=` to specify alpine package versions
2023-10-02 14:21:07 +00:00
Felipe Lalanne
4a4a8a59bf Use ~= to specify alpine package versions
Alpine allows the `~=` syntax to match a part of the package version
when installing. In this case we want to use it to specify node and
npm major versions

Change-type: patch
2023-10-02 10:30:55 -03:00
flowzone-app[bot]
2b23b66ea2
v14.13.2 2023-09-30 00:37:07 +00:00
flowzone-app[bot]
68485f4c5f
Merge pull request #2202 from balena-os/structured-clone
Use native `structuredClone` instead of _.cloneDeep
2023-09-30 00:36:08 +00:00
Christina Ying Wang
06d4775178 Use native structuredClone instead of _.cloneDeep
Memory tests have shown performance improvements to using the native method.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-09-29 12:29:50 -07:00
flowzone-app[bot]
07a2a34f51
v14.13.1 2023-09-28 20:17:11 +00:00
balena-renovate[bot]
595e90413a
Merge pull request #2197 from balena-os/renovate/balena-io-deploy-to-balena-action-1.x
Update balena-io/deploy-to-balena-action action to v1
2023-09-28 20:16:07 +00:00
Self-hosted Renovate Bot
aa07a160e9 Update balena-io/deploy-to-balena-action action to v1
Update balena-io/deploy-to-balena-action
Changelog-entry: Update balena-io/deploy-to-balena-action to v1.0.3
Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-09-28 11:41:23 -07:00
flowzone-app[bot]
b7d006fd58
v14.13.0 2023-09-28 18:13:18 +00:00
flowzone-app[bot]
5dec971ac3
Merge pull request #2198 from balena-os/update-to-alpine-3.18
Update runtime-base image to alpine:3.18
2023-09-28 18:12:15 +00:00
Christina Ying Wang
3766013cbd Update runtime-base image to alpine:3.18
We were still on 3.16, where the nodejs package was
pointed at Node 16. 3.18 moves the pointer to Node 18.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-09-28 10:49:21 -07:00
flowzone-app[bot]
3ed369883d
v14.12.2 2023-09-15 01:57:46 +00:00
Jao Maloy
8262cfac28
Merge pull request #2192 from balena-os/jaomaloy/dump-target-state
Dump target-state to hostOS tmp dir
2023-09-15 09:56:48 +08:00
jaomaloy
ab513cc021 Dump target-state to hostOS tmp dir
This change is mainly for the hostOS
to know if update locks should be ignored
when updating to a newer version.

Change-type: patch
Signed-off-by: jaomaloy <jao.maloy@balena.io>
2023-09-14 11:03:34 +08:00
flowzone-app[bot]
1e54d66ffe
v14.12.1 2023-08-21 16:17:38 +00:00
flowzone-app[bot]
dfc602afcb
Merge pull request #2191 from balena-os/update-knex-sqlite
Update knex and sqlite to latest versions
2023-08-21 16:16:38 +00:00
Felipe Lalanne
99962dc94f Bump sqlite3 to 5.1.6
Change-type: patch
2023-08-17 15:00:42 -04:00
Felipe Lalanne
06e258ecad Bump knex to v2.5.1
Change-type: patch
2023-08-17 15:00:29 -04:00
flowzone-app[bot]
e87ac99feb
v14.12.0 2023-08-17 00:38:36 +00:00
flowzone-app[bot]
f8694bc506
Merge pull request #2047 from balena-os/nodejs-18
Update to nodejs 18
2023-08-17 00:37:41 +00:00
Felipe Lalanne
c88d557aaf Update README
Add the new dependency on RUST, reorganize the documentation

Change-type: patch
2023-08-16 15:59:04 -04:00
Felipe Lalanne
327dc31ef0 Replace node-dbus with @balena/systemd
The node-dbus module is unmaintained and a blocker for the update to
Node 18. Switching to our own node bindings for systemd solves this
issue

Relates-to: Shouqun/node-dbus#241
Change-type: patch
2023-08-16 15:58:52 -04:00