The kernel configs themselves are stored as diffs of what we want vs. each
version's defconfig.
Thus, things like e.g. CONFIG_DEVKMEM drop out after it was made
non-default. The implication of this is (I hope) that as upstream adopts
security features, our delta can shrink (or more realistically, only
include the next-next gen features).
Signed-off-by: Tycho Andersen <tycho@docker.com>
This is the script I used with [1] to generate the config diffs and
separate out the arch specific bits. Included mostly just so people can
play around with it if they want to generate their own diffs.
[1]: https://github.com/ulfalizer/Kconfiglib
Signed-off-by: Tycho Andersen <tycho@docker.com>
In particular, let's start with a defconfig and edit it, rather than try to
generate the config entirely from our own diff.
Signed-off-by: Tycho Andersen <tycho@docker.com>
This uses 'expect' instead of 'grep' because hyperkit is
a bit finicky with re-directing the output (it expects a
tty). 'expect' handles this and is installed on macOS by
default.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
- Add a test for the kernel config for each supported kernel
- simplify YAML files: no need for ca certificates nor DHCP
- Explicitly state that the kernel module tests are for
the 4.9 kernel.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
The qemu backend defaults to running against a locally installed
qemu but falls back to running in a container if qemu is not
installed. This test explicitly tests that the containerised
qemu backend works only if there is a locally installed qemu.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This now supports setting `source:` in the `files` section to read the contents of
a file rather than specifying it inline.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
- show errors by outputting stderr
- as no input is wired up, fails as requests a tty, so don't do that
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This now supports setting `source:` in the `files` section to read the contents of
a file rather than specifying it inline.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
- use new Makefile flags to add our build flags correctly now
- restore `dist` for now as it is useful for testing still, for now
Will remove both `dist` and `ctr` once we have our own tool, but will add
them to dev container instead.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
The actual code was removed in 4751d70b18 but
vendor.conf was not updated. Current version of vndr complains:
2017/05/18 21:18:03 WARNING: package github.com/docker/distribution is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/docker/engine-api is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/docker/go-connections is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/docker/go-units is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/opencontainers/runtime-spec is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/pkg/errors is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/xeipuuv/gojsonpointer is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/xeipuuv/gojsonreference is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package github.com/xeipuuv/gojsonschema is unused, consider removing it from vendor.conf
2017/05/18 21:18:03 WARNING: package gopkg.in/yaml.v2 is unused, consider removing it from vendor.conf
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Otherwise escape codes (arrow keys etc) do not work.
This is done only when stdin is a tty.
For clarity spell `--tty-` and `--interactive` out in full rather than using
the short versions.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>