Commit Graph

1030 Commits

Author SHA1 Message Date
Pablo Carranza Velez
f385fe6bcc Add system logs for Shutdown, Reboot and Purge 2016-09-28 03:32:38 +00:00
Pablo Carranza Velez
a97342bf9c 2.3.0 2016-09-26 20:32:57 +00:00
Pablo Carranza Vélez
b5281b0c96 Merge pull request #261 from resin-io/260-delete-then-download
Implement delete-then-download update strategy
2016-09-26 16:41:56 -03:00
Pablo Carranza Vélez
8c1aa1e180 Merge pull request #268 from resin-io/dindctl-src-path
dindctl: fix path for source with OE image
2016-09-26 16:41:11 -03:00
Pablo Carranza Velez
bc8f0de95f dindctl: fix path for source with OE image 2016-09-26 18:17:12 +00:00
Pablo Carranza Velez
4a99fd8803 Implement delete-then-download update strategy 2016-09-26 18:16:01 +00:00
Kostas Lekkas
b5fc0df066 Bump node-docker-delta to 0.0.12 2016-09-26 12:00:08 -03:00
Pablo Carranza Velez
b368ccfd3a 2.2.1 2016-09-26 11:59:36 -03:00
Petros Angelatos
49a75e4dc5 Merge pull request #265 from resin-io/fix-multiple-env
build: fix multiple env var definition syntax
2016-09-23 15:55:49 -07:00
Petros Angelatos
e12f289d9d build: fix multiple env var definition syntax
When an ENV command has multiple environment variables defined they
key/value should be separated by an equals sign, not by a space.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-23 15:55:28 -07:00
Kostas Lekkas
c2f332fc62 2.2.0 2016-09-23 17:38:08 +03:00
Praneeth
eaa4cb01ab Merge pull request #262 from resin-io/Issue_247
Add resin-vpn interface IP filtering to gosupervisor
2016-09-23 19:57:25 +05:30
Praneeth Bodduluri
81cb27a876 Add resin-vpn interface IP filtering to gosupervisor 2016-09-23 18:46:28 +05:30
Kostas Lekkas
00ddb04ca6 Merge pull request #259 from resin-io/258-dind-mount-kmod
dind: mount kmod
2016-09-22 08:37:40 +03:00
Kostas Lekkas
05690a81dc typo: fix startAppError message 2016-09-20 11:35:28 +03:00
Kostas Lekkas
4d448030a7 dind: bind-mount /bin/kmod:/bin/kmod 2016-09-20 11:35:28 +03:00
Petros Angelatos
143f7d8aef Merge pull request #256 from resin-io/fix-node-modules
revert overly optimistic cleanup of lodash module
2016-09-15 17:57:01 -07:00
Petros Angelatos
956d79f3c1 revert overly optimistic cleanup of lodash module
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-15 16:26:25 -07:00
Petros Angelatos
1740cf615c Merge pull request #223 from resin-io/rockerfile-based-build
oe-images build system integration
2016-09-14 16:01:53 -07:00
Petros Angelatos
edc7804de7 build: pin runtime image to specific date
This will prevent the builds from failing if we update the base image

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 22:33:37 +00:00
Petros Angelatos
0546ba51d9 invoke the linter using npm 2016-09-14 22:33:36 +00:00
Petros Angelatos
762ff2b498 add changelog entries
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 22:33:26 +00:00
Petros Angelatos
fd44a92782 don't install coffeescript in runtime image
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:37 +00:00
Petros Angelatos
ca91fd179b compress gosuper with upx
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:37 +00:00
Petros Angelatos
83393c04e3 switch to golang 1.6 to make the binary upx-able
https://github.com/golang/go/issues/13974
5e7110b92b

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:36 +00:00
Petros Angelatos
429aa1c8d2 do a more comprehensive cleanup of node_modules
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:36 +00:00
Petros Angelatos
e70ee292a6 minimise ENV commands to have less image layers
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:36 +00:00
Petros Angelatos
eee400f39f integrate with busybox init system
busybox's init uses /etc/inittab for configuration just like sysvinit,
however it doesn't use any runlevels.

the tty part of inittab is appended to "/dev/", and it becomes connected
to the stdout of the spawned process

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:35 +00:00
Petros Angelatos
488ca41621 build: implement multi-Dockerfile build process
This build strategy lends itself to how Rockerfiles work. In the build
Dockerfile all the build utilities (e.g gcc, python) are installed and
run the build process to produce some build artifacts. There are two
build Dockerfiles, one for the nodejs part and one for the golang part.
The build artifacts of these are combined into the runtime Dockerfile.
For all this to work there is some minimal glue implemented in the
Makefile.

Part of this commit is a switch of the base image the runtime is based
on to the minimal OpenEmbedded one produced by #198

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:35 +00:00
Petros Angelatos
276c89e7c5 churn: pretty format Makfile targets
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:02 +00:00
Petros Angelatos
8ad4411469 cleanup: remove unused tar file from old deltas
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:01 +00:00
Petros Angelatos
8567a6a222 build: remove dockerfiles for debian and alpine
The old build system will be replaced

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2016-09-14 01:38:01 +00:00
Petros Angelatos
d00c6f3952 Merge pull request #198 from resin-io/oe-base-image
Open Embedded base image
2016-09-14 02:36:45 +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