-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: run SELinux tests with Rocky Linux 8
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
- Loading branch information
1 parent
8ae7a0e
commit 2310166
Showing
3 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
GO_VERSION=1.21.3 | ||
HUGO_VERSION=0.114.0 | ||
LIMA_VERSION=0.20.1 |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Set up Docker (with SELinux enabled) and cri-tools, for EL-like distributions | ||
set -eux -o pipefail | ||
|
||
setenforce 1 | ||
|
||
echo "Installing Docker (with SELinux enabled)" | ||
mkdir -p /etc/docker | ||
cat <<EOF >/etc/docker/daemon.json | ||
{"selinux-enabled": true} | ||
EOF | ||
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | ||
dnf install -y docker-ce git golang make | ||
sudo systemctl enable --now docker | ||
|
||
echo "Installing cri-tools" | ||
git clone https://github.com/kubernetes-sigs/cri-tools.git | ||
(cd cri-tools && make && make install) |