-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #493 from AkihiroSuda/ci-fedora35
Ci: update Fedora to 35; update BuildKit (v0.9.2); update docs; nits
- Loading branch information
Showing
9 changed files
with
31 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
931d8bb6b461a396c54ed2ce4fa48a2d5eafeb6985a97823e39e549bc89bec27 buildkit-v0.9.2.linux-amd64.tar.gz | ||
d97d1e0380d715777875b3acf5b7d2d67b715b983b4827a385eb99f372f9538d buildkit-v0.9.2.linux-arm64.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
# Vagrant box for testing cgroup v2 | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "fedora/34-cloud-base" | ||
config.vm.box = "fedora/35-cloud-base" | ||
memory = 4096 | ||
cpus = 2 | ||
config.vm.provider :virtualbox do |v| | ||
|
@@ -28,33 +28,19 @@ Vagrant.configure("2") do |config| | |
fi | ||
GOARCH=amd64 | ||
# Install RPMs (TODO: remove fuse-overlayfs after release of Fedora 34) | ||
dnf install -y \ | ||
make \ | ||
containerd \ | ||
containernetworking-plugins \ | ||
iptables \ | ||
slirp4netns \ | ||
fuse-overlayfs \ | ||
openssl | ||
systemctl enable --now containerd | ||
# Install RootlessKit | ||
ROOTLESSKIT_VERSION=0.14.2 | ||
ROOTLESSKIT_VERSION=0.14.5 | ||
curl -sSL https://github.com/rootless-containers/rootlesskit/releases/download/v${ROOTLESSKIT_VERSION}/rootlesskit-$(uname -m).tar.gz | tar Cxzv /usr/local/bin | ||
# Install containerd-fuse-overlayfs (required on SELinux hosts: https://github.com/moby/moby/issues/42333) | ||
CONTAINERD_FUSE_OVERLAYFS_VERSION=1.0.2 | ||
curl -sSL https://github.com/containerd/fuse-overlayfs-snapshotter/releases/download/v${CONTAINERD_FUSE_OVERLAYFS_VERSION}/containerd-fuse-overlayfs-${CONTAINERD_FUSE_OVERLAYFS_VERSION}-linux-${GOARCH}.tar.gz | tar Cxzv /usr/local/bin | ||
mkdir -p /home/vagrant/.config/containerd | ||
cat <<EOF >/home/vagrant/.config/containerd/config.toml | ||
[proxy_plugins] | ||
[proxy_plugins."fuse-overlayfs"] | ||
type = "snapshot" | ||
address = "/run/user/$(id -u vagrant)/containerd-fuse-overlayfs.sock" | ||
EOF | ||
chown -R vagrant /home/vagrant/.config | ||
# Delegate cgroup v2 controllers | ||
mkdir -p /etc/systemd/system/[email protected] | ||
cat <<EOF >/etc/systemd/system/[email protected]/delegate.conf | ||
|