Commit Graph

490 Commits

Author SHA1 Message Date
Pagan Gazzard
cd6dbedfa2 Be very careful about marking an update attempt finished 2015-10-13 13:39:08 -03:00
Pagan Gazzard
c8df0b2f9e Make use of the new cache feature of the request backend for pinejs-client 1.2.0 to make use of an ETags based cache for requests to the api. 2015-10-13 13:39:08 -03:00
Pagan Gazzard
82873d2ef2 Add a comment about updateDeviceState 2015-10-13 13:39:08 -03:00
Pagan Gazzard
48c21e9275 Keep track of target and actual device state, and make sure we keep updating the api with any differences until the two match. 2015-10-13 13:39:08 -03:00
Praneeth Bodduluri
e5d6235d89 Add armv7hf support 2015-10-13 13:39:08 -03:00
Pagan Gazzard
7765bc6a59 Just consume the stream for publish, avoiding any chance of it returning a value and getting stored up in the stream. 2015-10-13 13:39:08 -03:00
Pagan Gazzard
2c94ea57a2 Only load ngrok/tty on demand. 2015-10-13 13:39:08 -03:00
Pagan Gazzard
d578bbfba3 Use the new status/send/sendStatus style. 2015-10-13 13:39:08 -03:00
Pagan Gazzard
6144ea3aeb Update to express ^4.0.0 2015-10-13 13:39:08 -03:00
Pagan Gazzard
e7335104f1 Remove unused dependency. 2015-10-13 13:39:08 -03:00
Pagan Gazzard
a91b5d10db Remove binutils which is automatically installed with the other packages but not automatically removed. 2015-10-13 13:39:08 -03:00
Praneeth Bodduluri
b8923c82c5 Remove unused deploy_key and ssh_config 2015-10-13 13:39:06 -03:00
Pagan Gazzard
e7b5fce5f5 Merge some command to reduce the number of layers created (writing each layer takes quite a long time on my rpi, so this speeds up the dev cycle a bit) 2015-10-13 13:37:56 -03:00
Pagan Gazzard
a5fa19cafe Remove git+ssh as they're no longer needed for npm install. 2015-10-13 13:37:56 -03:00
Pagan Gazzard
933cbdedad Be more frugal with the bandwidth used for device updates. 2015-10-13 13:37:56 -03:00
Pagan Gazzard
5b82667b3b Remove unused require. 2015-10-13 13:37:56 -03:00
Petros Angelatos
7e81016b6f Bump version 2015-10-13 13:37:56 -03:00
Pagan Gazzard
62016866bc Update coffee-script to ~1.9.1 2015-10-13 13:37:56 -03:00
Pagan Gazzard
f20770d435 Update lodash to use ^ 2015-10-13 13:37:56 -03:00
Pagan Gazzard
a0495a2e20 Update JSONStream and event-stream. 2015-10-13 13:37:56 -03:00
Pagan Gazzard
73c7f29c65 Update pinejs-client to ^1.0.0 2015-10-13 13:37:53 -03:00
Pagan Gazzard
fb4bd203be Keep the / in the DEPLOY_REGISTRY, so we can just set it empty to use the default docker registry. 2015-10-13 13:37:10 -03:00
Praneeth Bodduluri
8f43fb0c36 Fix the missing enterContainer and Coffeescript compilation process in i386 and x86_64 Dockerfiles 2015-10-13 13:37:10 -03:00
Pagan Gazzard
d31febee41 Fix dep name 2015-10-13 13:37:10 -03:00
Pagan Gazzard
8ca8f96f46 Switch to npm deps for blinking and network-checker 2015-10-13 13:37:08 -03:00
Pagan Gazzard
1f6d3acb0c Add an npm dedupe call to reduce image size. 2015-10-13 13:36:14 -03:00
Pagan Gazzard
7bf0637347 Link the entry to /start to work with the hardcoded /start in old docker/rce-run-supervisor scripts. 2015-10-13 13:36:14 -03:00
Pagan Gazzard
ce2c4c8eaa Add .dockerignore and Dockerfile to the .dockerignore, this stops the temporary Dockerfile from invalidating the docker cache. 2015-10-13 13:36:14 -03:00
Pagan Gazzard
5936e51676 Ignore errors removing the temporary Dockerfile. 2015-10-13 13:36:14 -03:00
Pagan Gazzard
dfb96b07bd Remove unused files to save more space. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
a7f546db24 Add the dockerfiles and the makefile to .dockerignore, so they don't take space on the image or invalidate the cache. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
d646c4b51e Remove the accelerated/buildstep support from the Makefile, since the non-accelerated version now allows caching. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
1ca7d1d4a8 Save space on the i386 image by only installing required packages. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
c41c7a5d01 Save space by never committing build time dependencies, and only installing them for the duration of building. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
c82cec018d Save space by removing more npm install artifacts. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
701467ee46 Save space by using a dpkg config to avoid installing unnecessary docs/locales. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
e28eff6eeb Save space by not installing recommended apt packages 2015-10-13 13:36:13 -03:00
Pagan Gazzard
0d0ca4deda Switch to using resin/rpi-node and node images, making use of package.json caching. 2015-10-13 13:36:13 -03:00
Eugene Mirotin
433d0bc0f0 shorter defaults setting, also allows manual timestamps should someone need them 2015-10-13 13:36:13 -03:00
Eugene Mirotin
d47fdf8a3c log compound messages with timestamp and proper system flag 2015-10-13 13:36:13 -03:00
Pagan Gazzard
25e7afe4aa Add node_modules to the .dockerignore 2015-10-13 13:36:13 -03:00
Pagan Gazzard
3d83c03868 The SUPERVISOR_IMAGE is now the fully qualified image (since it can be on another registry) - update to work with this and stop attempting to delete the actual supervisor image. 2015-10-13 13:36:13 -03:00
Praneeth Bodduluri
5b7fa87cd6 Change i386 Dockerfile to use debian Jessie instead 2015-10-13 13:36:13 -03:00
Pagan Gazzard
16dea4efcc Download the new version of an application before stopping/deleting the old. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
177823c2f9 Add a make target to build and deploy the image. 2015-10-13 13:36:13 -03:00
Pagan Gazzard
0d8e9e0627 Remove rpi hardcoding in supervisor-accelerated. 2015-10-13 13:36:12 -03:00
Aleksis Brezas
af89179886 reset provisioning progress to null when supervisor starts 2015-10-13 13:36:12 -03:00
Petros Angelatos
798b146f44 Bump version 2015-10-13 13:36:12 -03:00
Petros Angelatos
e522387718 Use the right container engine depending on host image 2015-10-13 13:36:12 -03:00
Pagan Gazzard
2d5dca2171 Make sure the supervisor version update is also retried until succeeding. 2015-10-13 13:36:12 -03:00