7087 Commits

Author SHA1 Message Date
Jeremi Piotrowski
2062cbd480 dev-lang/go: remove go1.13 and go1.7 ebuilds
These are no longer used by anything in the tree, after removing old versions
of docker-runc/docker-proxy/containerd.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-24 13:24:00 +00:00
Jeremi Piotrowski
1bc53bf39c app-emulation/docker-runc: remove old version
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-24 13:24:00 +00:00
Jeremi Piotrowski
28f2b152e4 app-emulation/docker-runc: switch to building with go1.16
Upstream builds with go1.16. Additionally fixup the VERSION variable specify the
current Flatcar Docker version 20.10.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-24 13:24:00 +00:00
Jeremi Piotrowski
194291a6e3 app-emulation/docker-proxy: remove old versions
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-24 13:24:00 +00:00
Jeremi Piotrowski
2d352084ec app-emulation/docker-proxy: switch to building with go1.16
Upstream builds go through github.com/docker/docker repo and that builds
with go1.16 with module support disabled.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-24 13:23:18 +00:00
Jeremi Piotrowski
9116ccf8ea app-emulation/containerd: remove old versions
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-20 11:31:47 +02:00
Jeremi Piotrowski
d98781487a app-emulation/containerd: switch to building with go1.16
Upstream builds with go1.16 too.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-20 11:31:44 +02:00
Jeremi Piotrowski
e80bee6629 app-emulation/docker-cli: remove GO_BUILDTAGS setting
We now build with go1.16 and the go1.16 tag does not show up anywhere in
the cli repo.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-20 11:31:39 +02:00
Jeremi Piotrowski
ff2481c2ed app-emulation/docker{,-cli}: switch to go1.16
Upstream has switched to go 1.16, but still doesn't use go modules. The ebuilds
needed fixing up after the automated PR was created.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-18 11:49:49 +02:00
Flatcar Buildbot
a6aa1a604d app-emulation: Upgrade Docker 20.10.7 to 20.10.8 2021-08-18 07:44:50 +00:00
Kai Lueke
a8352fc7a9 Compile Azure OEM contents for all boards
While not used at the moment we still can lift the restriction to only
compile for the amd64 board.
2021-08-16 18:52:37 +02:00
Flatcar Buildbot
97a3d1282a sys-kernel: Upgrade Kernel 5.10.58 to 5.10.59 2021-08-16 07:11:04 +00:00
Sayan Chowdhury
df7015f381 Merge pull request #1189 from kinvolk/sayan/update-systemd-247.9
sys-apps/systemd: Updates to v247.9
2021-08-13 17:40:01 +05:30
Dongsu Park
ae77d17c80 Merge pull request #1183 from kinvolk/dongsu/mit-krb5-1.19.2
app-crypt/mit-krb5: update to 1.19.2
2021-08-13 11:23:42 +02:00
Flatcar Buildbot
f877517682 sys-kernel: Upgrade Kernel 5.10.57 to 5.10.58 2021-08-13 07:10:35 +00:00
Dongsu Park
7685839a2e app-crypt/mit-krb5: add warn-crossbuild.patch
Set PYTHON_COMPAT to python 3.6 and 3.7 to be suitable for the current
code base.

Add a custom patch to replace error with warning when running autoconf
for cross builds, because libkrb5 is not able to detect
cross-compilation.

Based on 64e33c9f826d8fd951fd58ba1ed70debaf65be8d .
2021-08-13 08:54:02 +02:00
Dongsu Park
78fd33033f app-crypt/mit-krb5: update to 1.19.2
Update app-crypt/mit-krb5 to 1.19.2 mainly to address CVE-2021-36222.

Gentoo ref: cce302e49bbc62cbce863f756ea8252e57259a99
2021-08-13 08:54:02 +02:00
Dongsu Park
075ef5dbe6 Merge pull request #1148 from kinvolk/containerd-1.5.5-main
Upgrade Containerd in main from 1.5.4 to 1.5.5
2021-08-13 08:49:34 +02:00
Sayan Chowdhury
977e6d9845 Merge pull request #1176 from kinvolk/linux-5.10.57-main
Upgrade Linux Kernel in main from 5.10.56 to 5.10.57
2021-08-13 00:06:30 +05:30
Sayan Chowdhury
f977110d3d sys-apps/systemd: Updates to v247.9
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-08-13 00:01:24 +05:30
Flatcar Buildbot
bb01f17d4a app-emulation: Upgrade Containerd 1.5.4 to 1.5.5 2021-08-12 17:46:22 +02:00
Jeremi Piotrowski
faf23d9488 Merge pull request #931 from jepio/for-main/cgroupv2+docker-20.10
Move to unified cgroupv2 hierarchy and upgrade Docker to 20.10.
2021-08-12 17:33:08 +02:00
Jeremi Piotrowski
56e10bb557 app-emulation/containerd: add config file for use during migration
The SystemdCgroup=true setting is incompatible with kubelet
cgroupDriver: cgroupfs. So to prevent kube clusters from failing, we
will be freezing a nodes config.toml during an update. For that purpose,
we install a second configuration file that can then be selected using a
systemd drop-in unit.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 15:29:34 +00:00
Mathieu Tortuyaux
fbeae5cc8e Merge pull request #1181 from kinvolk/tormath1/fix-flannel-selinux
sec-policy/selinux-virt: add rules to run `flannel` with SELinux enforced mode
2021-08-12 15:37:32 +02:00
Jeremi Piotrowski
ea7cfa336e coreos-base/coreos-init: add motd warning when cgroupv1 is found
This pulls in https://github.com/kinvolk/init/pull/44

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
db724e4706 coreos-base/update_engine: add postinstall hook to stay on cgroupv1
This pulls in https://github.com/kinvolk/update_engine/pull/13

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
330595c9d0 sys-apps/systemd: Switch to unified cgroup hierarchy
Now that Docker has been updated to 20.10, we can use cgroupv2 so have
systemd mount the unified cgroup hierarchy by default. Other ways of
achieving the same would have been to pass 'systemd.unified_cgroup_hierarchy=1'
on the kernel cmdline, but this way the change propagates nicely to all
OEM consumers.

Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
61cac349d9 app-torcx/docker: Remove torcx packages for older docker versions
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
eff02fb3f0 .github: Adapt docker-release-main action to Docker 20
The upstream docker repository location has changed to docker/docker.
Additionally, the cli component has been split out which which requires
fetching two hashes and updating two ebuilds. We also took the chance to
align the ebuild with gentoo's, which means there are is no more live ebuild
and no symlink.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
6e085a168e coreos-base/flatcar-eks: update supported kubernetes versions for cgroupv2
We are switching flatcar to cgroupv2 which is support by docker 20.10 and
kubernetes 1.19. This requires setting the systemd cgroup driver in the kubelet
config.

Due to the unified cgroup hierarchy, kubernetes <1.19 will not work so
remove all older versions.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
31c8a6afe8 app-torcx/docker: Add a Docker 20.10 torcx image
Compared to previous torcx images the docker-cli package is a separate
package, following upstream Docker repo layout changes.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 12:00:39 +00:00
Jeremi Piotrowski
742c507270 app-emulation/docker: Apply Flatcar patches
The patches do the following:

* install flatcar specific wrappers and systemd config
* force some USE flags to default on
* allow injecting CFLAGS/LDFLAGS so that torcx can work
* force building with go1.13 (like upstream does) - this won't be
  necessary next time because docker master already uses go1.16
2021-08-12 09:58:56 +00:00
Jeremi Piotrowski
ee672bcdb9 app-emulation/docker: Sync from Gentoo
For update to docker-20.10.7.

gentoo/portage commit 0ed05ce0a8f0d1c3dfa6151e7ebb25b67c4aae16

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 09:58:53 +00:00
Jeremi Piotrowski
eb6661756d app-emulation/docker-proxy: Update to 0.8.0_p20210525
This is the version needed by docker 20.10.7. ROADMAP.md doesn't exist so it
has been removed from src_install.

Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
2021-08-12 09:57:03 +00:00
Jeremi Piotrowski
30a116d2e7 app-emulation/docker-proxy: Freeze version 0.8.0_p20180709
This is the version used by docker-19.03. We will be updating the live
ebuild to build docker 20.10 dependencies.

Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
2021-08-12 09:57:03 +00:00
Jeremi Piotrowski
817ad4c0db app-emulation/docker-cli: Apply Flatcar patches
We use coreos-go* eclass so that we can override several environment
variables and build with the same go version as docker upstream. These
changes are modeled after what was previously done in app-emulation/docker,
the cli ebuild has only been split out since v20.10.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 09:57:03 +00:00
Jeremi Piotrowski
b93160fedf app-emulation/docker-cli: Import from Gentoo
Docker upstream split the cli component into a separate repo, so there is
a separate ebuild that builds the docker utility. This is a prerequisite
of the update of docker to 20.10.

This is an import from portage commit 69d01a4273a556b1205a7a575cb3811ab7e2443d.

Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
2021-08-12 09:57:03 +00:00
Flatcar Buildbot
906e4c99d3 sys-process/tini: Apply Flatcar patches
We use a custom build system to remove the cmake dependency and hardcode
relevant configuration.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 09:57:03 +00:00
Jeremi Piotrowski
5b4f80d2b2 sys-process/tini: Sync with Gentoo upstream
For tini-0.19. Upstream commit 2e10a957da8a8a93c1f5d82011e3f6692f7b765c.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-12 09:57:03 +00:00
Kai Lüke
1da2d646da Merge pull request #1180 from kinvolk/kai/new-subkey
coreos-base/coreos-init: embed new subkey in flatcar-install
2021-08-12 11:30:16 +02:00
Dongsu Park
e724ec668b Merge pull request #1169 from kinvolk/runc-1.0.1-main
Upgrade Runc in main from 1.0.0 to 1.0.1
2021-08-12 10:51:15 +02:00
Dongsu Park
bdd9f29187 app-emulation/docker-runc: remove obsolete comments
Now that runc version follows simple semver semantics, we do not have to
care about number of patches up to an rc version. Remove the obsolete
comments.
2021-08-12 10:04:07 +02:00
Sayan Chowdhury
75f9c43ee0 Merge pull request #1171 from kinvolk/sayan/move-expat-to-portage
dev-libs/expat: Remove patches and move to portage-stable
2021-08-12 09:47:10 +05:30
Kai Lueke
c9e7e6d245 coreos-base/coreos-init: embed new subkey in flatcar-install
This pulls in
https://github.com/kinvolk/init/pull/45
but from a backport branch "flatcar-2905-backport".
2021-08-11 18:15:55 +02:00
Mathieu Tortuyaux
8e0014e814 sec-policy/selinux-virt: allow flannel to write into /run
flannel will write into /run/flannel/... so we need to provide
correct labelling for dir created by docker daemon

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-08-11 17:53:58 +02:00
Mathieu Tortuyaux
0cde021595 sec-policy/selinux-virt: allow flanneld to load module
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-08-11 17:50:29 +02:00
Dongsu Park
abf87f84dd Merge pull request #1160 from kinvolk/rust-1.54.0-main
Upgrade dev-lang/rust in main from 1.53.0 to 1.54.0
2021-08-11 17:06:12 +02:00
Mathieu Tortuyaux
5c5b78cb8d sec-policy/selinux-virt: fix flannel CNI creation
flannel uses an init container to pull CNI from container to the host
system in `/etc/cni`.
With SELinux, the permission is denied because `/etc/cni` is labelled
with `etc_t` so it can't be access by Docker since it expects `svirt_lxc_file_t`.

Using `filetrans_pattern` we can define a mechanism to create `/etc/cni`
with the correct labels even if it's not yet created - which avoid to
run `restorecon` on `/etc/cni`.

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-08-11 16:24:54 +02:00
Flatcar Buildbot
06b6e84d5c app-emulation: Upgrade Runc 1.0.0 to 1.0.1 2021-08-10 14:23:03 +02:00
Kai Lüke
37e0e8d92c Merge pull request #1170 from kinvolk/kai/sssd-faillock
sys-apps/baselayout: fix sssd LDAP auth with sudo
2021-08-09 17:40:11 +02:00