Commit Graph

24 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
Michal Mazurek
7a0540e0f5 Bump the MAX_BASIS_DIRS limit for rsync.
Signed-off-by: Michal Mazurek <michal@resin.io>
2016-12-09 16:26:08 +01:00
Theodor Gherzan
3566755a17 nodejs: Restrict package configuration to the x86 arch
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-11-03 18:41:59 +01:00
Theodor Gherzan
82dbfc5e67 nodejs: Fix i387 architecture
Because the i397 architecture has no support for the SSE instruction set
we must make sure we do not issue any of these instructions.

Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-11-03 14:17:19 +01:00
Theodor Gherzan
321a458020 COPYING.Apache-2.0: Add file
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-11-03 14:17:09 +01:00
Theodor Gherzan
93ff0287a7 meta-resin-supervisor: Create new layer
Signed-off-by: Theodor Gherzan <theodor@resin.io>
2016-11-03 14:16:37 +01:00
Petros Angelatos
b4ae4d5444 update nodejs to 6.5.0
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:28 -07:00
Petros Angelatos
ca92a63cd6 install iptables in runtime image
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:28 -07: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
7cdff581ed match nodejs ABI as compiled by debian armel port
Generally, the armel port of debian targets the armv4t ABI. However
nodejs is specifically compiled against armv5t-vfp so we choose to have
the whole base image as such.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:28 -07:00
Petros Angelatos
279adde8bf match raspbian's armv6 ABI
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:28 -07:00
Petros Angelatos
a9d43a58c3 add .dockerignore for base-image Dockerfile
The `docker build` only creates the build environment. No need to send
the huge context to the docker daemon

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:27 -07:00
Petros Angelatos
ebf3cc20ef match debian armhf ABI
https://wiki.debian.org/ArmHardFloatPort#Minimum_CPU_.26_FPU

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:27 -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
Petros Angelatos
71dedbab39 Update nodejs dependency to 6.3
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
Petros Angelatos
279a332464 add build environment dockerfile
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 16:31:27 -07:00
Trong Nghia Nguyen
eea5ddd327 Fix relative paths 2016-09-13 15:02:47 -07:00
Petros Angelatos
7679a1e33f initial skeleton for openembedded based docker image
This commit adds two openembedded layers as submodules and a default
configuration to build a minimal image

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-13 15:02:43 -07:00