Skip to content

Commit

Permalink
Merge pull request cri-o#7619 from saschagrunert/conmon
Browse files Browse the repository at this point in the history
Update conmon to v2.1.10
  • Loading branch information
openshift-merge-bot[bot] authored Dec 22, 2023
2 parents 4e230f2 + e1f8510 commit 5449a58
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request:
env:
GO_VERSION: '1.21'
CONMON_BINARY: /usr/local/bin/conmon # from: scripts/github-actions-setup
permissions:
contents: read

Expand Down
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies:
match: version

- name: conmon
version: v2.1.8
version: v2.1.10
refPaths:
- path: scripts/versions
match: conmon
Expand Down
16 changes: 9 additions & 7 deletions scripts/github-actions-setup
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ main() {
install_buildah
}

curl_retry() {
sudo curl -sSfL --retry 5 --retry-delay 3 "$@"
}

prepare_system() {
sudo systemctl stop docker || true
sudo ufw disable || true
Expand Down Expand Up @@ -59,16 +63,14 @@ install_bats() {
}

install_conmon() {
git clone https://github.com/containers/conmon
pushd conmon
git checkout "${VERSIONS["conmon"]}"
sudo make PREFIX=/ all install.bin
popd
sudo rm -rf conmon
CONMON_BINARY=/usr/local/bin/conmon
curl_retry "https://github.com/containers/conmon/releases/download/${VERSIONS["conmon"]}/conmon.$GOARCH" \
-o $CONMON_BINARY
sudo chmod +x $CONMON_BINARY
}

install_conmonrs() {
curl -sSfL --retry 5 --retry-delay 3 https://raw.githubusercontent.com/containers/conmon-rs/main/scripts/get |
curl_retry https://raw.githubusercontent.com/containers/conmon-rs/main/scripts/get |
sudo -E PATH="$PATH" bash -s -- -a "$GOARCH" -o /usr/bin/conmonrs
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/versions
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
# Versions to be used
declare -A VERSIONS=(
["cni-plugins"]=v1.4.0
["conmon"]=v2.1.8
["conmon"]=v2.1.10
["conmon-rs"]=v0.6.1
["cri-tools"]=v1.29.0
["runc"]=v1.1.9
Expand Down

0 comments on commit 5449a58

Please sign in to comment.