Petros Angelatos
d054ca7023
Use host networking for user containers
2015-10-13 13:19:44 -03:00
Aleksis Brezas
ff12b4b736
comment explaining why we dont throw on supervisor update
2015-10-13 13:19:44 -03:00
Aleksis Brezas
5a9f5bebc6
increase supervisor update timeout to 1 minute
2015-10-13 13:19:44 -03:00
Aleksis Brezas
81fbbab362
remove unnecessary catch
2015-10-13 13:19:44 -03:00
Aleksis Brezas
e65a0b9c66
do not throw update errors
2015-10-13 13:19:43 -03:00
Praneeth Bodduluri
05a3cba65f
apt-get clean everywhere.
2015-10-13 13:19:43 -03:00
Praneeth Bodduluri
c6a804e0cf
Move nodejs to node link to a more appropriate place
2015-10-13 13:19:43 -03:00
Praneeth Bodduluri
36e5af0018
i386 support for the edison
2015-10-13 13:19:39 -03:00
Pagan Gazzard
58cbb3808e
Log the stack trace as well when catching an unhandled error.
2015-10-13 13:18:12 -03:00
Pagan Gazzard
4f431d36ed
Fix binding a folder using the wrong id.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
2746d875f7
Fix "undefined is not a function" error due to not passing a callback to container.stop
2015-10-13 13:10:12 -03:00
Pagan Gazzard
0630d8051b
Only try to copy the enter.sh if there is a /data directory.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
4734f8e834
Remove duplicate require.
2015-10-13 13:10:12 -03:00
Eugene Mirotin
31a48c75f5
pass the error message in despawn as well
2015-10-13 13:10:12 -03:00
Eugene Mirotin
378913862f
pass the proper error message
2015-10-13 13:10:12 -03:00
Lorenzo Stoakes
3810a394c9
Up max comment length to 120 chars.
2015-10-13 13:10:12 -03:00
Lorenzo Stoakes
f39b51885d
Syntax cleanup pass.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
70eef70be2
Log an error if failing to stop a tty session
2015-10-13 13:10:12 -03:00
Pagan Gazzard
a9672bd5af
Make sure that the command socket exists and is a socket.
...
This handles the case of running an updated supervisor on an old image which doesn't support host commands - printing out a nice message and waiting rather than exiting silently.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
33441c74e7
Silence the setting up of the socket.
...
This was appearing whenever you started a new tty.js terminal - leaking stuff that shouldn't really be.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
c1b1aba985
Make sure to stop any spawned tty sessions on container stop.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
ad107b30ae
Enable destroying a tty.js tunnel.
2015-10-13 13:10:12 -03:00
Pagan Gazzard
1b0e364322
Enable spawning a tty.js tunnel.
2015-10-13 13:10:12 -03:00
Aleksis Brezas
aab2a3b3d3
missing require
2015-10-13 13:10:12 -03:00
Aleksis Brezas
839b6ec7ca
get full container id from /proc/1/cgroup
2015-10-13 13:10:12 -03:00
Aleksis Brezas
69e2af5aa1
wait for an ok from next supervisor before exit
2015-10-13 13:10:11 -03:00
Praneeth Bodduluri
b790e4e304
Blink interval of 200ms was too slow to be seen - reverting to 400ms used in api.coffee
2015-10-13 13:10:11 -03:00
Petros Angelatos
a10f118ab9
Use the registry endpoint from config, not environment
2015-10-13 13:10:11 -03:00
Pagan Gazzard
3c5e856ef2
Mount a /data directory for containers, to allow persistent storage.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
a9fe6f3414
Update the app info the moment we create the container, even if then starting the container fails.
...
This stops issues with constantly creating new containers for an image that fails to start.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
a6cc3da440
Find the accelerator version that matches the buildstep version.
2015-10-13 13:10:11 -03:00
Praneeth Bodduluri
e7216618ad
Make Blinkable LED configurable + Move blink to utils + Check connectivity before bootstrap + Blink LED on loss of connection
2015-10-13 13:10:11 -03:00
Pagan Gazzard
3975939181
Cleanup unneeded images after a successful update.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
4cc3092b73
Remove /dev mount, privileged flag does it by default.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
a39024709f
Stop the pre/postinstall scripts on error.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
d07c6abe99
Store and make use of container ids.
...
This stores the container id for an app when creating that app, using it when it is necessary to stop/remove the app and when attempting to start it again (rather than creating a new container each time, eg restarting the pi does not create a new container any more)
2015-10-13 13:10:11 -03:00
Pagan Gazzard
550aebb163
Remove tests and docs, we don't need them at runtime.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
67c5858ff1
Remove .c and .tar.* files that won't be needed at runtime.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
43df63b46b
Make sure the .git folder is either removed or not included in the first place.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
370f1bf7ce
Make sure the npm and apt-get caches are cleaned.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
e3188065d7
Properly delete the coffee-script source files.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
51bfb69354
Treat the bluebird OperationalError wrapper correctly.
2015-10-13 13:10:11 -03:00
Pagan Gazzard
0fae904f1c
Make sure to use string comparisons for the status code, to avoid issues where the types are different.
2015-10-13 13:10:10 -03:00
Praneeth Bodduluri
7aa66b5cb6
x86 support + Change localImage variable to SUPERVISOR_IMAGE
2015-10-13 13:09:58 -03:00
Pagan Gazzard
42b3479884
Add an entry to the makefile that makes it easy to enable node_modules caching.
2015-10-13 13:08:24 -03:00
Pagan Gazzard
0495053fd5
Add production mode guards.
2015-10-13 13:08:24 -03:00
Pagan Gazzard
3bad30eff7
Remove the coffeescript source files and coffeescript module after compilation since they're only needed at compile time (and not at runtime).
2015-10-13 13:08:24 -03:00
Pagan Gazzard
e64e6e6dbe
Handle trying to remove already stopped/removed containers gracefully.
2015-10-13 13:08:24 -03:00
Pagan Gazzard
7072b1df96
On update failure schedule another attempt briefly in the future.
2015-10-13 13:08:24 -03:00
Pagan Gazzard
ba5e186ebc
Order the packages according to npm install --save
2015-10-13 13:08:23 -03:00