-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #3753 from AkihiroSuda/ci-lima
CI: VM: switch away from Vagrant to Lima
- Loading branch information
Showing
4 changed files
with
60 additions
and
72 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 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,18 @@ | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
# Ensure network-related modules to be loaded | ||
modprobe tap ip_tables iptable_nat ip6_tables ip6table_nat | ||
|
||
# The moby-engine package included in Fedora lacks support for rootless, | ||
# So we need to install docker-ce and docker-ce-rootless-extras from the upstream. | ||
curl -fsSL https://get.docker.com | sh | ||
dnf install -y golang-go make kubernetes-client podman docker-ce-rootless-extras | ||
systemctl enable --now docker | ||
|
||
# Configuration for rootless: https://kind.sigs.k8s.io/docs/user/rootless/ | ||
mkdir -p "/etc/systemd/system/[email protected]" | ||
cat <<EOF >"/etc/systemd/system/[email protected]/delegate.conf" | ||
[Service] | ||
Delegate=yes | ||
EOF | ||
systemctl daemon-reload |
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