Commit Graph

5306 Commits

Author SHA1 Message Date
David Manouchehri
e9bc7353e6
As requested by @justincormack (https://github.com/linuxkit/linuxkit/pull/2784#issuecomment-349064467).
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-12-04 13:55:17 -05:00
David Manouchehri
bc43735543
As requested by @ijc (https://github.com/linuxkit/linuxkit/pull/2784#pullrequestreview-80464126).
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-12-04 13:36:31 -05:00
David Manouchehri
80b54ed341
Reuse existing local Git repository (https://github.com/linuxkit/linuxkit/pull/2784#pullrequestreview-80121346).
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-11-30 14:12:41 -05:00
David Manouchehri
b262675c91
Switch to ${HOME} (https://github.com/linuxkit/linuxkit/pull/2784#pullrequestreview-80242701).
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-11-30 13:23:04 -05:00
David Manouchehri
899d62352e
Improve vagrant up time by skipping (possibly) unneeded updates.
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-11-29 21:58:18 -05:00
David Manouchehri
bb73dab8d3
Added initial Vagrant support.
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-11-29 21:46:20 -05:00
Justin Cormack
390e8d3cb2
Merge pull request #2780 from justincormack/ena
Add support for newer AWS networking types
2017-11-29 16:15:49 +00:00
Justin Cormack
6e9b1bb09a Add support for newer AWS networking types
- ENA networking is what the very new (and bare metal) machines have
- sriov "simple" mode is Intel VF passthrough

I reflect the underlying APIs, which is bool for ENA and a string
for sriov even though there is currently only one valid sriov option...

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-29 14:46:48 +00:00
Rolf Neugebauer
e4fcf70cdd
Merge pull request #2775 from arm64b/master-Makefile-fixing
Makefile: Fix binaries generation issue when 'docker run' failed
2017-11-29 12:00:36 +00:00
Justin Cormack
964eb5f9d7
Merge pull request #2779 from justincormack/bind-resolv-nginx
Bind mount /etc/resolv.conf into nginx container
2017-11-29 11:33:05 +00:00
Dennis Chen
a4cc18622c Makefile: Fix binaries generation issue when 'docker build' failed
Currently we will always create a temp tar file even the 'docker run'
failed for some reason,e.g, the docker daemon doesn't run. As a result,
we'll get the 2nd error even we've fixed 'docker run' failure.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2017-11-29 01:46:34 +00:00
Justin Cormack
3bc4766f39 Bind mount /etc/resolv.conf into nginx container
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-28 17:18:17 +00:00
Justin Cormack
c6fad9f76b
Merge pull request #2777 from ijc/linuxkit-pkg-label-in-build.yml
linuxkit pkg: Add `config` field to `build.yml`
2017-11-28 14:59:38 +00:00
Ian Campbell
fd9242d5ef Bump yml
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-28 13:32:04 +00:00
Ian Campbell
1f6c1a59ca linuxkit pkg: Add config field to build.yml
This is a `moby.ImageConfig` struct which is marshalled into JSON and added as
the `org.mobyproject.config` label on the built image.

Convert `pkg/sysctl` as PoC.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-28 12:01:39 +00:00
Rolf Neugebauer
3cd02db567
Merge pull request #2774 from rn/kern-up
Update kernels
2017-11-27 11:42:38 +00:00
Rolf Neugebauer
bec7456d9b Update YAML files with latests kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-24 15:13:09 +00:00
Rolf Neugebauer
43b2caf69e kernel: Update to 4.4.102/4.9.65/4.13.16/4.14.2
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-24 13:55:21 +00:00
Rolf Neugebauer
c6721e5343 kernel: Update to 4.4.101
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-24 13:55:21 +00:00
Rolf Neugebauer
4aa1845b96 kernel: Fix 4.14.x/4.13.x config for aarch64
The update in 6ede240737 ("kernel: Update to
4.14.1/4.13.15/4.9.64/4.4.100") failed to build on aarch64.
This fixes it.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-24 13:55:21 +00:00
Ian Campbell
c003d0c44f
Merge pull request #2772 from ijc/linuxkit-pkg-push-no-build
linuxkit pkg: allow skipping build before push
2017-11-24 13:51:49 +00:00
Rolf Neugebauer
d88cf65928
Merge pull request #2770 from rn/cadvisor
Update cadvisor and add build test
2017-11-24 13:36:17 +00:00
Rolf Neugebauer
b7b773d4ba tests: Add build test for cadvisor example
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-24 10:56:23 +00:00
Ian Campbell
ae53577078 linuxkit pkg: allow skipping build before push
If doing the build separately from pushing (as I am intending in
https://github.com/linuxkit/kubernetes/pull/8/) it is desirable to avoid a
second build when pushing.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-24 09:52:27 +00:00
Rolf Neugebauer
932b9f1c10
Merge pull request #2731 from arm64b/kernel-makefile-fixing
kernel: Fixing kernel_perf and kernel_zfs build issue
2017-11-23 22:56:32 +00:00
Dennis Chen
b0cbfe1988 kernel: Fixing kernel_perf and kernel_zfs build issue
For 'build_perf_' and 'build_zfs_' targets in the Makefile,
since both of them are dependends on the build_$(2)$(3) target,
So, we pull the image with DCT as part of the dependency on build_$(2)$(3)
and then build with DOCKER_CONTENT_TRUST explicitly set to 0.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2017-11-23 10:34:54 +00:00
Rolf Neugebauer
bc185996f9 example: Update kernel in examples/cadvisor
The PR adding cadvisor overlapped with the kernel updates. This
brings the example back in line.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-22 19:36:57 +00:00
Rolf Neugebauer
ddcc98c3fe
Merge pull request #2736 from Wolphin-project/cadvisor
cAdvisor
2017-11-22 19:35:30 +00:00
Rolf Neugebauer
bf64d238db
Merge pull request #2768 from rn/circle
Minor tweaks to CircleCI config
2017-11-22 10:59:54 +00:00
Rolf Neugebauer
61ce897d72
Merge pull request #2767 from rn/kern-up
Update kernels (multiple times) and add security related configs
2017-11-22 10:48:08 +00:00
Rolf Neugebauer
6af06e5c25
Merge pull request #2765 from RobbKistler/docs-fix
docs: minor fixes for use of `-data`
2017-11-22 00:24:31 +00:00
Rolf Neugebauer
763e5e317f circle: use .exe as extension for Windows binary
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 19:56:57 +00:00
Rolf Neugebauer
592d0fd7c5 circle: Add batch to README.md
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 19:56:56 +00:00
Rolf Neugebauer
464a46d74a Update YAML files to latest kernels.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 17:19:42 +00:00
Rolf Neugebauer
06689b5d68 tests: Add kernel module tests for all supported kernels
Also add libelf-dev as this is needed for ORC_UNWINDER. While this is only
a feature of 4.14.x we added it to all Dockerfiles to keep things in synch.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 17:14:19 +00:00
Rolf Neugebauer
6ede240737 kernel: Update to 4.14.1/4.13.15/4.9.64/4.4.100
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 17:05:35 +00:00
Rolf Neugebauer
57226034e6 kernel: Move KEYS_COMPAT
Commit 31c8c4942820 ("security/keys: add CONFIG_KEYS_COMPAT
to Kconfig") moved the KEYS_COMPAT config option to a different
section. Adjust config file.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 15:55:47 +00:00
Rolf Neugebauer
f5e970b7fb kernel: Update to 4.13.14/4.9.63/4.4.99
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 15:54:15 +00:00
Rolf Neugebauer
717829ea89 kernel: Don't build a debug kernel for 4.13
We already have too many kernels to build and 4.13 will be EOLed soon

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 15:53:34 +00:00
Rolf Neugebauer
f79c392ce3 kernel: Enable REFCOUNT_FULL on kernels supporting it
REFCOUNT_FULL enables full reference count validation. There is a
potential slow down but ti protects against certain use-after-free
attacks.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
66342d0646 kernel: Enable GCC_PLUGIN_RANDSTRUCT on kernels supporting it
On 4.13 and 4.14 kernels GCC_PLUGIN_RANDSTRUCT can be use to randomise
some kernel data structures such as structs with function pointers.

We also select GCC_PLUGIN_RANDSTRUCT_PERFORMANCE which
tries harder to restrict randomisation to cache-lines in order to reduce
performance impact.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
8d16426644 kernel: Enable GCC_PLUGIN_STRUCTLEAK on kernels supporting it
The 4.13 and 4.14 kernels support GCC_PLUGIN_STRUCTLEAK, a GCC plugin
to zero initialise any structures with the __user attribute to prevent
information exposure.

On 4.14 kernels also enable GCC_PLUGIN_STRUCTLEAK_BYREF_ALL which is
an extension of the above

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
b0db43567e kernel: Enable GCC_PLUGIN on kernels supporting it
Subsequent commits will enable selected sub options.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
2c1fdc7b47 kernel: Use latest linuxkit/alpine and install mpc1-dev/mpfr-dev
The GCC_PLUGINS config options enabled in the next commits
require mpc1-dev/mpfr-dev

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
eb9a5604a8 tools/alpine: Add mpc1-dev/mpfr-dev
These are needed to enable GCC_PLUGINS for the Linux kernel build.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Rolf Neugebauer
5995d9a10d kernel: Fix Dockerfile.kbuild
Patches were not applied and this fixes it as well as tidying
up the error handling.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-21 14:02:33 +00:00
Marco Mariani
e871cd693e examples/cadvisor.yml
Signed-off-by: Marco Mariani <marco.mariani@alterway.fr>
2017-11-21 13:49:19 +01:00
Marco Mariani
959b6dd96d pkg/cadvisor
Signed-off-by: Marco Mariani <marco.mariani@alterway.fr>
2017-11-21 13:46:42 +01:00
Rolf Neugebauer
3184572403
Merge pull request #2764 from riyazdf/signing-init-script
signing: add init script and public certificate fixtures
2017-11-21 12:27:12 +00:00
Justin Cormack
83522d81fd
Merge pull request #2761 from justincormack/restore-build
Restore linuxkit build
2017-11-21 10:21:39 +00:00