Commit Graph

403 Commits

Author SHA1 Message Date
Page
c229e8fd49 If bootstrapping fails, then actually fail, rather than covering up the error (the error will still get logged by bluebird if the promise rejection isn't handled - but the returned promise will actually be rejected now) 2015-10-13 12:58:57 -03:00
Page
795b8b4299 And actually remove the now-unused delay function. 2015-10-13 12:58:57 -03:00
Page
2d6f0a7e6d Update bluebird and use the delay helper. 2015-10-13 12:58:57 -03:00
Page
b65e3fd3f9 Remove some more unnecessary parens. 2015-10-13 12:58:57 -03:00
Page
e8e6490dd2 Update to coffee-script 1.7.1 2015-10-13 12:58:57 -03:00
Page
37212cedbe Remove a load of unnecessary parens. 2015-10-13 12:58:57 -03:00
Page
3c3e81a892 Install apps in parallel to deleting them - also fixes SQL errors when there are no apps to install. 2015-10-13 12:58:57 -03:00
Petros Aggelatos
aad38a487f apt-get update before installing packages 2015-10-13 12:58:57 -03:00
Petros Aggelatos
87534cb15e Expose the whole /dev directory in the container 2015-10-13 12:58:57 -03:00
Petros Aggelatos
31a9632fe3 Bug fix. Needed to declade a volume to use bind mounts 2015-10-13 12:58:57 -03:00
Petros Aggelatos
ace3e45371 Use package.json to install native dependencies 2015-10-13 12:58:57 -03:00
Petros Aggelatos
0e360b56ac Bind mount /dev/snd so that containers can play sound 2015-10-13 12:58:57 -03:00
Petros Aggelatos
c0bfbc582d Print helpful message instead of caught error 2015-10-13 12:58:57 -03:00
Petros Aggelatos
3aed83fe04 Removed unsed variables 2015-10-13 12:58:57 -03:00
Petros Aggelatos
e4de1453ce Correct engine syntax in package.json 2015-10-13 12:58:57 -03:00
Petros Aggelatos
cfe52ba7ec Use latest arm prebuilt node binary 2015-10-13 12:58:57 -03:00
Petros Aggelatos
742c6222c9 Base the image on rpi-buildstep 2015-10-13 12:58:56 -03:00
Petros Aggelatos
94395c7e12 Bugfix. .then() expects a function 2015-10-13 12:58:56 -03:00
Petros Aggelatos
117251bbc1 Only start an application when there is a commit 2015-10-13 12:58:56 -03:00
Petros Aggelatos
0d50132702 Missing dependency 2015-10-13 12:58:56 -03:00
Petros Aggelatos
57e8b10928 Make all applications privileged 2015-10-13 12:58:56 -03:00
Petros Aggelatos
cec5347c6c Print the application Id 2015-10-13 12:58:56 -03:00
Petros Aggelatos
637d68921f Application management code in its own module 2015-10-13 12:58:56 -03:00
Petros Aggelatos
614b24c796 Fix output format of VPN logs 2015-10-13 12:58:56 -03:00
Petros Aggelatos
12b3e194b5 Run application when supervisor starts 2015-10-13 12:58:56 -03:00
Petros Aggelatos
563df5386d On update get application info from the API 2015-10-13 12:58:56 -03:00
Petros Aggelatos
f10fb532c6 Use versioned API endpoints 2015-10-13 12:58:56 -03:00
Petros Aggelatos
91b59abd42 Save parameters in SQLite on successful bootstrapping 2015-10-13 12:58:56 -03:00
Petros Aggelatos
1dc26396a2 Elegant require calls 2015-10-13 12:58:56 -03:00
Petros Aggelatos
469777c232 Don't crash on uncaught exceptions 2015-10-13 12:58:56 -03:00
Petros Aggelatos
dc3708d14f Wait for db initialisation before starting app 2015-10-13 12:58:56 -03:00
Petros Aggelatos
e5684a1c3a Promisify blink 2015-10-13 12:58:56 -03:00
Petros Aggelatos
a8846b37b6 Minor log change 2015-10-13 12:58:56 -03:00
Petros Aggelatos
ef970712a8 Table config should have key as primary key 2015-10-13 12:58:56 -03:00
Petros Aggelatos
c98a274bde Fixed syntax errors 2015-10-13 12:58:55 -03:00
Petros Aggelatos
48c5766f3d Cleanup unneeded files 2015-10-13 12:58:55 -03:00
Petros Aggelatos
309da94028 OCD 2015-10-13 12:58:55 -03:00
Petros Aggelatos
de342a9209 Revamp/rewrite of supervisor as a docker application 2015-10-13 12:58:55 -03:00
Petros Aggelatos
5a071b35c9 Change the name to resin-supervisor 2015-10-13 12:58:55 -03:00
Petros Aggelatos
022b8fe903 http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/ 2015-10-13 12:58:37 -03:00
Petros Angelatos
9791c3e036 Handle forced updates and empty repos 2013-07-23 11:20:47 +01:00
Petros Angelatos
81dc5233da Disable the memory card indicator on the ACT led 2013-07-21 17:09:40 +01:00
Petros Angelatos
b8099372dd Use sudo to build the correct running enviroment for the app 2013-07-21 16:55:17 +01:00
Petros Angelatos
6df6feb5ef Application now emits events on status changes 2013-07-21 15:33:46 +01:00
Petros Angelatos
a2e4bd6634 New API endpoint 2013-07-21 15:20:45 +01:00
Petros Angelatos
6a3b9d45c7 More logging 2013-07-21 14:32:46 +01:00
Petros Angelatos
fff9148a83 Missing arguments in async callback 2013-07-21 14:32:06 +01:00
Petros Angelatos
3c49f64dbc Bug fix: async's callback was called twice 2013-07-21 14:31:14 +01:00
Petros Angelatos
cb434292bf Implemented the update repo endpoint 2013-07-21 02:31:54 +01:00
Petros Angelatos
f5760ffd09 Make sure the led is off after blinking 2013-07-21 02:31:21 +01:00