Commit Graph

9 Commits

Author SHA1 Message Date
Pablo Carranza Velez
9540ed415b Make the base image hash more deterministic
We've been using tar directly on the base image folder, and this makes
the file ordering unpredictable between filesystems, so we use find and
sort so that the files are always tarred in the same order, producing the same
hash in different filesystems.

We also now set the mtime to the specific Unix timestamp 0, to avoid differences
due to timezones.

Also remove the dest folder before calculating the hash.

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2016-12-17 15:37:22 -03:00
Pablo Carranza Velez
9e327bf7a6 Build the base image together with the supervisor
This commit changes the automation scripts so that the base image
is built together with the rest of the supervisor. We use a hash of
the contents of the base-image folder as tag for the base image so
that unnecessary rebuilds are avoided.

The build scripts are also modified to always clean up the resulting base image
and the image used to build it. We use docker pull and push to enable caching.

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2016-12-16 16:25:49 -03:00
Trong Nghia Nguyen
17ca9b4320 use shared folders (downloads and sstate) in yocto build 2016-09-13 16:31:28 -07:00
Petros Angelatos
cad8bc7c49 use 'rpi' instead of armv6 for dockerhub repos
currently all our armv6 images are tagged as rpi in dockerhub

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:28 -07:00
Petros Angelatos
35d62a73be fix machine selection in base-image automation script
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
679691711d Add build info for multi-arch (i386, armel, armv6, armv7hf) 2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
40d9a47a2e Use dummy kernel 2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
deb2e46c5d Change format for rootfs to gzip 2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
08b64592e2 add automation script for supervisor-base images 2016-09-13 16:31:27 -07:00