Skip to content

Commit

Permalink
migrate download commands into bash script and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Worwood authored and sergelogvinov committed Nov 17, 2023
1 parent aea43c1 commit f0474de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 1 addition & 5 deletions oracle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions oracle/images/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
image_metadata.json
*.qcow2
*.oci
*.xz
16 changes: 16 additions & 0 deletions oracle/scripts/download
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f0474de

Please sign in to comment.