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
Cameron Diver
5906e1427c
local mode: Add local mode manager module to handle cleanup
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-13 20:20:05 +01:00
Cameron Diver
3e665c0f4a
logger: Enforce timestamp value to avoid logging server 400 errors
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-13 20:20:04 +01:00
Cameron Diver
6156825293
Add logging endpoint to supervisor
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-13 20:19:38 +01:00
Cameron Diver
6e2801380b
Support local logging via standard logging interface
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-10 13:02:40 +01:00
Cameron Diver
19cd310da3
Support setting target state in local mode from supervisor API
...
Change-type: minor
Closes : #689
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-10 13:02:40 +01:00
Cameron Diver
e0237e826e
Add several local mode enabling endpoints
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-10 13:02:08 +01:00
Cameron Diver
524d185c4c
Correctly type service-manager logger and event tracker fields
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-10 13:02:08 +01:00
Cameron Diver
5c0c880a10
Don't set empty target state in local mode
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-10 13:02:06 +01:00
Resin CI
188e85263f
v7.20.0
2018-10-08 03:56:31 -07:00
CameronDiver
5a8191cf79
Merge pull request #710 from resin-io/709-network-improvements
...
Refactor and improve compose networks support
2018-10-08 11:54:38 +01:00
Cameron Diver
5537ae4e2e
fix: Correctly handle array based network definitions for service
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-08 11:29:32 +01:00
Cameron Diver
367dd876aa
fix: Only join the default network when creating the container
...
We were joining every network on container creation, which is currently
bugged in Docker. We were also joining networks afterwards, so the
non-default networks are joined post-creation, and only the networkMode
container is joined on creation.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-08 11:29:23 +01:00
Cameron Diver
06bbf9751a
compose: Support changing the tty option for compose services
...
This enables the switch to be added to the compose, and the handling of
docker messages has been changed to ensure that the multiplexed logs
which result are handled properly.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-24 12:04:51 +01:00
Cameron Diver
e8a5edf774
types: Remove temporary Service type in favour of actual compose class
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-24 12:04:51 +01:00
Cameron Diver
892d227cc2
compose/service: Convert module to typescript and add network config
...
Stability improvements;
* Printing of unsupported compose fields
* Added a lot of tests
* All compose configuration has a default value, enabling better
comparison
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-21 10:30:27 +01:00
Cameron Diver
e0231f15e9
Compose: Support more network creation options
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-21 10:30:27 +01:00
Cameron Diver
a7551abe93
Refactor: Split Networks class to Network and NetworkManager
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-19 15:41:09 +01:00
Resin CI
276f9960fc
v7.19.7
2018-09-13 07:13:56 -07:00
CameronDiver
39651b94f6
Merge pull request #746 from resin-io/fix-apply-reporting
...
logger: Fix reporting the configuration change variables
2018-09-13 15:12:43 +01:00
Cameron Diver
c5540404af
logger: Fix reporting the configuration change variables
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-13 14:44:20 +01:00
Resin CI
db490979e8
v7.19.6
2018-09-13 04:22:38 -07:00
CameronDiver
a916f69c58
Merge pull request #745 from resin-io/improve-error-typings
...
lib/errors: Improve typings by extending Error class for predicates
2018-09-13 12:21:21 +01:00
Cameron Diver
d37eb8e8a9
lib/errors: Improve typings by extending Error class for predicates
...
When using the predicate functions in bluebird `.catch`es from
typescript, the compiler would complain that the predicates do not
accept a function which takes an error. Because these are specific
errors, I've extended the base `Error` class, and added the extra fields
we expect.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-13 12:01:10 +01:00
Resin CI
71dd2fc72e
v7.19.5
2018-09-12 04:43:16 -07:00
CameronDiver
5e396e26b9
Merge pull request #744 from resin-io/throttle-not-debounce
...
fix: Use throttle not debounce when ensuring we don't spam mixpanel
2018-09-12 12:41:49 +01:00
Cameron Diver
68a6b1aef1
fix: Use throttle not debounce when ensuring we don't spam mixpanel
...
Debounce will mean that in certain cases, the events will never be sent,
whereas with throttle we can be sure that it will be sent a minimum
amount per time slice.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-12 12:30:31 +01:00
Resin CI
1ff94a04b5
v7.19.4
2018-09-05 12:27:24 -07:00
CameronDiver
4df981697e
Merge pull request #742 from resin-io/740-spurious-state-reporting
...
fix: Don't send internal state tracking information to the API
2018-09-05 12:25:58 -07:00
Cameron Diver
8abbfe36e0
fix: Don't send internal state tracking information to the API
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-05 12:09:35 -07:00
Resin CI
45dd8c6d69
v7.19.3
2018-09-04 16:18:49 -07:00
CameronDiver
3c910db730
Merge pull request #741 from resin-io/fixes
...
Minor bugfixes
2018-09-04 16:09:07 -07:00
Cameron Diver
08b1c90ea1
fix: Fix event-tracker being passed no options object
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-04 16:02:06 -07:00
Cameron Diver
c1748436d8
fix: Import logger properly and add startup test
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-04 15:53:49 -07:00
CameronDiver
dfe95157b2
Merge pull request #738 from resin-io/rate-limit-mixpanel
...
Add mixpanel rate limiting, and supervisor version reporting
2018-09-04 14:53:42 -07:00
Cameron Diver
8ca42062a3
events: Report supervisor version with any mixpanel events
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-04 13:17:20 -07:00
Cameron Diver
607c722b0b
events: Add rate limiting based on event name when reporting to mixpanel
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-04 13:17:17 -07:00
CameronDiver
687dfcd124
Merge pull request #739 from resin-io/reduce-memory-usage
...
memory: Reduce memory usage by applying node command line flags
2018-09-04 13:13:19 -07:00
Mathew Heard
23013709b5
memory: Reduce memory usage by applying node command line flags
...
Change-type: patch
Closes : #690
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-04 12:52:22 -07:00
Resin CI
c7f812b993
v7.19.2
2018-09-04 11:44:27 -07:00
CameronDiver
8aaa50ba4e
Merge pull request #733 from resin-io/ts-changes
...
Further typescipt conversions
2018-09-04 11:43:07 -07:00
Cameron Diver
0c2c566da8
fix: Add es2015 lib to tsconfig.json
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:43:14 -07:00
Cameron Diver
8bd895d24f
refactor: Use Dictionary<T> type in ports module
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:39:07 -07:00
Cameron Diver
328b07a092
fix: Respect logging enabling on instantiation of logger
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:39:07 -07:00
Cameron Diver
67b5503ac4
Fix: Change import of ports module to be extensionless in tests
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:39:06 -07:00
Cameron Diver
d3a18da573
Refactor: Convert logging module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:39:06 -07:00
Cameron Diver
a0710d39ef
types: Add global typings file containing Dictionary<T> type
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:39:06 -07:00
Cameron Diver
99c807a48c
Refactor: Make exported log-types implement interface
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:36:21 -07:00
Cameron Diver
8ee26adbbe
Refactor: Convert event tracker module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:36:21 -07:00
Resin CI
524f2580d8
v7.19.1
2018-08-30 11:12:58 -07:00