Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: make crictl install faster and independent of CRI-O
Browse files Browse the repository at this point in the history
Fixes: #1777

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
  • Loading branch information
saschagrunert committed Jul 2, 2019
1 parent 66ecddf commit 6b8f0df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .ci/install_crio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,9 @@ then
fi

echo "Get CRI Tools"
critools_repo="${kubernetes_sigs_org}/cri-tools"
go get "$critools_repo" || true
pushd "${GOPATH}/src/${critools_repo}"
critools_version=$(grep "ENV CRICTL_COMMIT" "${GOPATH}/src/${crio_repo}/Dockerfile" | cut -d " " -f3)
git checkout "${critools_version}"
go install ./cmd/crictl
sudo install "${GOPATH}/bin/crictl" /usr/bin
popd
crictl_version=$(get_test_version "externals.critools.version")
wget -qO- https://github.com/kubernetes-sigs/cri-tools/releases/download/$crictl_version/crictl-$crictl_version-linux-"$(.ci/kata-arch.sh -g)".tar.gz \
| tar xfz - -C /usr/bin

echo "Installing CRI-O"
make clean
Expand Down
3 changes: 3 additions & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ externals:
description: "GNU parallel tool"
url: "https://ftp.gnu.org/gnu/parallel"
version: "20190222"

critools:
version: v1.14.0

0 comments on commit 6b8f0df

Please sign in to comment.