refactor: replace all wget commands with curl
Standardize download commands across all build scripts: - HashiCorp packages: wget -O → curl -o - VictoriaMetrics packages: wget -O → curl -o - Other packages: wget -O → curl -o, wget → curl -O - Update dependency lists to use curl instead of wget This change provides consistency across all packages and uses a single download tool.
This commit is contained in:
parent
46016bae5c
commit
f125d59935
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract consul-cni
|
||||
wget -O /app/consul-cni.zip https://releases.hashicorp.com/consul-cni/${PACKAGE_VERSION}/consul-cni_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/consul-cni.zip https://releases.hashicorp.com/consul-cni/${PACKAGE_VERSION}/consul-cni_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip consul-cni.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract consul
|
||||
wget -O /app/consul.zip https://releases.hashicorp.com/consul/${PACKAGE_VERSION}/consul_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/consul.zip https://releases.hashicorp.com/consul/${PACKAGE_VERSION}/consul_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip consul.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -24,14 +24,14 @@ dnf install -y \
|
||||
bash-completion \
|
||||
gettext \
|
||||
help2man \
|
||||
wget
|
||||
curl
|
||||
|
||||
# Download and extract incus source
|
||||
wget -O /app/incus.tar.gz https://github.com/lxc/incus/archive/refs/tags/v${PACKAGE_VERSION}.tar.gz
|
||||
curl -o /app/incus.tar.gz https://github.com/lxc/incus/archive/refs/tags/v${PACKAGE_VERSION}.tar.gz
|
||||
tar -C /app -xf incus.tar.gz
|
||||
|
||||
# Install specific Go version
|
||||
wget https://go.dev/dl/go1.24.1.linux-amd64.tar.gz
|
||||
curl -O https://go.dev/dl/go1.24.1.linux-amd64.tar.gz
|
||||
rm -rf /usr/local/go
|
||||
tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract nomad-autoscaler
|
||||
wget -O /app/nomad-autoscaler.zip https://releases.hashicorp.com/nomad-autoscaler/${PACKAGE_VERSION}/nomad-autoscaler_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/nomad-autoscaler.zip https://releases.hashicorp.com/nomad-autoscaler/${PACKAGE_VERSION}/nomad-autoscaler_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip nomad-autoscaler.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract nomad
|
||||
wget -O /app/nomad.zip https://releases.hashicorp.com/nomad/${PACKAGE_VERSION}/nomad_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/nomad.zip https://releases.hashicorp.com/nomad/${PACKAGE_VERSION}/nomad_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip nomad.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the pre-built RPM from GitHub releases
|
||||
wget -O /app/dist/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm \
|
||||
curl -o /app/dist/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm \
|
||||
https://github.com/nzbgetcom/nzbget/releases/download/v$PACKAGE_VERSION/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract packer
|
||||
wget -O /app/packer.zip https://releases.hashicorp.com/packer/${PACKAGE_VERSION}/packer_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/packer.zip https://releases.hashicorp.com/packer/${PACKAGE_VERSION}/packer_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip packer.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract terraform
|
||||
wget -O /app/terraform.zip https://releases.hashicorp.com/terraform/${PACKAGE_VERSION}/terraform_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/terraform.zip https://releases.hashicorp.com/terraform/${PACKAGE_VERSION}/terraform_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip terraform.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
# Download and extract unrar (with version formatting)
|
||||
export DOWNLOAD_VERSION=$(echo $PACKAGE_VERSION | sed s/\\.//)
|
||||
wget -O /app/rarlinux.tar.gz https://www.rarlab.com/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz
|
||||
curl -o /app/rarlinux.tar.gz https://www.rarlab.com/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz
|
||||
tar xf /app/rarlinux.tar.gz
|
||||
mv /app/rar/unrar /app/
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
dnf install -y unzip
|
||||
|
||||
# Download and extract vault
|
||||
wget -O /app/vault.zip https://releases.hashicorp.com/vault/${PACKAGE_VERSION}/vault_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
curl -o /app/vault.zip https://releases.hashicorp.com/vault/${PACKAGE_VERSION}/vault_${PACKAGE_VERSION}_linux_amd64.zip
|
||||
unzip vault.zip
|
||||
|
||||
# Build the RPM
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download and extract victoria-logs
|
||||
wget -O /app/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
curl -o /app/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
tar xf victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download and extract vlutils
|
||||
wget -O /app/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
curl -o /app/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
tar xf vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the required files
|
||||
wget -O /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
curl -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the required files
|
||||
wget -O /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
curl -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the required files
|
||||
wget -O /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
curl -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the required files
|
||||
wget -O /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
curl -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download the required files
|
||||
wget -O /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
curl -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Download and extract vmutils
|
||||
wget -O /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
curl -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||
https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user