Commit Graph

3495 Commits

Author SHA1 Message Date
bulldozer-balena[bot]
7f1b38545d
Merge pull request #1392 from balena-io/fix-firewall-promise-rejection
bug: Fix unhandled promise rejection
2020-07-13 12:40:50 +00:00
Rich Bayliss
898c7e71da
bug: Fix unhandled promise rejection
When invoking iptables-restore it can fail. This wasn't handled
and this makes sure that it fails gracefully.

Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-07-13 13:05:12 +01:00
Balena CI
56a9d96b67 v11.9.3 2020-07-08 14:46:22 +03:00
bulldozer-balena[bot]
de80aacc2f
Merge pull request #1390 from balena-io/device-config-singleton
Convert device config to singleton and fix await bug in db-format
2020-07-08 11:44:18 +00:00
Cameron Diver
270f9f854a Fix bug where a promise was not resolved in db-format
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-07-08 12:05:09 +01:00
Cameron Diver
5337c0102c Convert deviceConfig module to a singleton
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-07-08 12:05:09 +01:00
Balena CI
71d51c41c0 v11.9.2 2020-07-06 16:42:07 +03:00
bulldozer-balena[bot]
608a17a27b
Merge pull request #1389 from balena-io/1352-host-discoverability
avahi: Control with HOST_DISCOVERABILITY
2020-07-06 13:39:35 +00:00
Cameron Diver
03ca0ee9ad
avahi: Control with HOST_DISCOVERABILITY
The host config variable HOST_DISCOVERABILITY can be set to
true or false, controlling the state of the avahi service. This
determines if the device advertises it's presence over mDNS.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-07-06 13:02:29 +01:00
Balena CI
75c2e6c81e v11.9.1 2020-07-06 11:10:09 +03:00
bulldozer-balena[bot]
e9fa8ab4e9
Merge pull request #1380 from balena-io/host-firewall-support
Add host firewall
2020-07-06 08:08:03 +00:00
Rich Bayliss
28c5a44e71
firewall: Add Host Firewall functionality
Controlled by BALENA_HOST_FIREWALL_MODE, the firewall can
either be 'on' or 'off'.

- In the 'off' state, all traffic is allowed.
- In the 'on' state, only traffic for the core services provided
  by Balena is allowed.

Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-07-01 18:43:08 +01:00
Balena CI
fc70b1c6f8 v11.9.0 2020-06-24 10:41:31 +03:00
bulldozer-balena[bot]
711d4058df
Merge pull request #1371 from balena-io/1207-add-extlinux-fdt-config-support
Support setting FDT entry in extlinux.conf
2020-06-24 07:39:27 +00:00
Miguel Casqueira
59fc589eb2 Added support for configuring FDT directive in extlinux.conf
Change-type: minor
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-06-23 15:56:10 -04:00
Miguel Casqueira
3098abeca5 Refactor backends into seperate files and added tests for extlinux
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-06-23 15:56:10 -04:00
Miguel Casqueira
7a27b6c671 Refactor device-config tests styling
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-06-23 15:56:10 -04:00
Balena CI
233d87f310 v11.8.4 2020-06-22 14:05:25 +03:00
bulldozer-balena[bot]
eccc353ea7
Merge pull request #1361 from balena-io/report-mac-address
state: Report device MAC address to the API
2020-06-22 11:03:22 +00:00
Rich Bayliss
1b91ef3405
state: Report device MAC address to the API
When reporting device information, send the MAC address of any
interfaces on the system. Also expose in the Supervisor API at
the route GET /v1/device.

Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-06-22 10:41:06 +01:00
Balena CI
9d42e3518d v11.8.3 2020-06-18 16:18:16 +03:00
bulldozer-balena[bot]
7bad60274c
Merge pull request #1381 from balena-io/update-pinejs-client-request
Update pinejs-client-request to 7.x
2020-06-18 13:16:39 +00:00
Pagan Gazzard
c15f77434b Update pinejs-client-request to 7.x
Update pinejs-client-request from 5.2.0 to 7.0.0

Change-type: patch
2020-06-18 12:24:52 +00:00
Balena CI
7686b8b40f v11.8.2 2020-06-18 15:18:45 +03:00
bulldozer-balena[bot]
54cbfface2
Merge pull request #1373 from balena-io/singleton-managers
Make network-manager, volume-manager and service-manager singletons
2020-06-18 11:56:02 +00:00
Cameron Diver
0e8d92e08a Make service-manager module a singleton
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-17 14:56:57 +00:00
Cameron Diver
adaad786af Make volume-manager module a singleton
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-17 14:56:57 +00:00
Cameron Diver
8fc97b9de8 Make network-manager module a singleton
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-17 14:56:57 +00:00
bulldozer-balena[bot]
3773249790
Merge pull request #1376 from balena-io/doc/upgrading-supervisor
Add supervisor upgrade document
2020-06-16 20:57:10 +00:00
Hugh Brown
989ec83a27 Add supervisor upgrade document
Connects-to: https://github.com/balena-io/balena-io/issues/2157
Change-type: patch
Signed-off-by: Hugh Brown <hugh@balena.io>
2020-06-16 13:05:17 -07:00
Balena CI
20143c1569 v11.8.1 2020-06-16 16:55:51 +03:00
bulldozer-balena[bot]
dfde956da6
Merge pull request #1382 from balena-io/update-webpack-deps
Update webpack dependencies
2020-06-16 13:54:10 +00:00
Pagan Gazzard
e1fb8683f4 Update webpack dependencies
Change-type: patch
2020-06-16 13:05:46 +01:00
Balena CI
c172a70a95 v11.8.0 2020-06-16 12:22:51 +03:00
bulldozer-balena[bot]
557809871c
Merge pull request #1378 from balena-io/use-v6
Use API v6
2020-06-16 09:21:00 +00:00
Akis Kesoglou
1dccbaecd8 Use API v6
See: https://github.com/balena-io/open-balena/issues/80
Change-type: minor
2020-06-15 13:57:32 +03:00
Balena CI
3ef51240af v11.7.3 2020-06-15 13:44:51 +03:00
bulldozer-balena[bot]
b501e3faf4
Merge pull request #1377 from balena-io/db-format-changes
Db-format module code fixups
2020-06-15 10:42:44 +00:00
Cameron Diver
695d91d494 Db-format module code fixups
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-15 10:53:21 +01:00
Balena CI
0b9727c9cb v11.7.2 2020-06-15 12:18:01 +03:00
bulldozer-balena[bot]
d0bcaa6fa2
Merge pull request #1362 from balena-io/rgz/device-request-gpu
Add label to expose gpu to container
2020-06-15 09:16:21 +00:00
Robert Günzler
ae646a07ec Add label to expose gpu to container
In the absence of an upstream implementation of the DeviceRequest API introduced
as part of Docker API v1.40 we roll our own using a feature label.

As per my comment in the code, we fall back to the default behavior of
docker cli's `--gpu` and request single device with the `gpu` capabilty.
The only implementation at the moment is the NVIDIA driver; here:
https://github.com/balena-os/balena-engine/blob/master/daemon/nvidia_linux.go

Background on the composefile implementation:
https://github.com/compose-spec/compose-spec/issues/74
https://github.com/docker/compose/issues/6691

Change-type: patch
Connects-to: https://github.com/balena-os/balena-jetson/pull/75
Signed-off-by: Robert Günzler <robertg@balena.io>
2020-06-11 14:06:16 +02:00
Balena CI
92e71a95fa v11.7.1 2020-06-11 14:47:33 +03:00
bulldozer-balena[bot]
53658c1c13
Merge pull request #1372 from balena-io/db-format
Move database app processing out to its own module
2020-06-11 11:45:04 +00:00
Cameron Diver
b31d5007fb Move database app processing out to its own module
This is part of the work to make the application-manager module much
less monolithic, in preperation for system apps and more generally
multi-app.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-11 11:55:11 +01:00
Cameron Diver
c0e170c61f Make target-state-cache a singleton
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-11 11:55:11 +01:00
Balena CI
5512654d1c v11.7.0 2020-06-11 12:09:32 +03:00
CameronDiver
fad7020b1c
Merge pull request #1208 from balena-io/909-preload-device-name
Respect an initialDeviceName field in the config.json
2020-06-11 05:05:28 -04:00
Cameron Diver
b5918f0d84 Respect an initialDeviceName field in the config.json
Closes: #909
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-10 13:27:03 +01:00
Balena CI
dec79e11f4 v11.6.6 2020-06-10 15:02:04 +03:00