Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit cee64b9

Browse files
committed
Add tools 6/ #2983
1 parent 74f79c9 commit cee64b9

15 files changed

+190
-0
lines changed

tools/havener/Dockerfile.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://github.com/homeport/havener/releases/download/v${version}/havener_${version}_linux_${alt_arch}.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
12+
havener
13+
"${prefix}${target}/bin/havener" completion bash >"${prefix}${target}/share/bash-completion/completions/havener"
14+
"${prefix}${target}/bin/havener" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/havener.fish"
15+
"${prefix}${target}/bin/havener" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_havener"
16+
EOF

tools/havener/manifest.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: havener
2+
version: 2.0.8
3+
check: ${binary} version | cut -d, -f1 | cut -d' ' -f3
4+
tags:
5+
- type/tui
6+
- kubernetes
7+
- management
8+
homepage: https://github.com/homeport/havener
9+
description: Think of it as a swiss army knife for Kubernetes tasks
10+
renovate:
11+
datasource: github-releases
12+
package: homeport/havener
13+
extractVersion: ^v(?<version>.+?)$

tools/havener/post_install.sh

Whitespace-only changes.

tools/hcloud/Dockerfile.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://github.com/hetznercloud/cli/releases/download/v${version}/hcloud-linux-${alt_arch}.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
12+
hcloud
13+
"${prefix}${target}/bin/hcloud" completion bash >"${prefix}${target}/share/bash-completion/completions/hcloud"
14+
"${prefix}${target}/bin/hcloud" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/hcloud.fish"
15+
"${prefix}${target}/bin/hcloud" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_hcloud"
16+
EOF

tools/hcloud/manifest.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: hcloud
2+
version: 1.30.3
3+
check: ${binary} version | cut -d' ' -f2
4+
tags:
5+
- cloud/hetzner
6+
- type/cli
7+
- management
8+
homepage: https://github.com/hetznercloud/cli
9+
description: command-line interface for Hetzner Cloud
10+
renovate:
11+
datasource: github-releases
12+
package: hetznercloud/cli
13+
extractVersion: ^v(?<version>.+?)$
14+
download:
15+
- url: https://github.com/hetznercloud/cli/releases/download/v${version}/hcloud-linux-${alt_arch}.tar.gz
16+
type: tarball
17+
files:
18+
- hcloud
19+
post_install: |
20+
echo "Install completion"
21+
"${binary}" completion bash >"${target}/share/bash-completion/completions/${name}"
22+
"${binary}" completion fish >"${target}/share/fish/vendor_completions.d/${name}.fish"
23+
"${binary}" completion zsh >"${target}/share/zsh/vendor-completions/_${name}"

tools/hcloud/post_install.sh

Whitespace-only changes.

tools/helm/Dockerfile.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://get.helm.sh/helm-v${version}-linux-${alt_arch}.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}${target}/bin" --strip-components=1 --no-same-owner \
12+
linux-amd64/helm
13+
"${prefix}${target}/bin/helm" completion bash >"${prefix}${target}/share/bash-completion/completions/helm"
14+
"${prefix}${target}/bin/helm" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/helm.fish"
15+
"${prefix}${target}/bin/helm" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_helm"
16+
EOF

tools/helm/manifest.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: helm
2+
version: 3.9.4
3+
check: ${binary} version --short | cut -d+ -f1 | tr -d v
4+
tags:
5+
- type/cli
6+
- kubernetes
7+
- templating
8+
- package
9+
- management
10+
homepage: https://github.com/helm/helm
11+
description: The Kubernetes Package Manager
12+
renovate:
13+
datasource: github-releases
14+
package: helm/helm
15+
extractVersion: ^v(?<version>.+?)$

tools/helm/post_install.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
if test -z "${prefix}"; then
4+
echo "Install plugins"
5+
plugins=(
6+
https://github.com/mstrzele/helm-edit
7+
https://github.com/databus23/helm-diff
8+
https://github.com/aslafy-z/helm-git
9+
https://github.com/sstarcher/helm-release
10+
https://github.com/maorfr/helm-backup
11+
https://github.com/technosophos/helm-keybase
12+
https://github.com/technosophos/helm-gpg
13+
https://github.com/cloudogu/helm-sudo
14+
https://github.com/bloodorangeio/helm-oci-mirror
15+
https://github.com/UniKnow/helm-outdated
16+
https://github.com/rimusz/helm-chartify
17+
https://github.com/random-dwi/helm-doc
18+
https://github.com/sapcc/helm-outdated-dependencies
19+
https://github.com/jkroepke/helm-secrets
20+
https://github.com/sigstore/helm-sigstore
21+
https://github.com/quintush/helm-unittest
22+
)
23+
for url in "${plugins[@]}"; do
24+
directory="$(basename "${url}")"
25+
if test -d "${HOME}/.local/share/helm/plugins/${directory}"; then
26+
name="${directory//helm-/}"
27+
helm plugin update "${name}"
28+
else
29+
helm plugin install "${url}"
30+
fi
31+
done
32+
fi

tools/helmfile/Dockerfile.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location --output "${prefix}${target}/bin/helmfile" \
11+
"https://github.com/roboll/helmfile/releases/download/v${version}/helmfile_linux_${alt_arch}"
12+
chmod +x "${prefix}${target}/bin/helmfile"
13+
curl --silent --location --output "${prefix}${target}/share/bash-completion/completions/helmfile" \
14+
"https://github.com/roboll/helmfile/raw/v${version}/autocomplete/helmfile_bash_autocomplete"
15+
curl --silent --location --output "${prefix}${target}/share/zsh/vendor-completions/_helmfile" \
16+
"https://github.com/roboll/helmfile/raw/v${version}/autocomplete/helmfile_zsh_autocomplete"
17+
EOF

0 commit comments

Comments
 (0)