Commit Graph

2363 Commits

Author SHA1 Message Date
resin-io-versionbot[bot]
8cad3a664c v7.16.2 2018-07-25 14:57:58 +00:00
Cameron Diver
7ea48683be
Fix: Fix scoping issue with variables in service-manager
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-25 15:45:18 +01:00
resin-io-versionbot[bot]
e85cc6e04f
Auto-merge for PR #704 via VersionBot
Dont restart service on device name change
2018-07-25 10:47:07 +00:00
resin-io-versionbot[bot]
fa79c4872f v7.16.1 2018-07-25 10:34:13 +00:00
Cameron Diver
f7958e6c6b
Dont restart service on device name change
Change-type: patch
Closes: #659
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-25 10:45:05 +01:00
resin-io-versionbot[bot]
065f79390f
Auto-merge for PR #701 via VersionBot
Implement new log backend
2018-07-23 19:11:16 +00:00
resin-io-versionbot[bot]
0578840f09 v7.16.0 2018-07-23 18:56:09 +00:00
Petros Angelatos
202362241c
logger: Add unit tests
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:14 -07:00
Petros Angelatos
bba1da370b
logger: Remove pubnub leftovers
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:10 -07:00
Petros Angelatos
6766c23bd9
logger: Only send logs produced after attaching
The previous approach had the bad side effect of resending tons of logs
in the case of a supervisor restart.

The approach can be improved by storing the last timestamp per container
and re-attaching at the correct point.

Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:06 -07:00
Petros Angelatos
0d812c272c
logger: Use the new logging backend
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:30:59 -07:00
resin-io-versionbot[bot]
9dcf3ed697
Auto-merge for PR #700 via VersionBot
Allow persistent logging to be enabled/disabled via env var
2018-07-17 20:54:37 +00:00
resin-io-versionbot[bot]
d9eee69fcd v7.15.0 2018-07-17 20:40:33 +00:00
Cameron Diver
1604fdf276
Allow the enabling and disabling of persistent logging via env var
Closes: #698
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-17 19:43:54 +01:00
Cameron Diver
0e29e5f6f7
Refactor config code to be consistent in location
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-16 17:48:03 +01:00
resin-io-versionbot[bot]
f9a9adf20f
Auto-merge for PR #699 via VersionBot
Re-enable majority of tests
2018-07-16 16:08:10 +00:00
resin-io-versionbot[bot]
f8ead44b2b v7.14.1 2018-07-16 15:52:46 +00:00
Cameron Diver
5e5ff05b4f
Re-enable majority of tests
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-16 16:43:50 +01:00
resin-io-versionbot[bot]
7dad63b470
Auto-merge for PR #692 via VersionBot
Remove resinApiEndpoint meta-endpoint and use config.json entry instead
2018-07-12 14:04:14 +00:00
resin-io-versionbot[bot]
b1c3faabb0 v7.14.0 2018-07-12 13:46:47 +00:00
Cameron Diver
c61b16655e
Remove resinApiEndpoint meta-endpoint and use config.json entry instead
The resinApiEndpoint config option existed for legacy reasons, where the
apiEndpoint was passed in via env vars, but this is no longer the case,
and the current supervisor wouldn't run on these older versions of
resinOS anymore anyway, so I've removed the references to this legacy
endpoint, as it made reasoning about offline mode weird.

Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-12 13:33:57 +01:00
resin-io-versionbot[bot]
0ec7b829b9
Auto-merge for PR #691 via VersionBot
Correctly apply current commit value to applications
2018-07-12 12:06:37 +00:00
resin-io-versionbot[bot]
4e3070f343 v7.13.3 2018-07-12 11:53:34 +00:00
Cameron Diver
9259f231f8
Correctly apply current commit value to applications
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-12 12:42:22 +01:00
resin-io-versionbot[bot]
f9646e0a3a
Auto-merge for PR #688 via VersionBot
Fix typo in config method call
2018-07-09 10:44:46 +00:00
resin-io-versionbot[bot]
36f95c88bf v7.13.2 2018-07-09 10:31:19 +00:00
Cameron Diver
8abfd05718
Fix typo in config method call
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-09 11:09:42 +01:00
resin-io-versionbot[bot]
40965b9ad2
Auto-merge for PR #687 via VersionBot
Bind db handle to fn variable
2018-06-28 14:57:20 +00:00
resin-io-versionbot[bot]
98486717aa v7.13.1 2018-06-28 14:18:21 +00:00
Cameron Diver
080fdd3774
Bind db handle to fn variable
During the conversion to typescript, the behaviour of the database
handle changed slightly, meaning storing a reference to the models
function also requires a bind to be applied too.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-28 14:25:06 +01:00
resin-io-versionbot[bot]
857165f625
Auto-merge for PR #684 via VersionBot
Change config function providers to be mutable
2018-06-27 12:16:06 +00:00
resin-io-versionbot[bot]
71a2c3c456 v7.13.0 2018-06-27 11:52:58 +00:00
Cameron Diver
39d8ac0133
Change config function providers to be mutable
Also change logsChannelSecret value to be queried with the api backend,
so that logs are not shared between instances. This has been implemented
as the first config function provider with mutability.

Change-type: minor
Closes: #675
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-26 14:02:25 +01:00
resin-io-versionbot[bot]
f8e5cd8949
Auto-merge for PR #652 via VersionBot
V2 device state api and fixes
2018-06-26 08:15:21 +00:00
resin-io-versionbot[bot]
9f03d2885d v7.12.0 2018-06-26 08:01:14 +00:00
Cameron Diver
380d40f9f8
Fix /v1/device endpoint returning null for commit after an update
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 17:32:48 +01:00
Cameron Diver
cf85ae524b
Add applications state v2 endpoint
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 17:32:48 +01:00
Cameron Diver
049398eec0
Move compose types to ./types and add partial definitions for compose modules
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 17:32:47 +01:00
Cameron Diver
6ca2701b85
Move v2 endpoints to separate module
Change-type: patch
Connects-to: #640
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 17:32:47 +01:00
Cameron Diver
981c7323ed
Refactor v1 api into seperate modules
Change-type: patch
Connects-to: #640
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 17:32:47 +01:00
resin-io-versionbot[bot]
e29f4abb9b
Auto-merge for PR #655 via VersionBot
Store port ranges as actual ranges, to reduce ambient memory usage
2018-06-25 10:08:12 +00:00
resin-io-versionbot[bot]
d1b7a4c2e4 v7.11.3 2018-06-25 09:54:05 +00:00
Cameron Diver
bb8be44429
Reuse PortRange object in PortMap class, and other cleanup
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 09:46:07 +01:00
Cameron Diver
4027d286d1
Add tests for new port module
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 09:46:07 +01:00
Cameron Diver
5b8068794e
Add fromDockerOpts and normalization to PortMap class, and use in fromContainer
This function takes the docker output representing ports, and generates
the port map values from them. This means that services can accurately
be compared and next steps can be inferred.

The normalization function ensures that regardless of source, PortMaps
that represent the same port setup will be represented correctly
internally.

Change-type: patch
Closes: #644
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-25 09:46:07 +01:00
Cameron Diver
7b77e45f69
Store port ranges as ranges, to reduce memory usage
Before this change, port ranges were iterated and stored as an object
per port mapping. Now the port ranges are stored as ranges until they
need to be converted to objects. The need to convert to objects still
exists as this is the format which the docker remote API expects, but
hopefully this should alleviate bugs like #644 by making the memory more
shorter-lived.

Also added more tests.

Change-type: patch
Closes: #644
Signed-of-by: Cameron Diver <cameron@resin.io>
2018-06-25 09:46:01 +01:00
resin-io-versionbot[bot]
8d235926df
Auto-merge for PR #682 via VersionBot
A lot more typescript conversions
2018-06-18 13:03:10 +00:00
resin-io-versionbot[bot]
90ab089ca1 v7.11.2 2018-06-18 12:46:50 +00:00
Cameron Diver
809bc87b88
Convert config module to typescript
Extract config.json handling code out to separate modules too.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-18 13:41:18 +01:00
Cameron Diver
d656fbb1f5
Convert fs-utils module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-18 13:39:08 +01:00