Skip to content

Commit

Permalink
Merge pull request #4291 from c-po/tacacs-smoketest-improvement
Browse files Browse the repository at this point in the history
Debian: T7023: download smoketest container images only once
  • Loading branch information
c-po authored Jan 10, 2025
2 parents 726dcee + ea6b77f commit 9f6a986
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions debian/vyos-1x-smoketest.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

BUSYBOX_TAG="docker.io/library/busybox:stable"
BUSYBOX_PATH="/usr/share/vyos/busybox-stable.tar"
if [[ -f $BUSYBOX_PATH ]]; then
rm -f $BUSYBOX_PATH
if [[ ! -f $BUSYBOX_PATH ]]; then
skopeo copy --additional-tag "$BUSYBOX_TAG" "docker://$BUSYBOX_TAG" "docker-archive:/$BUSYBOX_PATH"
fi
skopeo copy --additional-tag "$BUSYBOX_TAG" "docker://$BUSYBOX_TAG" "docker-archive:/$BUSYBOX_PATH"

TACPLUS_TAG="docker.io/lfkeitel/tacacs_plus:alpine"
TACPLUS_PATH="/usr/share/vyos/tacplus-alpine.tar"
if [[ -f $TACPLUS_PATH ]]; then
rm -f $TACPLUS_PATH
if [[ ! -f $TACPLUS_PATH ]]; then
skopeo copy --additional-tag "$TACPLUS_TAG" "docker://$TACPLUS_TAG" "docker-archive:/$TACPLUS_PATH"
fi
skopeo copy --additional-tag "$TACPLUS_TAG" "docker://$TACPLUS_TAG" "docker-archive:/$TACPLUS_PATH"

0 comments on commit 9f6a986

Please sign in to comment.