mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-11-02 03:08:34 +00:00
migrate download commands into bash script and update doc
This commit is contained in:
@@ -26,11 +26,7 @@ It creats:
|
|||||||
## Upload images
|
## Upload images
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd images
|
./scripts/download
|
||||||
|
|
||||||
# fixme, url does not exist yet
|
|
||||||
wget https://$url -O oracle-amd64.qcow2
|
|
||||||
wget https://$url -O oracle-arm64.qcow2
|
|
||||||
|
|
||||||
terraform init
|
terraform init
|
||||||
terraform apply
|
terraform apply
|
||||||
|
|||||||
1
oracle/images/.gitignore
vendored
1
oracle/images/.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
image_metadata.json
|
image_metadata.json
|
||||||
*.qcow2
|
*.qcow2
|
||||||
*.oci
|
*.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