71 Commits

Author SHA1 Message Date
Andrew Rynhard
a7d76b9410 fix: Run cleanup script earlier in rootfs build
This change fixes a bug that caused the API server to fail due to a
missing directory at /usr/share/ca-certificates.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-25 14:51:13 -07:00
Andrew Rynhard
0ec17e4169 feat: run rootfs from squashfs
This change moves the rootfs to a squashfs image.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-25 08:38:31 -07:00
Andrey Smirnov
b1c184b616 chore: fix GOCACHE dir location
`go env GOCACHE` tells it's actually `/.cache` in our build environment
(probably because `$HOME` is not set?)

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-25 00:44:57 +03:00
Andrey Smirnov
8c59adb9dc chore: allow to run tests only for specified packages
This allows to do `make test TESTPKGS=./internal/app/machined`.

Also update Dockerfile slug as
https://github.com/moby/buildkit/pull/1081 was merged into master.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-23 22:17:22 +03:00
Andrey Smirnov
9f9acf1f05 chore: run tests in the buildkit itself
This relies on two PRs to the buildkit:

* https://github.com/moby/buildkit/pull/1081
* https://github.com/moby/buildkit/pull/1085

Sysfs fix was merged to upstream, so updated tag, while using
`Dockerfile` slug I can switch to dockerfile2llb with support for
`--security=insecure`.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-19 07:53:49 -07:00
Andrew Rynhard
8e8aae98dd feat: add machined
This commit splits our current init into init and machined.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-16 13:12:21 -07:00
Andrew Rynhard
40ae00d90c chore: add step to drone for kernel
Now that we manage dependencies manually, we need to explicitly build
the kernel target so that vmlinuz and vmlinux are placed into the build
directory.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-15 15:55:15 -07:00
Andrew Rynhard
0c17564398 chore: move init to /sbin
In order to run Talos with ignite, we need to have init at /sbin/init.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-15 13:26:09 -07:00
Andrew Rynhard
1e9548d149 feat: use new pkgs for initramfs and rootfs
This brings in the newly compiled libraries and binaries from our new
pkg builds.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-15 10:32:29 -07:00
Andrew Rynhard
666f04fdbc feat: update kernel
This kernel update brings in:

- modules support
- BPF support
- Azure support

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-10 20:19:59 -07:00
Andrew Rynhard
50eb51938c chore: prevent duplicate build of test container
This change removes the test-container step, and consolidates it to only a
test step. This prevents the build of the test container being done
twice.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-06 11:29:18 -07:00
Brad Beam
c1ec77ef42 feat: Use individual component steps for drone
Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
2019-07-05 23:11:40 -07:00
Andrey Smirnov
200eb513f9
chore(ci): download golangci-lint only once (#802)
When inherited from `base`, any source file change is causing
golangci-lint to be re-downloaded.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-06-28 22:00:52 +03:00
Andrew Rynhard
85afe4f828
feat: use eudev for udevd (#780)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-06-25 19:25:57 -07:00
Andrey Smirnov
ce1103d227 chore: tidy modules and verify module tidyness on build (#757)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-06-21 21:18:08 -07:00
Andrew Rynhard
1f36f0e7df
refactor(osctl): use UserHomeDir to detect user home directory (#749)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-06-20 17:57:57 -07:00
Spencer Smith
95b107d884
chore(ci): modularize integration test (#722)
Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
2019-06-06 09:28:53 -04:00
Andrey Smirnov
ee297da1a2
chore: enable GOPROXY for go modules (#703)
Announcement: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/golang-announce/0wo8cOhGuAI/v96KeTYtBwAJ

This should improve module download time as `go` no longer needs
to clone full repositories.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-05-31 23:59:52 +03:00
Andrew Rynhard
18a1536b01
feat: use osctl in installer (#654)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-05-15 16:14:30 -07:00
Andrew Rynhard
f0e162a7f5
refactor: move osinstall into osctl (#629)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-05-09 08:49:32 -07:00
Andrew Rynhard
7676a31b20
chore: move osinstall to cmd (#620)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-05-07 06:41:03 -07:00
Andrew Rynhard
0df1d9ca70
feat(init): run udevd as a container (#601)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-30 08:48:48 -07:00
Andrey Smirnov
ab2917e833
feat(init): implement init gRPC API, forward reboot to init (#579)
This implements insecure over-file-socket gRPC API for init with two
first simplest APIs: reboot and shutdown (poweroff).

File socket is mounted only to `osd` service, so it is the only service
which can access init API. Osd forwards reboot/shutdown already
implemented APIs to init which actually executes these.

This enables graceful shutdown/reboot with service shutdown, sync, etc.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-26 23:04:24 +03:00
Andrew Rynhard
544c9259fc
chore: use the rootfs-base and initramfs-base images for builds (#558)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-18 19:31:43 -07:00
Andrey Smirnov
7da7c8c2ff refactor: add stub unit-tests to non-trivial Go packages (#556)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-17 13:25:22 -07:00
Andrey Smirnov
d29e27ee33 refactor: containerd runner refactoring and unit-tests (#551)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-16 13:56:52 -07:00
Andrew Rynhard
a817e744c7
feat: remove blockd (#536)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-14 16:57:37 -07:00
Andrew Rynhard
a106e42657
feat: upgrade containerd to v1.2.6 (#532)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-14 10:25:03 -07:00
Andrey Smirnov
5c5e56b072 chore: split 'base' target, run tests in docker container (#528)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-14 09:27:20 -07:00
Andrew Rynhard
ae9e6ac282
feat: upgrade Kubernetes to v1.14.1 (#530)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-14 07:20:34 -07:00
Andrew Rynhard
65cea16be0
chore: create /lib/modules (#527)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-12 14:33:22 -07:00
Andrew Rynhard
8e45137879
chore: add drone build (#523)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-11 15:24:51 -07:00
Andrey Smirnov
9f35d54b11 chore: enforce go.mod completeness and better buildkit cache (#520)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-10 16:50:56 -07:00
Andrew Rynhard
7688de6a3a
chore: upgrade golangci-lint to v1.16.0 (#515)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-09 21:53:35 -07:00
Andrey Smirnov
ab0692004d chore: export coverage info from unit-tests (#505)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-04-09 12:21:19 -07:00
Andrew Rynhard
e1ee8191ff
chore: add release target to Makefile (#490)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-04 21:34:58 -07:00
Andrew Rynhard
05ac636ad0
chore: move website to netlify (#482)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-03 21:19:56 -07:00
Andrew Rynhard
e18b5086a9
chore: update org to new name (#480)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-03 18:29:21 -07:00
Andrew Rynhard
455aeb742c
chore: expose userdata and osctl client packages (#471)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-02 17:11:17 -07:00
Andrew Rynhard
9bc2f8fc48
fix: revert runc to v1.0.0-rc.6 (#470)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-28 21:42:29 -07:00
Andrew Rynhard
8dba7db9a2
feat: upgrade runc to v1.0.0-rc.7 (#469)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-28 18:25:05 -07:00
Andrew Rynhard
50253b806a
feat: upgrade Kubernetes to v1.14.0 (#466)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-28 17:39:26 -07:00
Andrey Smirnov
b36bf3e178 chore: use protobuf compiler from the toolchain image (#468)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-03-27 16:33:03 -07:00
Andrew Rynhard
30774fc3f0
feat: upgrade containerd to v1.2.5 (#463)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-24 20:52:27 -07:00
Brad Beam
3693cff14f feat: add basic ntp implementation (#459)
Signed-off-by: Brad Beam <brad.beam@b-rad.info>
2019-03-23 15:58:13 -07:00
Andrey Smirnov
b585b3f896 chore(tools): use Go compiler from toolchain image (#460)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-03-22 05:46:33 -07:00
Andrew Rynhard
31a00ef73a
feat: install bootloader to block device (#455)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-18 14:01:58 -07:00
Brad Beam
226697e691 feat: dd bootloader components (#438)
Signed-off-by: Brad Beam <brad.beam@b-rad.info>
2019-03-13 20:12:30 -07:00
Andrew Rynhard
b5f398d3dd
feat: add container based deploy support to init (#447)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-03-09 20:53:32 -08:00
leigh capili
98e39200a0 feat: add docker-os make target, Kubeadm.ExtraArgs, and a dev Makefile (#446)
Signed-off-by: leigh capili <leigh@null.net>
2019-03-09 11:12:35 -08:00