Commit Graph

4901 Commits

Author SHA1 Message Date
d7abc9e8bd Make sure to remove the accelerated build container if it exists before trying to create a new one. 2015-10-13 13:08:23 -03:00
209d365891 Use the resin/supervisor-base image when creating an accelerated supervisor, to match when building from the dockerfile. 2015-10-13 13:08:23 -03:00
0256e18bbf Make sure to check for the image that comes from the SUPERVISOR_REGISTRY, rather than just any image with the same name. 2015-10-13 13:08:23 -03:00
d18b137030 Tag the image whether we had to pull it or not, to make sure that supervisor-base is already tagged to the one we're expecting to use. 2015-10-13 13:08:23 -03:00
3ef5a86344 Report the device status to the API 2015-10-13 13:08:23 -03:00
c436d8d5c0 Set default values for the config vars, which will be used in the case of an env var not being set, and copy all existing env vars in the case of an update. 2015-10-13 13:08:07 -03:00
c03a51d404 Make sure the fib_trie mount is propogated on an update. 2015-10-13 13:06:43 -03:00
a47022a0b4 Report the host ip address to the API on startup and every 5mins after. 2015-10-13 13:06:43 -03:00
be5a32187a User local accelerator if available 2015-10-13 13:06:43 -03:00
2f861fc4d8 Change the Dockerfile base to something that is unique - Allows to simply change a variable to point to a different base 2015-10-13 13:06:43 -03:00
451cb06faf Create a variable for BUILDSTEP_REPO 2015-10-13 13:06:43 -03:00
d5c9735525 club all removes into one line 2015-10-13 13:06:43 -03:00
f8e8acfe35 Properly remove the deployment key 2015-10-13 13:06:43 -03:00
53f3303abc Use the buildstep pushed to staging & Remove deploy_key 2015-10-13 13:06:42 -03:00
6fb20a5dc5 Add support for exposing multiple ports. 2015-10-13 13:06:42 -03:00
3ae3668221 Test for both 'id' and 'Id' when docker responds with image info 2015-10-13 13:06:42 -03:00
58035f8b24 Switch from "id" to "Id" to match a docker change.. 2015-10-13 13:06:42 -03:00
597fefcb33 Fix reference error. 2015-10-13 13:06:42 -03:00
148d067ab9 Add a log entry that we're exiting on a supervisor update. 2015-10-13 13:06:42 -03:00
3e1dd1f922 Log every mixpanel event and remove redundant logs 2015-10-13 13:06:42 -03:00
d00372b5d2 Move mixpanel calls inside corresponding methods 2015-10-13 13:06:42 -03:00
d06b5117f0 Keep method of loading JSON files consistent 2015-10-13 13:06:42 -03:00
7b483e983d Fix bug of using mixpanel module as the mixpanel client 2015-10-13 13:06:42 -03:00
e622491f37 Add mixpanel events to the update process 2015-10-13 13:06:42 -03:00
1501cf3122 Integrate mixpanel 2015-10-13 13:06:42 -03:00
0772638d92 Supply USER environment variable to containers 2015-10-13 13:06:42 -03:00
a5fa371f22 Bind mount /lib/modules to enable module loading from inside the container 2015-10-13 13:06:42 -03:00
4cfcd39524 Enable periodic update checks, and add logic to only switch to the new image if it is different. 2015-10-13 13:06:42 -03:00
0d2d372cb9 Share the docker socket via config. 2015-10-13 13:06:42 -03:00
959da25c9f Add all expected env vars to the new supervisor container. 2015-10-13 13:06:41 -03:00
f78786b065 Rename the images more appropriately. 2015-10-13 13:06:41 -03:00
599f8ae503 Remove trailing commas. 2015-10-13 13:06:41 -03:00
96d1e48edd Use a promise constructor so we can make the code a bit cleaner. 2015-10-13 13:06:41 -03:00
a0f9219cb3 Initial version of self-updates, adds an "/v1/update-supervisor" endpoint that can be posted to in order to trigger a supervisor update, which it then fetches as the resin/rpi-supervisor repo of the registry endpoint. 2015-10-13 13:06:41 -03:00
d47ba654b7 Pass the device uuid as an env var 2015-10-13 13:06:41 -03:00
04ca3b3042 Clarify publish function definition 2015-10-13 13:06:41 -03:00
7e5fe4802f Don't filter out ANSI colours 2015-10-13 13:06:41 -03:00
29f5c9b7e0 Use promise API 2015-10-13 13:06:41 -03:00
604a05a21a Style fixes 2015-10-13 13:06:41 -03:00
94eeaaa510 Resolve variable collision 2015-10-13 13:06:41 -03:00
39261f5d6b Enclose publish queuing vars in their own closure 2015-10-13 13:06:41 -03:00
7c33f28724 Queue publish calls while getting uuid from db 2015-10-13 13:06:41 -03:00
ca736233e7 Move all configuration variables to a separate file 2015-10-13 13:06:39 -03:00
5caace400f Send logs through pubnub 2015-10-13 13:04:25 -03:00
9325b258ae Combine scripts 2015-10-13 13:03:16 -03:00
272daea89c Make supervisor deployable with resin 2015-10-13 13:03:16 -03:00
ff7d6c1f8a Add missing paren. 2015-10-13 13:03:16 -03:00
b3f9f9b1ef Switch to using the Promise constructor rather than deferred, it allows for slightly nicer code. Also add some parens in appropriate places. 2015-10-13 13:03:16 -03:00
4d5c18ec6f Fetch the image using dockerode. 2015-10-13 13:03:16 -03:00
7daebaf85e Fix check if we already have the image. 2015-10-13 13:03:16 -03:00