Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
ci: install docker 19.03 for arm64 to let build image go
Browse files Browse the repository at this point in the history
"make proto" will fail on arm64 using docker 18.06. This bug will be
gone if using docker 19.03. so upgrade docker before "make proto"
for arm64.

Fixes: #861
Signed-off-by: Jianyong Wu <[email protected]>
  • Loading branch information
jongwu committed Oct 29, 2020
1 parent 5cfb8ec commit eaa3709
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,27 @@ set -e
cidir=$(dirname "$0")
source "${cidir}/lib.sh"

install_docker() {
docker_version=${docker_version:-19.03}
pkg_name="docker-ce"
repo_url="https://download.docker.com/linux/ubuntu"
curl -fsSL "${repo_url}/gpg" | sudo apt-key add -
sudo -E add-apt-repository "deb [arch=${arch}] ${repo_url} $(lsb_release -cs) stable"
sudo -E apt-get update
docker_version_full=$(apt-cache madison $pkg_name | grep "$docker_version" | awk '{print $3}' | head -1)
sudo -E apt-get -y install "${pkg_name}=${docker_version_full}"
}

pushd "${tests_repo_dir}"
.ci/run.sh
testcidir=$(dirname "$0")

if [ $arch == "arm64" ]; then
command -v docker >/dev/null 2>&1 && "${testcidir}/../cmd/container-manager/manage_ctr_mgr.sh" docker remove
echo "reinstall docker 19.03 for arm64"
install_docker 19.03
fi

echo "Starting docker service before making proto"
sudo systemctl start docker

Expand Down

0 comments on commit eaa3709

Please sign in to comment.