Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: install runc rc92
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed May 5, 2021
1 parent 5d05cdf commit 9b874b5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions parts/k8s/cloud-init/artifacts/cse_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ removeContainerd() {
mobyPkgVersion() {
dpkg -s "${1}" | grep "Version:" | awk '{ print $2 }' | cut -d '+' -f 1
}
installRunc() {
local v
v=$(runc --version | head -n 1 | cut -d" " -f3)
if [[ $v != "1.0.0-rc92" ]]; then
apt_get_install 20 30 120 moby-runc=1.0.0~rc92* --allow-downgrades || exit 27
fi
}
installMoby() {
local install_pkgs="" v cli_ver="${MOBY_VERSION}"
v="$(mobyPkgVersion moby-containerd)"
Expand Down
1 change: 1 addition & 0 deletions parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ time_metric "InstallContainerd" installContainerd
{{else}}
time_metric "installMoby" installMoby
{{end}}
time_metric "installRunc" installRunc
{{- if HasLinuxMobyURL}}
LINUX_MOBY_URL={{GetLinuxMobyURL}}
if [[ -n "${LINUX_MOBY_URL:-}" ]]; then
Expand Down
8 changes: 8 additions & 0 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b874b5

Please sign in to comment.