Skip to content

Commit

Permalink
hetzner cloud cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Jan 4, 2025
1 parent df49f7f commit 33c80f5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2024 Nils Knieling. All Rights Reserved.
# Copyright 2022 - 2025 Nils Knieling. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,6 +52,7 @@ ENV AWS_CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" \
FUEGO_URL="https://github.com/sgarciac/fuego/archive/refs/tags/${FUEGO_VERSION}.tar.gz" \
GCLOUD_URL="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz" \
GCR_CLEANER_URL="https://github.com/GoogleCloudPlatform/gcr-cleaner/releases/download/v${GCR_CLEANER_VERSION}/gcr-cleaner-cli_${GCR_CLEANER_VERSION}_linux_amd64.tar.gz" \
HCLOUD_URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz" \
OPA_URL="https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static" \
TERRAGRUNT_URL="https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64" \
TFDOC_URL="https://github.com/terraform-docs/terraform-docs/releases/download/v${TFDOC_VERSION}/terraform-docs-v${TFDOC_VERSION}-linux-amd64.tar.gz" \
Expand All @@ -64,6 +65,7 @@ ENV AWS_CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" \
FUEGO_URL="https://github.com/sgarciac/fuego/archive/refs/tags/${FUEGO_VERSION}.tar.gz" \
GCLOUD_URL="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-arm.tar.gz" \
GCR_CLEANER_URL="https://github.com/GoogleCloudPlatform/gcr-cleaner/releases/download/v${GCR_CLEANER_VERSION}/gcr-cleaner-cli_${GCR_CLEANER_VERSION}_linux_arm64.tar.gz" \
HCLOUD_URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-arm64.tar.gz" \
OPA_URL="https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_arm64_static" \
TERRAGRUNT_URL="https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_arm64" \
TFDOC_URL="https://github.com/terraform-docs/terraform-docs/releases/download/v${TFDOC_VERSION}/terraform-docs-v${TFDOC_VERSION}-linux-arm64.tar.gz" \
Expand Down Expand Up @@ -163,6 +165,12 @@ RUN uname -m && \
tar -xf "gcr-cleaner-cli.tar.gz" "gcr-cleaner-cli" && \
mv "gcr-cleaner-cli" "/usr/bin/gcr-cleaner-cli" && \
rm "gcr-cleaner-cli.tar.gz" && \
# Hetzner Cloud CLI (https://github.com/hetznercloud/cli)
echo "Hetzner Cloud CLI URL: '$HCLOUD_URL'" && \
curl -L "$HCLOUD_URL" -o "hcloud-linux.tar.gz" && \
tar -xf "hcloud-linux.tar.gz" "hcloud" && \
mv "hcloud" "/usr/bin/hcloud" && \
rm "hcloud-linux.tar.gz" && \
# terraform-docs (https://github.com/terraform-docs/terraform-docs)
echo "terraform-docs URL: '$TFDOC_URL'" && \
curl -L "$TFDOC_URL" -o "terraform-docs.tar.gz" && \
Expand Down Expand Up @@ -225,6 +233,7 @@ RUN uname -m && \
gcr-cleaner-cli -version && \
git --version && \
go version && \
hcloud version && \
helm version && \
kubectl version --client && \
lsb_release -a && \
Expand Down
11 changes: 10 additions & 1 deletion devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Nils Knieling. All Rights Reserved.
# Copyright 2024 - 2025 Nils Knieling. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -46,6 +46,7 @@ ENV AWS_CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" \
FUEGO_URL="https://github.com/sgarciac/fuego/archive/refs/tags/${FUEGO_VERSION}.tar.gz" \
GCLOUD_URL="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz" \
GCR_CLEANER_URL="https://github.com/GoogleCloudPlatform/gcr-cleaner/releases/download/v${GCR_CLEANER_VERSION}/gcr-cleaner-cli_${GCR_CLEANER_VERSION}_linux_amd64.tar.gz" \
HCLOUD_URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz" \
OPA_URL="https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static" \
TERRAGRUNT_URL="https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64" \
TFDOC_URL="https://github.com/terraform-docs/terraform-docs/releases/download/v${TFDOC_VERSION}/terraform-docs-v${TFDOC_VERSION}-linux-amd64.tar.gz" \
Expand All @@ -58,6 +59,7 @@ ENV AWS_CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" \
FUEGO_URL="https://github.com/sgarciac/fuego/archive/refs/tags/${FUEGO_VERSION}.tar.gz" \
GCLOUD_URL="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-arm.tar.gz" \
GCR_CLEANER_URL="https://github.com/GoogleCloudPlatform/gcr-cleaner/releases/download/v${GCR_CLEANER_VERSION}/gcr-cleaner-cli_${GCR_CLEANER_VERSION}_linux_arm64.tar.gz" \
HCLOUD_URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-arm64.tar.gz" \
OPA_URL="https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_arm64_static" \
TERRAGRUNT_URL="https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_arm64" \
TFDOC_URL="https://github.com/terraform-docs/terraform-docs/releases/download/v${TFDOC_VERSION}/terraform-docs-v${TFDOC_VERSION}-linux-arm64.tar.gz" \
Expand Down Expand Up @@ -168,6 +170,12 @@ RUN uname -m && \
tar -xf "gcr-cleaner-cli.tar.gz" "gcr-cleaner-cli" && \
mv "gcr-cleaner-cli" "/usr/bin/gcr-cleaner-cli" && \
rm "gcr-cleaner-cli.tar.gz" && \
# Hetzner Cloud CLI (https://github.com/hetznercloud/cli)
echo "Hetzner Cloud CLI URL: '$HCLOUD_URL'" && \
curl -L "$HCLOUD_URL" -o "hcloud-linux.tar.gz" && \
tar -xf "hcloud-linux.tar.gz" "hcloud" && \
mv "hcloud" "/usr/bin/hcloud" && \
rm "hcloud-linux.tar.gz" && \
# terraform-docs (https://github.com/terraform-docs/terraform-docs)
curl -L "$TFDOC_URL" -o "terraform-docs.tar.gz" && \
tar -xf "terraform-docs.tar.gz" "terraform-docs" && \
Expand Down Expand Up @@ -227,6 +235,7 @@ RUN uname -m && \
gcr-cleaner-cli -version && \
git --version && \
go version && \
hcloud version && \
helm version && \
kubectl version --client && \
lsb_release -a && \
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ MY_COMMANDS=(
"gcr-cleaner-cli -version"
"git --version"
"go version"
"hcloud version"
"helm version"
"kubectl help"
"lsb_release -a"
Expand Down
10 changes: 9 additions & 1 deletion workstations/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Nils Knieling. All Rights Reserved.
# Copyright 2024 - 2025 Nils Knieling. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,6 +45,7 @@ ENV LANG="C.UTF-8" \
ENV AWS_CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" \
FUEGO_URL="https://github.com/sgarciac/fuego/archive/refs/tags/${FUEGO_VERSION}.tar.gz" \
GCR_CLEANER_URL="https://github.com/GoogleCloudPlatform/gcr-cleaner/releases/download/v${GCR_CLEANER_VERSION}/gcr-cleaner-cli_${GCR_CLEANER_VERSION}_linux_amd64.tar.gz" \
HCLOUD_URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz" \
OPA_URL="https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static" \
TERRAGRUNT_URL="https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64" \
TFDOC_URL="https://github.com/terraform-docs/terraform-docs/releases/download/v${TFDOC_VERSION}/terraform-docs-v${TFDOC_VERSION}-linux-amd64.tar.gz" \
Expand Down Expand Up @@ -144,6 +145,12 @@ RUN uname -m && \
tar -xf "gcr-cleaner-cli.tar.gz" "gcr-cleaner-cli" && \
mv "gcr-cleaner-cli" "/usr/bin/gcr-cleaner-cli" && \
rm "gcr-cleaner-cli.tar.gz" && \
# Hetzner Cloud CLI (https://github.com/hetznercloud/cli)
echo "Hetzner Cloud CLI URL: '$HCLOUD_URL'" && \
curl -L "$HCLOUD_URL" -o "hcloud-linux.tar.gz" && \
tar -xf "hcloud-linux.tar.gz" "hcloud" && \
mv "hcloud" "/usr/bin/hcloud" && \
rm "hcloud-linux.tar.gz" && \
# terraform-docs (https://github.com/terraform-docs/terraform-docs)
curl -L "$TFDOC_URL" -o "terraform-docs.tar.gz" && \
tar -xf "terraform-docs.tar.gz" "terraform-docs" && \
Expand Down Expand Up @@ -223,6 +230,7 @@ RUN uname -m && \
gcr-cleaner-cli -version && \
git --version && \
go version && \
hcloud version && \
helm version && \
kubectl version --client && \
lsb_release -a && \
Expand Down

0 comments on commit 33c80f5

Please sign in to comment.