Commit Graph

249 Commits

Author SHA1 Message Date
Theodor Gherzan
e735e8f5d4 CHANGELOG.md: Sign
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-11-03 14:17:19 +01:00
Pablo Carranza Velez
5bcff712dc Provide a better error message when app is not found for purging 2016-11-01 12:20:51 +00:00
Pablo Carranza Velez
0e2710152b Only iterate through remote apps to set device config 2016-10-31 21:41:35 +00:00
Pablo Carranza Velez
58fb5c0a06 2.8.1 2016-10-31 03:50:09 +00:00
Pablo Carranza Velez
9af4ed0397 Properly delete dependent apps and their corresponding devices 2016-10-31 03:05:45 +00:00
Pablo Carranza Velez
3a86d8ec48 2.8.0 2016-10-30 21:51:25 -03:00
Pablo Carranza Velez
ac02d50715 Improvements in container create/start:
* Add HostConfig in container create instead of start
* Make it clear in logs when container was already running
2016-10-29 10:20:44 -03:00
Pablo Carranza Velez
3325ff47d4 Stop all apps before rebooting or shutting down 2016-10-27 20:18:30 -03:00
Pablo Carranza Velez
6077f1add4 Update request-progress to v2.0.1 2016-10-25 16:29:53 -03:00
Pablo Carranza Velez
ad1a78cdf4 2.7.1 2016-10-24 16:27:31 -03:00
Pablo Carranza Velez
e9e1a0b277 Use multiArgs to promisify gosuper requests
With the bluebird update to v3, all requests to gosuper (most notably, getting the IP addresses) got broken as we use .spread, which requires the Promise to fulfill with an array. So we need to add multiArgs so that getAsync and postAsync return an array.
2016-10-24 16:26:00 -03:00
Pablo Carranza Velez
d3761a699b Also make it explicit in mixpanel events when it's a full image download 2016-10-24 16:11:47 -03:00
Pablo Carranza Velez
43c1b2f92c Log whether deltas are being used when downloading an app 2016-10-23 20:18:20 -03:00
Pablo Carranza Velez
5f74ce6fec 2.7.0 2016-10-23 20:17:29 -03:00
Pablo Carranza Velez
22747fe9d9 Upgrade docker-progress to v2.3.1 2016-10-22 11:27:38 -03:00
Pagan Gazzard
4ed64536ec Fix multiple update loops appearing after a long period of updates failing. 2016-10-21 16:03:24 -07:00
Pablo Carranza Velez
70dc744886 Avoid restarting the app if the device name changes 2016-10-21 18:40:03 -03:00
Pablo Carranza Velez
d6aead1bad AUFS support and dependent app assets improvement:
* Use appId in dependent app assets tar path, and only create the tar if it doesn't exist
* Support AUFS by upgrading node-docker-delta to 1.0.0 and docker-toolbelt to 1.3.0
2016-10-21 16:37:57 -03:00
Pablo Carranza Velez
8361a533a1 Send the uuid as distinct_id for mixpanel events 2016-10-21 16:36:11 -03:00
Pablo Carranza Velez
5d8a9d93ef Changelog for no-MMX support 2016-10-21 12:16:17 -03:00
Pablo Carranza Velez
95d060757f 2.6.3 2016-10-13 18:08:59 -03:00
Pablo Carranza Velez
7bb3931f2c Properly set device name, and set undefined arguments to setConfig as null 2016-10-13 15:13:47 -03:00
Pablo Carranza Velez
d011e545c5 2.6.2 2016-10-11 17:06:02 -03:00
Pagan Gazzard
158ce2810c Update knex to ~0.12.3 2016-10-11 12:04:28 -07:00
Pablo Carranza Velez
6349c692f0 2.6.1 2016-10-11 13:05:20 -03:00
Pablo Carranza Velez
72d0401403 Do not use parsed JSON to compare dep. device state 2016-10-11 12:13:14 -03:00
Pablo Carranza Velez
c79aa28a82 2.6.0 2016-10-10 22:01:00 +00:00
Pablo Carranza Velez
6feba39948 Fix docker utils getImageEnv by correctly parsing the returned array 2016-10-10 21:58:20 +00:00
Pablo Carranza Velez
2413f5cff1 Avoid installing npm dependencies twice 2016-10-10 21:55:56 +00:00
Pagan Gazzard
969d714baf Update to bluebird 3 2016-10-10 12:49:54 -07:00
Pablo Carranza Velez
feb97539ef Improvements in proxyvisor:
* Better parameter handling in PUT /v1/devices/:uuid
* An update hook response of 200 will cause the proxyvisor to stop pinging the hook
* Allow deleting dependent apps and devices
* Implement delete dependent device hook
* Omit some fields when responding with a device object
2016-10-10 18:16:16 +00:00
Pablo Carranza Velez
ceb5016fc3 Add validation to dependent device provisioning 2016-10-08 20:42:50 +00:00
Petros Angelatos
1c1746fc9a 2.5.2
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-10-07 16:52:12 -07:00
Pagan Gazzard
b2ec2d2a85 Update to pinejs-client 2 2016-10-06 15:03:15 -07:00
Pablo Carranza Velez
8f52a8c7c2 2.5.1 2016-10-06 11:57:06 +00:00
Pablo Carranza Velez
c4e5d7afca Improvements on config and dependent device handling:
* Store config vars when there's nothing else to update
* Do not mark an update as failed if the hook failed
* When hitting the dependent devices hook, send appId as int
2016-10-05 23:21:29 +00:00
Pagan Gazzard
5c10644df7 Update to lodash 4 2016-10-05 23:03:12 +00:00
Pagan Gazzard
108ed9927d Update to coffeescript 1.11 2016-10-05 15:46:20 -07:00
Pablo Carranza Velez
4785437ba8 Fixes in app restart behavior:
* Compare config vars to trigger an app restart
* In delete-then-download, only delete when a download is needed
2016-10-05 19:45:18 +00:00
Pablo Carranza Velez
3cbe56c978 Fix disabling logs to display on newer OS with different service name 2016-10-05 19:04:47 +00:00
Pablo Carranza Velez
503e043c4c In cleanup, normalize all image tags for comparison 2016-10-04 17:48:11 -03:00
Pablo Carranza Velez
ddaa9f12db Use getRegistryAndName from docker-toolbelt 1.2.0 2016-10-04 14:43:45 -03:00
Pablo Carranza Velez
8ff8d0a7c0 2.5.0 2016-10-01 00:29:57 -03:00
Pablo Carranza Velez
a38e2e3a4a Changelog for the several dependent devices changes 2016-09-30 23:40:03 -03:00
Pablo Carranza Velez
2968e84135 2.4.0 2016-09-30 19:23:55 -03:00
Pablo Carranza Velez
e7acff0bcf On cleanup, force removal for images and containers, and remove container volumes 2016-09-29 19:34:19 -03:00
Pablo Carranza Velez
f385fe6bcc Add system logs for Shutdown, Reboot and Purge 2016-09-28 03:32:38 +00:00
Pablo Carranza Velez
a97342bf9c 2.3.0 2016-09-26 20:32:57 +00:00
Pablo Carranza Velez
4a99fd8803 Implement delete-then-download update strategy 2016-09-26 18:16:01 +00:00
Kostas Lekkas
b5fc0df066 Bump node-docker-delta to 0.0.12 2016-09-26 12:00:08 -03:00
Pablo Carranza Velez
b368ccfd3a 2.2.1 2016-09-26 11:59:36 -03:00
Petros Angelatos
e12f289d9d build: fix multiple env var definition syntax
When an ENV command has multiple environment variables defined they
key/value should be separated by an equals sign, not by a space.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-23 15:55:28 -07:00
Kostas Lekkas
c2f332fc62 2.2.0 2016-09-23 17:38:08 +03:00
Praneeth Bodduluri
81cb27a876 Add resin-vpn interface IP filtering to gosupervisor 2016-09-23 18:46:28 +05:30
Petros Angelatos
762ff2b498 add changelog entries
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 22:33:26 +00:00
Pablo Carranza Velez
16e2ec286e DRY up calls to gosuper API, and use empty Host header 2016-09-13 16:52:25 -03:00
Pablo Carranza Velez
f20947c2d2 2.1.1 2016-09-09 09:24:04 -03:00
Praneeth Bodduluri
2cc4b0fb46 Add iptables rules to allow resin-vpn named interface to be used by VPN 2016-09-09 17:41:35 +05:30
Pagan Gazzard
ebec23d0d8 Update to coffee-script ~1.10.0 2016-09-08 11:58:12 -07:00
Alexios Theodoros Brezas
12a4560518 Catch exec format error and provide friendlier message 2016-09-05 18:22:20 +00:00
Pablo Carranza Velez
99bd85e938 2.1.0 2016-09-05 17:59:44 +00:00
Theodor Gherzan
4d2fe03793 CHANGELOG.md: Sign
Signed-off-by: Theodor Gherzan <theodor@gherzan.ro>
2016-09-05 17:20:24 +00:00
Pablo Carranza Velez
de1f6a8f67 2.0.0 2016-08-31 18:16:49 +00:00
Pablo Carranza Velez
a8dd29cd82 Change the logger to send at a specific interval and with a different message format
Log messages to PubNub are now an array instead of an object.
Each element of the array is an object with m (message), t (timestamp) and s (isSystem, optional) attributes.
Logs are sent at a specific interval (110ms, fit with some margin to PubNub's approximated 10 messages/s limit), and truncated to PubNub's 32KB limit.
2016-08-29 19:03:06 -03:00
Pablo Carranza Velez
6de51543a5 1.14.0 2016-08-16 21:02:30 +00:00
Pablo Carranza Velez
1eb63366ee Allow using an HTTP header for auth 2016-08-16 20:39:55 +00:00
Pablo Carranza Velez
72369ca0be Changelog for iptables rules 2016-08-16 20:35:04 +00:00
Pablo Carranza Velez
211560472a 1.13.2 2016-08-09 15:23:27 -03:00
Petros Angelatos
d6a7608374 1.13.1 2016-07-28 17:45:43 -07:00
Petros Angelatos
5ee15e664e utils: allow specifying links in compose files
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-07-28 17:45:16 -07:00
Petros Angelatos
92d7ffbf04 1.13.0 2016-07-27 02:55:18 -07:00
Pablo Carranza Velez
98d9aca92d Allow the supervisor to work in offline mode
A supervisorOfflineMode true-ish attribute in config.json will cause that:
* If unprovisioned, the supervisor won't try to provision on Resin
* The update cycle will not start as the device won't consider itself provisioned
* Logs will not be sent to pubnub
* Mixpanel events won't be tracked
* The device state won't be updated to the Resin API

This change will also make the Supervisor API work with an unprovisioned device.
2016-07-23 14:04:24 +00:00
Kostas Lekkas
761a0cbd82 Fix double-printed logs after container restart 2016-07-21 22:39:19 +03:00
Pablo Carranza Velez
0609619863 Do not bind mount /run/dbus to /run/dbus 2016-07-19 02:13:34 +00:00
Pablo Carranza Velez
f5b0a4e7e7 Default to not bind mounting kmod if container distro can't be found 2016-07-18 16:49:45 +00:00
Pablo Carranza Velez
102eb460db Use log-timestamp to add timestamps to logs 2016-07-18 14:01:16 +00:00
Pablo Carranza Velez
427a19f2ca 1.12.2 2016-07-15 23:56:09 +00:00
Pablo Carranza Velez
5f926faa70 Bind mount kmod if the container is debian or raspbian
Use docker-toolbelt module.
The bind mount is read-only.
2016-07-15 20:46:09 +00:00
Pablo Carranza Velez
819428850f 1.12.1 2016-07-08 14:02:06 -03:00
Pablo Carranza Vélez
08d74b578b Fix preloaded apps by passing appId to extendEnvVars 2016-07-06 17:56:51 -03:00
Pablo Carranza Velez
9d97aaf30c 1.12.0 2016-06-28 17:50:12 +00:00
Pablo Carranza Velez
4278b6baf1 Add endpoints for docker-compose up and down 2016-06-24 21:08:46 +00:00
Pagan Gazzard
548c9ff12b 1.11.6 2016-06-23 16:16:45 -07:00
Petros Angelatos
f745d2cdb4 update docker-delta to fix deltas on old docker daemons
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-23 16:09:48 -07:00
Pagan Gazzard
9c64a6e917 1.11.5 2016-06-23 13:21:06 -07:00
Pagan Gazzard
07fdc55546 Fix entry.sh when DOCKER_ROOT isn't set 2016-06-23 11:37:59 -07:00
Pablo Carranza Velez
ac9e027b22 1.11.4 2016-06-17 18:24:21 +00:00
Petros Angelatos
ff97ecb756 bump node-docker-delta version to 0.0.10
this version fixes the issue where failed attempts to apply the delta
result in a lot of docker images on the disk, which could also
potentially lead to out of space issues

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-16 08:42:36 +00:00
Pablo Carranza Velez
164d565283 Make the data path configurable 2016-06-14 13:50:50 -03:00
Pablo Carranza Velez
d88e7d7d36 1.11.3 2016-06-11 12:22:51 -03:00
Pablo Carranza Velez
a8677a4401 Add listener for container events and reattach on restart 2016-06-11 11:55:22 -03:00
Pablo Carranza Velez
6e39128f3a fix deltas by not using the supervisor as source 2016-06-10 17:22:52 -03:00
Pablo Carranza Velez
f69e635196 1.11.2 2016-06-10 16:45:13 -03:00
Pablo Carranza Velez
1b7c91a791 1.11.1 2016-06-09 11:17:07 -03:00
Pablo Carranza Velez
30457c0e0f 1.11.0 2016-06-07 13:01:38 -03:00
Pablo Carranza Velez
3c38e6aa03 Changelog for restart policies 2016-06-07 12:50:25 -03:00
Pablo Carranza Velez
a6466b93aa 1.10.1 2016-06-07 11:30:44 -03:00
Pablo Carranza Velez
7104806ad1 Correctly compare container image name on cleanup
Docker 1.10 sends containerInfo.Image without the ":latest", so
the image name doesn't match the app's imageId.
This fix first splits the image name into repo and tag and then rebuilds
it to include ":latest" when appropriate. Should avoid removing containers
when using resin-sync.
2016-06-02 14:55:12 -03:00
Kostas Lekkas
6193ebe1df Log useful supervisor info to stdout/stderr 2016-05-30 16:51:27 +03:00
Alexios Theodoros Brezas
932af53913 1.10.0 2016-05-26 17:49:40 +03:00