mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-29 17:42:47 +00:00
migrate download commands into bash script and update doc
This commit is contained in:
@@ -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
|
||||
|
||||
1
oracle/images/.gitignore
vendored
1
oracle/images/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
image_metadata.json
|
||||
*.qcow2
|
||||
*.oci
|
||||
*.xz
|
||||
16
oracle/scripts/download
Executable file
16
oracle/scripts/download
Executable 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
|
||||
Reference in New Issue
Block a user