migrate download commands into bash script and update doc

This commit is contained in:
Richard Worwood
2023-11-17 10:20:27 +00:00
committed by Serge
parent aea43c1c5e
commit f0474de236
3 changed files with 18 additions and 5 deletions

View File

@@ -26,11 +26,7 @@ It creats:
## Upload images
```shell
cd images
# fixme, url does not exist yet
wget https://$url -O oracle-amd64.qcow2
wget https://$url -O oracle-arm64.qcow2
./scripts/download
terraform init
terraform apply

View File

@@ -1,3 +1,4 @@
image_metadata.json
*.qcow2
*.oci
*.xz

16
oracle/scripts/download Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
dest="./images"
version="1.5.5"
url=https://github.com/siderolabs/talos/releases/download/v${version}/
for arch in amd64 arm64
do
file=oracle-${arch}.qcow2.xz
echo "Downloading ${file} to ${dest}/${file}"
curl -L ${url}/${file} -o ${dest}/${file}
echo "Extracting: ${dest}/${file}"
xz -df ${dest}/${file}
echo
done