summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-10-30 07:55:03 +0100
committerGitHub <noreply@github.com>2022-10-30 07:55:03 +0100
commit25a60f3d91307eefa02ee3fabbe675f4c4cb4bd4 (patch)
treeed7b9af063603163c45d240d6271aa6c35a39f31
parentbdb83dec6d76dabe391fb2dc5445ac6ddfc8f20a (diff)
parent5f186754fe54e9a5b0f7cdea1b295778ddd6796a (diff)
downloadvyos-build-25a60f3d91307eefa02ee3fabbe675f4c4cb4bd4.tar.gz
vyos-build-25a60f3d91307eefa02ee3fabbe675f4c4cb4bd4.zip
Merge pull request #270 from sarthurdev/containers
containers: T2216: Include busybox container image for smoketest
-rw-r--r--data/build-types/development.toml1
-rwxr-xr-xdata/live-build-config/hooks/live/41-init-podman-images.chroot8
2 files changed, 9 insertions, 0 deletions
diff --git a/data/build-types/development.toml b/data/build-types/development.toml
index f0207a6a..31c50522 100644
--- a/data/build-types/development.toml
+++ b/data/build-types/development.toml
@@ -2,6 +2,7 @@ packages = [
"gdb",
"strace",
"apt-rdepends",
+ "skopeo",
"tshark",
"vim",
"vyos-1x-smoketest"
diff --git a/data/live-build-config/hooks/live/41-init-podman-images.chroot b/data/live-build-config/hooks/live/41-init-podman-images.chroot
new file mode 100755
index 00000000..1915a40f
--- /dev/null
+++ b/data/live-build-config/hooks/live/41-init-podman-images.chroot
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Download busybox container image for smoketests (only ~1MB)
+# Skopeo only added on development builds
+
+if command -v skopeo &>/dev/null; then
+ skopeo copy --additional-tag docker.io/library/busybox:stable docker://docker.io/library/busybox:stable docker-archive://usr/share/vyos/busybox-stable.tar
+fi