mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
docker-test: use containerd installed from package
In commits [1, 2] the version of containerd installed by default in the GitHub CI virtual environment was replaced with the latest release from GitHub as a workaround to a bug in containerd. This bug has been fixed sometime ago and the current default version of containerd (1.6.6) does not require this workaround. However, with the latest release, the containerd binaries uploaded on GitHub have been built for Ubuntu 22.04 [3]. Our tests are still running on Ubuntu 20.04 and this results in the following error: /usr/bin/containerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/bin/containerd) /usr/bin/containerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/bin/containerd) [1] https://github.com/checkpoint-restore/criu/commit/046cad8 [2] https://github.com/checkpoint-restore/criu/commit/81a68ad [3] https://github.com/containerd/containerd/commit/6b2dc9a37 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
committed by
Andrei Vagin
parent
750acec25f
commit
f9bc0a750a
@@ -21,24 +21,14 @@ add-apt-repository \
|
||||
|
||||
. /etc/lsb-release
|
||||
|
||||
# docker checkpoint and restore is an experimental feature
|
||||
echo '{ "experimental": true }' > /etc/docker/daemon.json
|
||||
service docker restart
|
||||
|
||||
CRIU_LOG='/criu.log'
|
||||
mkdir -p /etc/criu
|
||||
echo "log-file=$CRIU_LOG" > /etc/criu/runc.conf
|
||||
|
||||
service docker stop
|
||||
systemctl stop containerd.service
|
||||
|
||||
# Always use the latest containerd release.
|
||||
# Restore with containerd versions after v1.2.14 and before v1.5.0-beta.0 are broken.
|
||||
# https://github.com/checkpoint-restore/criu/issues/1223
|
||||
CONTAINERD_DOWNLOAD_URL=$(curl -s https://api.github.com/repos/containerd/containerd/releases/latest | grep '"browser_download_url":.*/containerd-.*-linux-amd64.tar.gz.$' | cut -d\" -f4)
|
||||
wget -nv "$CONTAINERD_DOWNLOAD_URL" -O - | tar -xz -C /usr/
|
||||
|
||||
systemctl restart containerd.service
|
||||
service docker restart
|
||||
|
||||
export SKIP_CI_TEST=1
|
||||
|
||||
./run-ci-tests.sh
|
||||
|
Reference in New Issue
Block a user