Commit Graph

985 Commits

Author SHA1 Message Date
Trong Nghia Nguyen
deb2e46c5d Change format for rootfs to gzip 2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
08b64592e2 add automation script for supervisor-base images 2016-09-13 16:31:27 -07:00
Petros Angelatos
279a332464 add build environment dockerfile
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
eea5ddd327 Fix relative paths 2016-09-13 15:02:47 -07:00
Petros Angelatos
7679a1e33f initial skeleton for openembedded based docker image
This commit adds two openembedded layers as submodules and a default
configuration to build a minimal image

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 15:02:43 -07:00
Pablo Carranza Vélez
0dcee16cb6 Merge pull request #253 from resin-io/empty-host-gosuper
DRY up calls to gosuper API, and use empty Host header
2016-09-13 18:37:32 -03: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
700e5b87ea Merge pull request #248 from resin-io/Issue-247
Add iptables rules to allow resin-vpn named interface to be used by VPN
2016-09-09 17:42:24 +05:30
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
Page-
291c542fd3 Merge pull request #251 from resin-io/update-coffeescript
Update to coffee-script ~1.10.0
2016-09-08 13:35:44 -07:00
Pagan Gazzard
ebec23d0d8 Update to coffee-script ~1.10.0 2016-09-08 11:58:12 -07:00
Pablo Carranza Vélez
c4f33d55ea Merge pull request #118 from resin-io/exec-format-error
Catch exec format error and provide friendlier message
2016-09-06 17:28:27 -03: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
Pablo Carranza Vélez
1ad24ddd21 Merge pull request #245 from resin-io/issue_260-from-meta-resin
device.coffee: Remove hardcode of resin-boot partitions's mount point
2016-09-05 14:57:53 -03:00
Theodor Gherzan
4d2fe03793 CHANGELOG.md: Sign
Signed-off-by: Theodor Gherzan <theodor@gherzan.ro>
2016-09-05 17:20:24 +00:00
Theodor Gherzan
32bf433af1 device.coffee: Remove hardcode of resin-boot partitions's mount point
Signed-off-by: Theodor Gherzan <theodor@gherzan.ro>
2016-09-02 19:55:01 +00:00
Pablo Carranza Velez
de1f6a8f67 2.0.0 2016-08-31 18:16:49 +00:00
Pablo Carranza Vélez
e9105aa9a0 Merge pull request #213 from resin-io/174-throttle-logs
Change the logger to send at a specific interval and with a different…
2016-08-31 15:12:17 -03:00
Pablo Carranza Velez
ec178f7a7f Use a more conservative message size, and properly account for URI encoding 2016-08-31 16:28:42 +00:00
Pablo Carranza Velez
78b4570b93 Allow storing several messages, will allow us to withstand log bursts better
Also, send a warning message when we start dropping logs.
2016-08-29 19:03:06 -03: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 Vélez
4f6f59b80e Merge pull request #240 from resin-io/fix-makefile
Fix proxies assignment in Makefile
2016-08-26 18:20:00 -03:00
Pablo Carranza Velez
a20084d906 Fix proxies assignment in Makefile 2016-08-23 10:23:18 -03:00
Pablo Carranza Velez
6de51543a5 1.14.0 2016-08-16 21:02:30 +00:00
Pablo Carranza Vélez
016a82586e Merge pull request #232 from resin-io/231-header-auth
WIP: Allow using an HTTP header for auth
2016-08-16 18:00:55 -03:00
Pablo Carranza Velez
1eb63366ee Allow using an HTTP header for auth 2016-08-16 20:39:55 +00:00
Pablo Carranza Vélez
439bac6331 Merge pull request #229 from resin-io/228-iptables
Add iptables rules to block requests to the supervisor API from all interfaces except vpn, docker and local
2016-08-16 17:36:19 -03:00
Pablo Carranza Velez
72369ca0be Changelog for iptables rules 2016-08-16 20:35:04 +00:00
Pablo Carranza Velez
145d124410 Check if rules exist before adding them 2016-08-16 09:30:38 -03:00
Pablo Carranza Vélez
55a8f897e8 Fix docs
Do not document the container management endpoints, as the API can and will probably have changes soon
2016-08-15 23:07:00 +02:00
Pablo Carranza Velez
c4ea2c77a0 Add iptables rules to block requests to the supervisor API from all interfaces except vpn, docker and local 2016-08-15 18:02:36 -03:00
Pablo Carranza Velez
211560472a 1.13.2 2016-08-09 15:23:27 -03:00
Petros Angelatos
d673015011 Merge pull request #227 from resin-io/fix-offline-mode
bootstrap: if offlineMode is enabled, persist only the uuid
2016-08-02 23:48:58 -07:00
Petros Angelatos
dd06f993ce bootstrap: if offlineMode is enabled, persist only the uuid
If we don't persist the uuid then every time the supervisor starts it
will think it's a new device. This triggers a wipe of the local state
and also a re-load of the preloaded apps. This in turn causes multiple
instances of the preloaded apps to be left running.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-08-02 23:48:13 -07: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
b708f05476 utils: sort compose options
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-07-28 17:43:26 -07:00
Petros Angelatos
92d7ffbf04 1.13.0 2016-07-27 02:55:18 -07:00
Petros Angelatos
cd9ddf0d2f Merge pull request #222 from resin-io/foobar
WIP add missing rimraf package
2016-07-26 23:28:57 -07:00
Petros Angelatos
f39ab4b0c8 add missing rimraf package
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-07-26 21:27:36 -07:00
Petros Angelatos
eb09713391 Merge pull request #216 from resin-io/215-improve-containers-api
Improve containers API
2016-07-26 20:52:56 -07:00
Petros Angelatos
4c704a76fc Merge pull request #219 from resin-io/enable-offline-mode
WIP: Allow the supervisor to work in offline mode
2016-07-26 14:06:19 -07:00
Petros Angelatos
66fe7fc30c logger: empty the publish queue if in offline mode
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-07-26 14:04:51 -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
Pablo Carranza Velez
02e111ff62 Allow only the options that we know can be supported 2016-07-22 23:28:28 -03:00
Pablo Carranza Velez
4db78b9743 Allow purging and deleting a container from the DB with a purge option 2016-07-22 23:17:25 -03:00
Pablo Carranza Velez
0b4f50d207 Avoid creating duplicate entries in the image table 2016-07-22 23:17:25 -03:00
Pablo Carranza Velez
1d16941a2d Fix cleanup of official images, and allow passing Name in container options 2016-07-22 23:17:25 -03:00