Commit Graph

1946 Commits

Author SHA1 Message Date
Resin CI
aee6a0db16 v7.25.0 2018-10-18 17:47:08 +02:00
Pablo Carranza Vélez
a762ba9dc0
Merge pull request #762 from resin-io/balena-config
deviceConfig: allow BALENA_ config variables
2018-10-18 17:45:14 +02:00
Pablo Carranza Velez
583ce34c01 apiBinder: Keep prepending RESIN_ to reported config variables
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 17:20:53 +02:00
Pablo Carranza Velez
24cbfbb860 deviceConfig: allow BALENA_ config variables
They will take precedence over any existing RESIN_ variables. We strip both namespaces now
whenever we get the target values.

This also fixes preloading with a legacy config (the interface to get the config keys from
the legacy apps.json was broken).

Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 17:20:53 +02:00
Resin CI
658639ea65 v7.24.1 2018-10-18 16:48:36 +02:00
CameronDiver
8e0327662d
Merge pull request #767 from resin-io/summit-fixes
Several small fixes
2018-10-18 15:46:15 +01:00
Cameron Diver
e04de0a170
fix: Add typescript cast to fix type error
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-18 15:14:12 +01:00
Cameron Diver
d939b2b9e6
fix: Remove debugging console logs
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-18 15:04:04 +01:00
Cameron Diver
6ad3a7981d
fix: Redact environment variable values in debug output
Chnage-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-18 15:04:04 +01:00
Cameron Diver
2a94a7b730
fix: Apply default config options when they're falsy
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-18 15:04:04 +01:00
Cameron Diver
5569e2bc84
fix: Always set the container name when generating creation options
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-18 15:04:04 +01:00
Resin CI
96c1cea4ab v7.24.0 2018-10-18 15:26:37 +02:00
Pablo Carranza Vélez
d32561e9de
Merge pull request #764 from resin-io/balena-os-changes
Changes to properly support balenaOS
2018-10-18 15:24:42 +02:00
Pablo Carranza Velez
e17bb59844 config: Allow atomic config.json writes on balenaOS
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 15:01:49 +02:00
Pablo Carranza Velez
0a4eefa9c6 network: Ignore resin-redsocks and balena-redsocks when reporting IP addresses
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 15:01:49 +02:00
Pablo Carranza Velez
31e730600d Use the DOCKER_SOCKET env var for the user container's balena socket mount
Instead of hardcoding balena.sock we use this variable since the path changes
with the balena -> balenaEngine rename.

We keep also mounting into balena.sock for backwards compatibility (even though
most tools should transparently use the DOCKER_HOST env var).

Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 15:01:49 +02:00
Resin CI
46535028c1 v7.23.0 2018-10-18 14:58:53 +02:00
Pablo Carranza Vélez
c5777855e2
Merge pull request #763 from resin-io/balena-labels
Replace io.resin labels (and their env vars) with io.balena equivalents
2018-10-18 14:56:40 +02:00
Pablo Carranza Velez
220f4b5810 service: Fix device name env vars by injecting and filtering in the interface with docker
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 14:49:00 +02:00
Pablo Carranza Velez
88b3682d51 ServiceManager: add BALENA_DEVICE_NAME_AT_INIT to injected env vars
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 13:21:31 +02:00
Pablo Carranza Velez
ed3f5522ae Replace io.resin labels (and their env vars) with io.balena equivalents
But we keep backwards compatibility by normalizing existing io.resin labels
into io.balena ones, and adding both RESIN_ and BALENA_ env vars for these features.

Change-Type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-18 13:21:31 +02:00
Resin CI
3b7bf9a4b7 v7.22.0 2018-10-18 02:36:17 -07:00
Pablo Carranza Vélez
e2c7f1f2b3
Merge pull request #760 from resin-io/balena-paths
Add /tmp/balena lock and handover paths and BALENA_ env vars
2018-10-18 11:33:44 +02:00
Pablo Carranza Velez
83b4d5878e service-manager: Delete the correct handover complete file
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-17 17:38:49 +02:00
Pablo Carranza Velez
047ca2ae68 service: Fix typo and type errors
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-17 11:34:13 +02:00
Pablo Carranza Velez
87a8d8f8f4 Env var changes in API docs, new private env vars, remove unused vars
We update the supervisor API docs to reflect the new `BALENA_` injected env vars.
We also add the new sensitive env vars to the list of vars not sent by the API.

And we remove the unused RESIN_DATA_PATH and RESIN_PROXYVISOR_HOOK_RECEIVER from the
vars the supervisor parses from its own environment.

Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-16 15:12:05 +02:00
Pablo Carranza Velez
802025c01f Make handover-complete an alternative to the resin-kill-me file
Also fixes the handover wait (since the service interface for it was missing).
We add some logging to this process too.

Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-10-16 15:12:04 +02:00
Pablo Carranza Velez
8003f25c3d Add /tmp/balena lock and handover paths and BALENA_ env vars
We change the lockfile to /tmp/balena/updates.lock, and the resin-kill-me file to /tmp/balena/handover-complete.
In the host, we change to use /tmp/balena-supervisor instead of /tmp/resin-supervisor.

We add BALENA_ env vars in addition to the RESIN_ env vars.

We keep backwards compatibility by using both paths for the lockfile and handover, and keeping the RESIN_ env vars.

Changelog-entry: Move the handover and lock files to /tmp/balena, rename them, and add BALENA_ env vars
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-10-16 15:12:04 +02:00
Resin CI
03b795b25e v7.21.5 2018-10-16 06:01:45 -07:00
Page-
ecc2a8f13e
Merge pull request #761 from resin-io/disable-x-powered-by
Disable express' x-powered-by header
2018-10-16 13:59:37 +01:00
Pagan Gazzard
660d9ff6f3 Disable express' x-powered-by header
Change-type: patch
Signed-off-by: Pagan Gazzard <page@resin.io>
2018-10-16 13:26:21 +02:00
Resin CI
d076d59499 v7.21.4 2018-10-16 02:46:00 -07:00
CameronDiver
cdd0ea9fc3
Merge pull request #759 from resin-io/fix-healthcheck
fix: overlay compose fields on image for healthcheck
2018-10-16 10:44:11 +01:00
Cameron Diver
b1434e44ae
fix: overlay compose fields on image for healthcheck
This commit changes a bug where the compose healthcheck would always
overwrite the healthcheck set by the image - even if no compose
healthcheck exists.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-16 10:34:37 +01:00
CameronDiver
11e97702cf
Merge pull request #758 from resin-io/fix-storage-opt
fix: Remove support for broken storageOpt option
2018-10-16 10:20:27 +01:00
Cameron Diver
16e7522a1f
fix: Remove support for broken storageOpt option
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-16 08:22:19 +01:00
Resin CI
4e9eae1b77 v7.21.3 2018-10-15 05:22:05 -07:00
CameronDiver
7986403731
Merge pull request #757 from resin-io/bump-docker-progress
deltas: Bump docker-progress to pick up support for balena-engine
2018-10-15 13:20:03 +01:00
Cameron Diver
81c7a2f7a0
deltas: Bump docker-progress to pick up support for balena-engine
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-15 12:09:45 +01:00
Resin CI
0e39b0e24c v7.21.2 2018-10-15 04:06:27 -07:00
CameronDiver
547174d6ef
Merge pull request #752 from resin-io/zlk_remove_blacklist
backend: Remove a few blacklisted config.txt options
2018-10-15 12:04:04 +01:00
Zubair Lutfullah Kakakhel
73b9895bdf
backend: Remove a few blacklisted config.txt options
These options were discussed in an arch call and the conclusion was
that they don't need to be in the blacklist.

Change-type: patch
Changelog-entry: Remove a few blacklisted config.txt options
Signed-off-by: Zubair Lutfullah Kakakhel <zubair@resin.io>
2018-10-15 11:41:22 +01:00
Resin CI
853727d7a1 v7.21.1 2018-10-15 03:33:57 -07:00
CameronDiver
fc0a26dced
Merge pull request #754 from resin-io/753-legacy-image
fix: Don't assume config is defined for legacy images in logger
2018-10-15 11:31:49 +01:00
Cameron Diver
a143a07aaa
fix: Return void from config setter
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-15 11:12:47 +01:00
Cameron Diver
d7edd3eb63
fix: Don't assume config is defined for legacy images in logger
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-15 10:53:11 +01:00
Resin CI
ccdf0b2075 v7.21.0 2018-10-15 02:51:37 -07:00
CameronDiver
6a89581b2b
Merge pull request #750 from resin-io/689-mc-local-mode
Add support for multicontainer local mode
2018-10-15 10:49:52 +01:00
Cameron Diver
ed73946af5
device-api: Add supervisor version endpoint
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-13 20:24:25 +01:00
Cameron Diver
479e0a8bb8
state: Don't consider local mode when storing state
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-13 20:20:05 +01:00