mirror of
https://github.com/containers/youki
synced 2024-11-26 06:08:07 +01:00
3f08ae7167
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
21 lines
492 B
Bash
Executable File
21 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
docker run --privileged -dq \
|
|
--name youki-test-dind \
|
|
-v $ROOT/youki:/usr/bin/youki \
|
|
-v $ROOT/tests/dind/daemon.json:/etc/docker/daemon.json \
|
|
docker:dind > /dev/null
|
|
|
|
trap "docker rm -f youki-test-dind > /dev/null" EXIT
|
|
|
|
# wait for docker to start
|
|
timeout 30s \
|
|
grep -q -m1 "/var/run/docker.sock" \
|
|
<(docker logs -f youki-test-dind 2>&1)
|
|
|
|
docker exec -i youki-test-dind \
|
|
docker run -q --runtime=youki hello-world
|