From 223e685cf5d2244d8c8f40b0a89e0a349d59c636 Mon Sep 17 00:00:00 2001 From: Alan Hanson Date: Sun, 26 Jun 2022 05:40:47 +0000 Subject: [PATCH 1/2] Script to populate a lab host with images --- tools/populate/populate-images.sh | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100755 tools/populate/populate-images.sh diff --git a/tools/populate/populate-images.sh b/tools/populate/populate-images.sh new file mode 100755 index 00000000000..df073eed2a1 --- /dev/null +++ b/tools/populate/populate-images.sh @@ -0,0 +1,100 @@ +#!/bin/bash + +# Populate an Oxide lab host running Omicron with images from server catacomb. + +res=0 +echo "Populating debian" +oxide api /images --method POST --input - < Date: Tue, 28 Jun 2022 18:31:50 +0000 Subject: [PATCH 2/2] PR comments --- tools/populate/populate-images.sh | 50 ++++++++----------------------- 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/tools/populate/populate-images.sh b/tools/populate/populate-images.sh index df073eed2a1..9f845e09e05 100755 --- a/tools/populate/populate-images.sh +++ b/tools/populate/populate-images.sh @@ -1,7 +1,8 @@ #!/bin/bash - # Populate an Oxide lab host running Omicron with images from server catacomb. +set -eu +CATACOMB_TUNNEL="[fd00:1122:3344:101::1]:8080" res=0 echo "Populating debian" oxide api /images --method POST --input - <