Commit Graph

1030 Commits

Author SHA1 Message Date
Page-
dc4f7a7583 Merge pull request #180 from resin-io/fix-docker-root
Fix entry.sh when DOCKER_ROOT isn't set
2016-06-23 12:46:39 -07:00
Pagan Gazzard
07fdc55546 Fix entry.sh when DOCKER_ROOT isn't set 2016-06-23 11:37:59 -07:00
Pablo Carranza Velez
ac9e027b22 1.11.4 2016-06-17 18:24:21 +00:00
Kostas Lekkas
c53f96edcc Merge pull request #171 from resin-io/170-linting
Linting
2016-06-17 17:56:19 +03:00
Petros Angelatos
f553a0a762 Merge pull request #169 from resin-io/cleanup-failed-delta-images
bump node-docker-delta version to 0.0.10
2016-06-16 13:02:02 -07:00
Kostas Lekkas
d64d413838 Remove unused vars and fix linting issues 2016-06-16 18:47:12 +03:00
Kostas Lekkas
a456a7b1ff Add resin-lint and "lint" npm script 2016-06-16 18:10:20 +03:00
Petros Angelatos
ff97ecb756 bump node-docker-delta version to 0.0.10
this version fixes the issue where failed attempts to apply the delta
result in a lot of docker images on the disk, which could also
potentially lead to out of space issues

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-16 08:42:36 +00:00
Pablo Carranza Vélez
7e7628aa2d Merge pull request #167 from resin-io/configurable-host-paths
Make the data path configurable
2016-06-15 14:01:56 -03:00
Pablo Carranza Velez
164d565283 Make the data path configurable 2016-06-14 13:50:50 -03:00
Pablo Carranza Velez
d88e7d7d36 1.11.3 2016-06-11 12:22:51 -03:00
Pablo Carranza Vélez
419a4d2510 Merge pull request #165 from resin-io/reattach-on-restart
Add listener for container events and reattach on restart
2016-06-11 12:21:12 -03:00
Pablo Carranza Velez
a8677a4401 Add listener for container events and reattach on restart 2016-06-11 11:55:22 -03:00
Pablo Carranza Vélez
891376dd2c Merge pull request #164 from resin-io/fix-deltas-dont-use-supervisor
fix deltas by not using the supervisor as source
2016-06-10 18:14:21 -03:00
Pablo Carranza Velez
6e39128f3a fix deltas by not using the supervisor as source 2016-06-10 17:22:52 -03:00
Pablo Carranza Velez
f69e635196 1.11.2 2016-06-10 16:45:13 -03:00
Petros Angelatos
1f3eddb3b0 Merge pull request #163 from resin-io/fix-delta-error-handling
connects to #160 fix delta error handling by listening for the 'error' event
2016-06-10 12:41:02 -07:00
Petros Angelatos
573cf31514 fix delta error handling by listening for the 'error' event
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-10 19:19:23 +00:00
Pablo Carranza Velez
1b7c91a791 1.11.1 2016-06-09 11:17:07 -03:00
Pablo Carranza Vélez
d069ce35e6 Merge pull request #161 from resin-io/fix-alpine-postinstall-sh
Use sh for postinstall as alpine has no bash
2016-06-09 11:11:32 -03:00
Petros Angelatos
d906786d58 update docker-delta to latest version
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-09 06:58:40 +00:00
Petros Angelatos
af32a48db4 symlink docker root to default path if not already there
docker-delta uses the docker API to query the docker root location.
However, docker returns the path in the host, not the path that it
happens to be bind mounted in the supervisor container. So in order for
the deltas to work properly, these paths must be the same.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-09 05:50:51 +00:00
Pablo Carranza Velez
1a1e1b5e8b Use sh for postinstall as alpine has no bash
Remove pipefail from postinstall.sh and use POSIX comparison
2016-06-07 15:44:28 -03:00
Pablo Carranza Velez
30457c0e0f 1.11.0 2016-06-07 13:01:38 -03:00
Pablo Carranza Vélez
9c0042c2d5 Merge pull request #120 from resin-io/restart-policy
Container restart policy specification.
2016-06-07 13:00:11 -03:00
Pablo Carranza Velez
3c38e6aa03 Changelog for restart policies 2016-06-07 12:50:25 -03:00
Alexios Theodoros Brezas
e3f480c217 Container restart policy specificiation.
Allow users to set container restart policy using environment variables.

RESIN_APP_RESTART_POLICY sets the name of the policy, and
if policy is "on-failure", optionally, RESIN_APP_RESTART_RETRIES
sets the maximum number of retries.

More information on docker docs:
https://docs.docker.com/engine/reference/run/#restart-policies-restart

One major change we introduce here is that the default policy is set
to always while we used to have the default "no".

We validate the arguments and pass retries parameter only for the case
of "on-failure" as specified in Docker API as of v1.19.
We could let docker handle the arguments directly, gaining
forwards-compatibility with any new features, but I opted
for an implementation that is as well-defined as possible.
2016-06-07 12:49:30 -03:00
Pablo Carranza Velez
a6466b93aa 1.10.1 2016-06-07 11:30:44 -03:00
Petros Angelatos
ca7df421e4 Merge pull request #159 from resin-io/deltas-v2
Switch to docker-delta library to use deltas v2
2016-06-06 19:45:51 -07:00
Petros Angelatos
20419bee3b Switch to docker-delta library to use deltas v2
This npm library implements the new delta format and also works with
docker 1.10.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-06-04 01:04:34 +00:00
Pablo Carranza Vélez
9b3381453e Merge pull request #158 from resin-io/157-fix-container-cleanup
Correctly compare container image name on cleanup
2016-06-03 14:08:54 -03:00
Pablo Carranza Velez
7104806ad1 Correctly compare container image name on cleanup
Docker 1.10 sends containerInfo.Image without the ":latest", so
the image name doesn't match the app's imageId.
This fix first splits the image name into repo and tag and then rebuilds
it to include ":latest" when appropriate. Should avoid removing containers
when using resin-sync.
2016-06-02 14:55:12 -03:00
Kostas Lekkas
131f7f5b22 Merge pull request #156 from resin-io/154-restore-private-env-vars
bugfix: do not mutate original env vars object
2016-06-01 14:18:27 +03:00
Kostas Lekkas
383be0946e bugfix: do not mutate original env vars object 2016-06-01 00:02:53 +03:00
Kostas Lekkas
bead6eb9c3 Merge pull request #153 from resin-io/152-log-to-stdout
Log useful supervisor info to stdout/stderr
2016-05-31 11:31:33 +03:00
Kostas Lekkas
6193ebe1df Log useful supervisor info to stdout/stderr 2016-05-30 16:51:27 +03:00
Alexios Theodoros Brezas
932af53913 1.10.0 2016-05-26 17:49:40 +03:00
Aleksis Brezas
f1391e8209 Merge pull request #149 from resin-io/fix-progress-bars
update docker progress to fix progress bars in docker v1.10
2016-05-26 17:47:15 +03:00
Alexios Theodoros Brezas
cba5f1c651 update docker progress to fix progress bars in docker v1.10 2016-05-26 17:46:37 +03:00
Pablo Carranza Velez
fa33cd72e1 1.9.0 2016-05-24 00:06:36 -03:00
Pablo Carranza Velez
ed7b936fee Use buffer-equal-constant-time to evaluate apikey 2016-05-23 23:59:45 -03:00
Pablo Carranza Vélez
1780a49030 Merge pull request #148 from resin-io/fix-alpine-versioning
Add changelog for alpine super and fix version reporting
2016-05-19 13:37:28 -03:00
Pablo Carranza Velez
25be1176d2 Add changelog for alpine super and fix version reporting 2016-05-19 16:25:49 +00:00
Pablo Carranza Vélez
cfbc83ee16 Merge pull request #146 from resin-io/145-load-image-endpoint
Add /v1/images/load endpoint
2016-05-19 11:42:02 -03:00
Pablo Carranza Velez
534035e7ae Changelog and docs for /v1/images/load 2016-05-19 13:27:59 +00:00
Pablo Carranza Velez
d58517f32d Use rwlock to block when images are being pulled 2016-05-19 13:24:23 +00:00
Pablo Carranza Velez
95f4fdb97f Add /v1/images/load endpoint 2016-05-18 13:47:54 -03:00
Pablo Carranza Vélez
ebf2c04a08 Merge pull request #134 from resin-io/alpine
Add alpine supervisor build info
2016-05-18 11:59:32 -03:00
Pablo Carranza Vélez
6748eb3c41 Merge pull request #143 from resin-io/142-local-management-api
Add endpoints to manage images and containers locally
2016-05-17 16:35:52 -03:00
Pablo Carranza Velez
951bd2888f Fix routing for deleting images with a slash in the name 2016-05-17 19:18:39 +00:00