Skip to content

Commit 7f786d3

Browse files
authored
Add test(s) for nerdctl (#34506)
🤖 generated for as part of [expanding package test coverage](#13623) Signed-off-by: Josh Wolf <josh@wolfs.io>
1 parent 1d12058 commit 7f786d3

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

nerdctl.yaml

+23-4
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,27 @@ update:
3434
strip-prefix: v
3535

3636
test:
37+
environment:
38+
contents:
39+
packages:
40+
- containerd
41+
- iptables
42+
- curl
43+
- coreutils
3744
pipeline:
38-
# AUTOGENERATED
39-
- runs: |
40-
nerdctl --version
41-
nerdctl --help
45+
- name: "Configure and start containerd"
46+
runs: |
47+
mkdir -p /etc/containerd
48+
cat > /etc/containerd/config.toml << EOF
49+
version = 2
50+
[plugins."io.containerd.grpc.v1.cri"]
51+
snapshotter = ""
52+
EOF
53+
54+
containerd &
55+
sleep 5 # Give containerd time to start
56+
57+
nerdctl info
58+
59+
# don't unpack, we're using a fake containerd
60+
nerdctl pull --unpack=false cgr.dev/chainguard/wolfi-base:latest

0 commit comments

Comments
 (0)