Commit Graph

1884 Commits

Author SHA1 Message Date
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
CameronDiver
1336e3f91f
Merge pull request #737 from resin-io/736-device-name-at-init-restart-all
fix: Dont bind service class methods in declaration
2018-08-30 11:11:20 -07:00
Cameron Diver
16e102b3ba
fix: Dont bind service class methods in declaration
This was causing a bug where the applications were cloned when
restarting all of them. These clones did not carry over the binds, so
when starting the containers back up, two different versions of `this`
were being used.

Change-type: patch
Closes: #736
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-29 15:32:03 -07:00
Resin CI
6f0728ba56 v7.19.0 2018-08-29 13:58:12 -07:00
CameronDiver
69a5f623ee
Merge pull request #735 from resin-io/734-more-array-fields
feature(host_config): Support gpio config as an array
2018-08-29 12:44:39 -07:00
Cameron Diver
afd544f440
housekeeping: Add private:true to package.json
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-29 09:05:30 -07:00
Cameron Diver
0a93b9c18a
feature(host_config): Support gpio field as an array
Change-type: minor
Closes: #734
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-29 08:58:05 -07:00
resin-io-versionbot[bot]
d1be931029
Auto-merge for PR #713 via VersionBot
network: Add MDNS support for `.local` domains
2018-08-24 15:50:54 +00:00
resin-io-versionbot[bot]
01db7c448f v7.18.0 2018-08-24 15:35:56 +00:00
Heds Simons
f716624f89
network: Add MDNS support for .local domains
This requires the initialisation of both DBus and
Avahi in the `entry.sh` script to allow resolution
via libc.

Due to issues with Avahi's `init.d` script, the previous
PIDfile is explicitly removed.

Connects-to: #712
Change-type: minor
Signed-off-by: Heds Simons <heds@resin.io>
2018-08-23 18:41:55 +01:00
resin-io-versionbot[bot]
688b5c2a35
Auto-merge for PR #729 via VersionBot
ux: Warn on invalid device name when trying to start a service
2018-08-17 09:20:54 +00:00
resin-io-versionbot[bot]
8003ab830b v7.17.1 2018-08-17 09:07:20 +00:00
Cameron Diver
ae446c01b2
ux: Warn on invalid device name when trying to start a service
Device names with newlines cause reboot loops, due to newlines not being
supported by docker. This PR will warn when a device name contains a
newline.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-16 21:52:49 +01:00
resin-io-versionbot[bot]
88b0e2fc45
Auto-merge for PR #726 via VersionBot
dev: Add package.json tasks to aid debugging supervisor tests
2018-08-16 16:25:33 +00:00