summaryrefslogtreecommitdiff
path: root/debian/vyos-1x-smoketest.postinst
diff options
context:
space:
mode:
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"