Skip to content

Commit

Permalink
Update SELinux golang version (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwneisen authored Mar 8, 2024
1 parent 178ed78 commit bec33b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ jobs:
run: |
limactl start --name=default --plain template://rocky-8
mkdir -p -m 0700 ~/.ssh
cat ~/.lima/default/ssh.config >>~/.ssh/config
cat ~/.lima/default/ssh.config >> ~/.ssh/config
- run: rsync -a -e ssh src/github.com/Mirantis/cri-dockerd/ lima-default:/tmp/cri-dockerd
- run: ssh lima-default sudo /tmp/cri-dockerd/scripts/setup-el
- run: ssh lima-default make -C /tmp/cri-dockerd cri-dockerd
- run: ssh lima-default "export PATH=$PATH:/usr/local/go/bin && make -C /tmp/cri-dockerd cri-dockerd"
- run: ssh -f lima-default sudo /tmp/cri-dockerd/cri-dockerd --network-plugin="" &
- run: ssh lima-default sudo /usr/local/bin/critest -runtime-endpoint=unix:///var/run/cri-dockerd.sock -ginkgo.focus='.*selinux.*' -ginkgo.v
9 changes: 8 additions & 1 deletion scripts/setup-el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ mkdir -p /etc/docker
cat <<EOF >/etc/docker/daemon.json
{"selinux-enabled": true}
EOF

echo "Installing Golang"
curl -O https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

echo "Installing other dependencies"
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y docker-ce git golang make
dnf install -y docker-ce git make
sudo systemctl enable --now docker

echo "Installing cri-tools"
Expand Down

0 comments on commit bec33b1

Please sign in to comment.