summaryrefslogtreecommitdiff
path: root/debian/vyos-1x-smoketest.postinst
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-30 22:23:05 +0100
committerChristian Poessinger <christian@poessinger.com>2022-12-30 22:28:25 +0100
commit0c8b53e6f7a94e914a7815328bbd16c0b3943d40 (patch)
treeeba692b6f044b54db55fa079f3460b4ed920a38b /debian/vyos-1x-smoketest.postinst
parent4bab998b4e7fe6eca57a3fe9ffba2d2be8f123b2 (diff)
downloadvyos-1x-0c8b53e6f7a94e914a7815328bbd16c0b3943d40.tar.gz
vyos-1x-0c8b53e6f7a94e914a7815328bbd16c0b3943d40.zip
container: T578: backport podman from 1.4 development branch
Diffstat (limited to 'debian/vyos-1x-smoketest.postinst')
-rwxr-xr-xdebian/vyos-1x-smoketest.postinst10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/vyos-1x-smoketest.postinst b/debian/vyos-1x-smoketest.postinst
new file mode 100755
index 000000000..18612804c
--- /dev/null
+++ b/debian/vyos-1x-smoketest.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+BUSYBOX_TAG="docker.io/library/busybox:stable"
+OUTPUT_PATH="/usr/share/vyos/busybox-stable.tar"
+
+if [[ -f $OUTPUT_PATH ]]; then
+ rm -f $OUTPUT_PATH
+fi
+
+skopeo copy --additional-tag "$BUSYBOX_TAG" "docker://$BUSYBOX_TAG" "docker-archive:/$OUTPUT_PATH"