From d750b244e2d4cdea67d6227c5f6ff9da535ef12d Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Sun, 1 Sep 2024 21:37:57 +0200 Subject: [PATCH] Added download cache --- .github/workflows/check.yml | 42 +++++ .github/workflows/tag.yml | 2 +- @template/Dockerfile.template | 88 +++++++---- renovate.json | 2 +- scripts/rebuild-all.sh | 66 ++++++++ scripts/rewrite-add-download-cache.sh | 68 ++++++++ tools/acorn/Dockerfile.template | 13 +- tools/acr/Dockerfile.template | 6 +- tools/act/Dockerfile.template | 14 +- tools/actions-runner/Dockerfile.template | 14 +- tools/actions-usage/Dockerfile.template | 17 +- tools/age/Dockerfile.template | 14 +- tools/ah/Dockerfile.template | 14 +- tools/aiac/Dockerfile.template | 14 +- tools/air/Dockerfile.template | 14 +- tools/alertmanager/Dockerfile.template | 14 +- tools/alex/Dockerfile.template | 4 +- tools/ansi/Dockerfile.template | 16 +- tools/apk/Dockerfile.template | 16 +- tools/apko/Dockerfile.template | 2 +- tools/aqua/Dockerfile.template | 14 +- tools/argo/Dockerfile.template | 2 +- tools/argocd/Dockerfile.template | 17 +- tools/arkade/Dockerfile.template | 17 +- tools/artifactory-cleanup/Dockerfile.template | 14 +- tools/asciigraph/Dockerfile.template | 14 +- tools/asciinema/Dockerfile.template | 2 +- tools/autocert/Dockerfile.template | 29 ++-- tools/aws/Dockerfile.template | 2 +- tools/aws2/Dockerfile.template | 16 +- tools/axel/Dockerfile.template | 18 ++- tools/az/Dockerfile.template | 2 +- tools/bandwhich/Dockerfile.template | 14 +- tools/bat/Dockerfile.template | 14 +- tools/bento/Dockerfile.template | 6 +- tools/bento/manifest.yaml | 2 +- tools/bicep/Dockerfile.template | 19 ++- tools/bif/Dockerfile.template | 14 +- tools/bin/Dockerfile.template | 3 +- tools/blackbox-exporter/Dockerfile.template | 14 +- tools/blincus/Dockerfile.template | 17 +- tools/bogrod/Dockerfile.template | 4 +- tools/bom/Dockerfile.template | 16 +- tools/bomber/Dockerfile.template | 14 +- tools/bomshell/Dockerfile.template | 17 +- tools/botsay/Dockerfile.template | 6 +- tools/box/Dockerfile.template | 19 ++- tools/bpftool/Dockerfile.template | 35 +++-- tools/bubblewrap/Dockerfile.template | 18 ++- tools/buildah/Dockerfile.template | 16 +- tools/buildg/Dockerfile.template | 14 +- tools/buildkit/Dockerfile.template | 14 +- tools/buildx/Dockerfile.template | 17 +- tools/bumblebee/Dockerfile.template | 17 +- tools/bypass4netns/Dockerfile.template | 6 +- tools/caddy/Dockerfile.template | 14 +- tools/cadvisor/Dockerfile.template | 17 +- tools/calicoctl/Dockerfile.template | 17 +- tools/car/Dockerfile.template | 14 +- tools/cascadia-code/Dockerfile.template | 14 +- tools/catatonit/Dockerfile.template | 17 +- tools/catgpt/Dockerfile.template | 14 +- tools/cdebug/Dockerfile.template | 14 +- tools/cdncheck/Dockerfile.template | 15 +- tools/cdxgen/Dockerfile.template | 2 +- tools/cfssl/Dockerfile.template | 14 +- tools/chainsaw/Dockerfile.template | 31 ++-- tools/charm/Dockerfile.template | 14 +- tools/chart-releaser/Dockerfile.template | 14 +- tools/chart-testing/Dockerfile.template | 14 +- tools/cheat/Dockerfile.template | 2 +- tools/checkov/Dockerfile.template | 4 +- tools/chekr/Dockerfile.template | 14 +- tools/chigo/Dockerfile.template | 14 +- tools/chisel/Dockerfile.template | 2 +- tools/cilium/Dockerfile.template | 14 +- tools/cinf/Dockerfile.template | 14 +- tools/civo/Dockerfile.template | 14 +- tools/click/Dockerfile.template | 14 +- tools/clive/Dockerfile.template | 14 +- tools/cloudflared/Dockerfile.template | 17 +- tools/clusterawsadm/Dockerfile.template | 17 +- tools/clusterctl/Dockerfile.template | 17 +- tools/clusterlint/Dockerfile.template | 14 +- tools/cmctl/Dockerfile.template | 17 +- tools/cni/Dockerfile.template | 2 +- tools/cnitool/Dockerfile.template | 2 +- tools/cntr/Dockerfile.template | 17 +- tools/cobra-cli/Dockerfile.template | 2 +- tools/cockroach/Dockerfile.template | 2 +- tools/code-server/Dockerfile.template | 13 +- tools/coder/Dockerfile.template | 14 +- tools/colima/Dockerfile.template | 17 +- tools/compose-bridge/Dockerfile.template | 17 +- tools/composer/Dockerfile.template | 19 ++- tools/composerize/Dockerfile.template | 2 +- tools/concourse/Dockerfile.template | 14 +- tools/conftest/Dockerfile.template | 14 +- tools/conmon/Dockerfile.template | 4 +- tools/container2wasm/Dockerfile.template | 14 +- .../Dockerfile.template | 14 +- .../Dockerfile.template | 14 +- .../Dockerfile.template | 14 +- .../containerd-shim-spin/Dockerfile.template | 10 +- .../Dockerfile.template | 12 +- .../Dockerfile.template | 12 +- .../Dockerfile.template | 12 +- tools/containerd-shim-wws/Dockerfile.template | 14 +- tools/containerd/Dockerfile.template | 18 ++- tools/containers-common/Dockerfile.template | 2 +- tools/containers-image/Dockerfile.template | 2 +- tools/containers-storage/Dockerfile.template | 2 +- tools/containerssh/Dockerfile.template | 14 +- tools/copa/Dockerfile.template | 14 +- tools/cosign/Dockerfile.template | 65 ++++---- tools/cowsay/Dockerfile.template | 14 +- tools/crane/Dockerfile.template | 14 +- tools/cri-dockerd/Dockerfile.template | 14 +- tools/cri-o/Dockerfile.template | 33 ++-- tools/crictl/Dockerfile.template | 14 +- tools/croc/Dockerfile.template | 14 +- tools/cross/Dockerfile.template | 14 +- tools/crossplane/Dockerfile.template | 15 +- tools/crun/Dockerfile.template | 2 +- tools/csvlens/Dockerfile.template | 2 +- tools/ct/Dockerfile.template | 2 +- tools/ct_server/Dockerfile.template | 2 +- tools/ctop/Dockerfile.template | 17 +- tools/cue/Dockerfile.template | 14 +- tools/curl/Dockerfile.template | 18 ++- tools/curlie/Dockerfile.template | 14 +- tools/cve-bin-tool/Dockerfile.template | 2 +- tools/cvemap/Dockerfile.template | 15 +- tools/cyclonedx-cli/Dockerfile.template | 17 +- tools/cyclonedx-gomod/Dockerfile.template | 14 +- tools/cypher-shell/Dockerfile.template | 13 +- tools/dagger/Dockerfile.template | 14 +- tools/dart/Dockerfile.template | 14 +- tools/dasel/Dockerfile.template | 17 +- tools/datree/Dockerfile.template | 20 ++- tools/daytona/Dockerfile.template | 17 +- tools/dbui/Dockerfile.template | 14 +- tools/dcp/Dockerfile.template | 2 +- tools/ddosify/Dockerfile.template | 14 +- tools/decktape/Dockerfile.template | 2 +- tools/delta/Dockerfile.template | 2 +- tools/deno/Dockerfile.template | 12 +- tools/dep-tree/Dockerfile.template | 14 +- tools/dependency-check/Dockerfile.template | 14 +- tools/depot/Dockerfile.template | 14 +- tools/devbox/Dockerfile.template | 14 +- tools/devcontainer/Dockerfile.template | 2 +- tools/devpod/Dockerfile.template | 17 +- tools/diffoci/Dockerfile.template | 17 +- tools/dinit/Dockerfile.template | 13 +- tools/direnv/Dockerfile.template | 17 +- tools/distrobox/Dockerfile.template | 13 +- tools/diun/Dockerfile.template | 14 +- tools/dive/Dockerfile.template | 14 +- tools/dnsx/Dockerfile.template | 14 +- tools/docker-base/Dockerfile.template | 14 +- .../docker-compose-switch/Dockerfile.template | 17 +- .../Dockerfile.template | 2 +- tools/docker-compose-v1/Dockerfile.template | 17 +- tools/docker-compose/Dockerfile.template | 17 +- .../Dockerfile.template | 14 +- .../Dockerfile.template | 14 +- .../docker-credential-gcr/Dockerfile.template | 2 +- .../Dockerfile.template | 17 +- .../Dockerfile.template | 14 +- tools/docker-debug/Dockerfile.template | 2 +- tools/docker-desktop/Dockerfile.template | 2 +- tools/docker-gen/Dockerfile.template | 14 +- tools/docker-index/Dockerfile.template | 14 +- tools/docker-init/Dockerfile.template | 2 +- tools/docker-lock/Dockerfile.template | 14 +- tools/docker-machine/Dockerfile.template | 17 +- tools/docker-manpages/Dockerfile.template | 2 +- tools/docker-preview/Dockerfile.template | 34 ++-- tools/docker-sbom/Dockerfile.template | 14 +- tools/docker-scout/Dockerfile.template | 14 +- tools/docker/Dockerfile.template | 36 +++-- tools/dockerfilegraph/Dockerfile.template | 14 +- tools/dockle/Dockerfile.template | 14 +- tools/docuum/Dockerfile.template | 2 +- tools/doggo/Dockerfile.template | 14 +- tools/dot/Dockerfile.template | 2 +- tools/dotenvx/Dockerfile.template | 14 +- tools/dotnet/Dockerfile.template | 2 +- tools/dragonfly/Dockerfile.template | 14 +- tools/dry/Dockerfile.template | 17 +- tools/dua/Dockerfile.template | 14 +- tools/duf/Dockerfile.template | 14 +- tools/duffle/Dockerfile.template | 17 +- tools/dumb-init/Dockerfile.template | 17 +- tools/dummy-broken-dep/Dockerfile.template | 2 +- tools/dummy/Dockerfile.template | 2 +- tools/dyff/Dockerfile.template | 14 +- tools/earthly/Dockerfile.template | 19 ++- tools/ecapture/Dockerfile.template | 14 +- tools/eksctl/Dockerfile.template | 14 +- tools/ekz/Dockerfile.template | 14 +- tools/emoj/Dockerfile.template | 4 +- tools/emojisum/Dockerfile.template | 3 +- tools/envcli/Dockerfile.template | 17 +- tools/envsub/Dockerfile.template | 2 +- tools/esbuild/Dockerfile.template | 14 +- tools/etcd/Dockerfile.template | 14 +- tools/etcdadm/Dockerfile.template | 17 +- tools/exa/Dockerfile.template | 14 +- tools/ezghsa/Dockerfile.template | 17 +- tools/faas-cli/Dockerfile.template | 17 +- tools/faasd/Dockerfile.template | 17 +- tools/falco/Dockerfile.template | 12 +- tools/falcosidekick/Dockerfile.template | 14 +- tools/fastgron/Dockerfile.template | 6 +- tools/fd/Dockerfile.template | 14 +- tools/figlet/Dockerfile.template | 17 +- tools/firecracker/Dockerfile.template | 14 +- tools/firectl/Dockerfile.template | 17 +- tools/firejail/Dockerfile.template | 6 +- tools/flameshow/Dockerfile.template | 6 +- tools/flarectl/Dockerfile.template | 14 +- tools/fleet/Dockerfile.template | 17 +- tools/flux/Dockerfile.template | 14 +- tools/flux2/Dockerfile.template | 14 +- tools/flyctl/Dockerfile.template | 14 +- tools/fontawesome-free/Dockerfile.template | 14 +- tools/footloose/Dockerfile.template | 17 +- tools/forgejo/Dockerfile.template | 10 +- tools/forgit/Dockerfile.template | 2 +- tools/fq/Dockerfile.template | 14 +- tools/frankenphp/Dockerfile.template | 17 +- tools/freeze/Dockerfile.template | 14 +- tools/fregot/Dockerfile.template | 14 +- tools/furyctl/Dockerfile.template | 14 +- .../Dockerfile.template | 14 +- tools/fuse-overlayfs/Dockerfile.template | 17 +- tools/fx/Dockerfile.template | 17 +- tools/fzf/Dockerfile.template | 14 +- tools/gatekeeper/Dockerfile.template | 14 +- tools/gcloud/Dockerfile.template | 15 +- tools/geist-font/Dockerfile.template | 18 ++- tools/gh-copilot/Dockerfile.template | 2 +- tools/gh/Dockerfile.template | 14 +- tools/ghostunnel/Dockerfile.template | 17 +- .../git-credential-gopass/Dockerfile.template | 14 +- .../git-credential-oauth/Dockerfile.template | 14 +- tools/git-filter-repo/Dockerfile.template | 14 +- tools/git-graph/Dockerfile.template | 14 +- tools/git-igitt/Dockerfile.template | 14 +- tools/git-lfs/Dockerfile.template | 14 +- tools/git/Dockerfile.template | 6 +- tools/gita/Dockerfile.template | 2 +- tools/gitea/Dockerfile.template | 2 +- tools/gitjob/Dockerfile.template | 17 +- .../Dockerfile.template | 14 +- tools/gitlab-release/Dockerfile.template | 2 +- tools/gitlab-runner/Dockerfile.template | 14 +- tools/gitlabci-local/Dockerfile.template | 2 +- tools/gitleaks/Dockerfile.template | 14 +- tools/gitoxide/Dockerfile.template | 14 +- tools/gitsign/Dockerfile.template | 59 +++---- tools/gittuf/Dockerfile.template | 17 +- tools/gitui/Dockerfile.template | 14 +- tools/glab/Dockerfile.template | 13 +- tools/glow/Dockerfile.template | 14 +- tools/gnuplot/Dockerfile.template | 15 +- tools/go-mod-upgrade/Dockerfile.template | 14 +- tools/go-modiff/Dockerfile.template | 6 +- tools/go/Dockerfile.template | 17 +- tools/gobump/Dockerfile.template | 6 +- tools/gocryptfs/Dockerfile.template | 14 +- tools/godotenv/Dockerfile.template | 14 +- tools/gojq/Dockerfile.template | 15 +- tools/golangci-lint/Dockerfile.template | 14 +- tools/gomplate/Dockerfile.template | 17 +- tools/gopass/Dockerfile.template | 14 +- tools/goreleaser/Dockerfile.template | 34 ++-- tools/gosec/Dockerfile.template | 14 +- tools/gosu/Dockerfile.template | 17 +- tools/gotestsum/Dockerfile.template | 14 +- tools/govc/Dockerfile.template | 14 +- tools/gox/Dockerfile.template | 2 +- tools/goyacc/Dockerfile.template | 2 +- tools/gptscript/Dockerfile.template | 14 +- tools/gradle/Dockerfile.template | 12 +- tools/grafana-agent/Dockerfile.template | 20 ++- tools/grafana/Dockerfile.template | 14 +- tools/graphviz/Dockerfile.template | 19 ++- tools/gron/Dockerfile.template | 14 +- tools/grpcurl/Dockerfile.template | 14 +- tools/grunt/Dockerfile.template | 2 +- tools/grype/Dockerfile.template | 14 +- tools/gsutil/Dockerfile.template | 2 +- tools/guac/Dockerfile.template | 19 ++- tools/gum/Dockerfile.template | 14 +- tools/gvisor/Dockerfile.template | 17 +- tools/hadolint/Dockerfile.template | 17 +- tools/has/Dockerfile.template | 2 +- tools/havener/Dockerfile.template | 14 +- tools/hcloud/Dockerfile.template | 14 +- tools/helm-plugins/Dockerfile.template | 2 +- tools/helm/Dockerfile.template | 15 +- tools/helmfile/Dockerfile.template | 17 +- tools/helmify/Dockerfile.template | 14 +- tools/hetzner-k3s/Dockerfile.template | 17 +- tools/hexyl/Dockerfile.template | 14 +- tools/hishtory/Dockerfile.template | 17 +- tools/ht/Dockerfile.template | 17 +- tools/htmx/Dockerfile.template | 17 +- tools/httpie/Dockerfile.template | 2 +- tools/httpx/Dockerfile.template | 14 +- tools/hub-tool/Dockerfile.template | 14 +- tools/hub/Dockerfile.template | 14 +- tools/hubble/Dockerfile.template | 14 +- tools/huber/Dockerfile.template | 17 +- tools/hugo/Dockerfile.template | 14 +- tools/hurl/Dockerfile.template | 14 +- tools/hyperfine/Dockerfile.template | 15 +- tools/ignite/Dockerfile.template | 17 +- tools/img/Dockerfile.template | 17 +- tools/imgcrypt/Dockerfile.template | 2 +- tools/imgpkg/Dockerfile.template | 17 +- tools/in-toto/Dockerfile.template | 2 +- tools/incus/Dockerfile.template | 17 +- tools/influx-cli/Dockerfile.template | 13 +- tools/influxdb/Dockerfile.template | 14 +- tools/ingress2gateway/Dockerfile.template | 14 +- tools/inotify-tools/Dockerfile.template | 6 +- tools/inshellisense/Dockerfile.template | 2 +- tools/iptables/Dockerfile.template | 8 +- tools/it-depends/Dockerfile.template | 2 +- tools/jabba/Dockerfile.template | 17 +- tools/jaq/Dockerfile.template | 2 +- tools/jaxb/Dockerfile.template | 12 +- tools/jb/Dockerfile.template | 17 +- tools/jc/Dockerfile.template | 2 +- tools/jenkins-remoting/Dockerfile.template | 15 +- tools/jetbrainsmono/Dockerfile.template | 12 +- tools/jf/Dockerfile.template | 15 +- tools/jfq/Dockerfile.template | 2 +- tools/jj/Dockerfile.template | 14 +- tools/jless/Dockerfile.template | 14 +- tools/jnv/Dockerfile.template | 6 +- tools/jp/Dockerfile.template | 17 +- tools/jq/Dockerfile.template | 17 +- tools/jqp/Dockerfile.template | 14 +- tools/json-exporter/Dockerfile.template | 14 +- tools/jsonata-cli/Dockerfile.template | 2 +- tools/jsonata-cli/manifest.yaml | 4 +- tools/jsonnet/Dockerfile.template | 14 +- tools/jsonplot/Dockerfile.template | 2 +- tools/just/Dockerfile.template | 14 +- tools/jwt/Dockerfile.template | 2 +- tools/jx/Dockerfile.template | 14 +- tools/k0s/Dockerfile.template | 17 +- tools/k0sctl/Dockerfile.template | 17 +- tools/k2d/Dockerfile.template | 2 +- tools/k3d/Dockerfile.template | 17 +- tools/k3s/Dockerfile.template | 17 +- tools/k3sup/Dockerfile.template | 17 +- tools/k6/Dockerfile.template | 14 +- tools/k8s-tew/Dockerfile.template | 17 +- tools/k8senv/Dockerfile.template | 17 +- tools/k8spacket/Dockerfile.template | 4 +- tools/k9s/Dockerfile.template | 14 +- tools/kapp/Dockerfile.template | 17 +- tools/katana/Dockerfile.template | 14 +- tools/kbld/Dockerfile.template | 17 +- tools/kbom/Dockerfile.template | 14 +- tools/kbrew/Dockerfile.template | 14 +- tools/kcount/Dockerfile.template | 14 +- tools/kcp/Dockerfile.template | 29 ++-- tools/kd/Dockerfile.template | 17 +- tools/kdo/Dockerfile.template | 14 +- tools/ketch/Dockerfile.template | 17 +- tools/kexp/Dockerfile.template | 14 +- tools/keybase/Dockerfile.template | 2 +- tools/keyoxide/Dockerfile.template | 2 +- tools/kgctl/Dockerfile.template | 17 +- tools/kind/Dockerfile.template | 17 +- tools/kine/Dockerfile.template | 6 +- tools/kink/Dockerfile.template | 14 +- tools/kitt/Dockerfile.template | 2 +- tools/kitty/Dockerfile.template | 14 +- tools/kluctl/Dockerfile.template | 14 +- tools/kmon/Dockerfile.template | 14 +- tools/kn/Dockerfile.template | 17 +- tools/ko/Dockerfile.template | 14 +- tools/kompose/Dockerfile.template | 17 +- tools/konf/Dockerfile.template | 14 +- tools/kots/Dockerfile.template | 14 +- tools/kp/Dockerfile.template | 17 +- tools/kpt/Dockerfile.template | 14 +- tools/kpxhs/Dockerfile.template | 21 ++- tools/krew/Dockerfile.template | 14 +- tools/kroki-cli/Dockerfile.template | 14 +- tools/ksort/Dockerfile.template | 13 +- tools/ktop/Dockerfile.template | 14 +- tools/ktunnel/Dockerfile.template | 14 +- tools/kube-apiserver/Dockerfile.template | 35 +++-- tools/kube-bench/Dockerfile.template | 14 +- tools/kube-burner/Dockerfile.template | 14 +- .../Dockerfile.template | 35 +++-- tools/kube-linter/Dockerfile.template | 17 +- tools/kube-proxy/Dockerfile.template | 35 +++-- tools/kube-psp-advisor/Dockerfile.template | 14 +- tools/kube-scheduler/Dockerfile.template | 35 +++-- tools/kube-score/Dockerfile.template | 17 +- tools/kube-trigger/Dockerfile.template | 6 +- tools/kubeadm/Dockerfile.template | 35 +++-- tools/kubeaudit/Dockerfile.template | 14 +- tools/kubebox/Dockerfile.template | 2 +- tools/kubebuilder/Dockerfile.template | 17 +- tools/kubeclarity-cli/Dockerfile.template | 14 +- tools/kubecolor/Dockerfile.template | 12 +- tools/kubeconform/Dockerfile.template | 14 +- tools/kubectl-aliases/Dockerfile.template | 2 +- tools/kubectl-build/Dockerfile.template | 14 +- tools/kubectl-free/Dockerfile.template | 17 +- tools/kubectl-plugins/Dockerfile.template | 4 +- tools/kubectl-resources/Dockerfile.template | 14 +- tools/kubectl-ssh-proxy/Dockerfile.template | 14 +- tools/kubectl/Dockerfile.template | 73 +++++---- tools/kubectx/Dockerfile.template | 14 +- tools/kubefire/Dockerfile.template | 19 ++- tools/kubelet/Dockerfile.template | 35 +++-- tools/kubeletctl/Dockerfile.template | 17 +- tools/kubent/Dockerfile.template | 14 +- .../Dockerfile.template | 8 +- tools/kubescape/Dockerfile.template | 14 +- tools/kubeseal/Dockerfile.template | 14 +- tools/kubesec/Dockerfile.template | 14 +- tools/kubeshark/Dockerfile.template | 17 +- tools/kubeswitch/Dockerfile.template | 14 +- tools/kubeval/Dockerfile.template | 14 +- tools/kubo/Dockerfile.template | 16 +- tools/kudo/Dockerfile.template | 14 +- tools/kustomize/Dockerfile.template | 14 +- tools/kustomizer/Dockerfile.template | 14 +- tools/kuttl/Dockerfile.template | 15 +- tools/kwok/Dockerfile.template | 17 +- tools/kyverno/Dockerfile.template | 14 +- tools/lab/Dockerfile.template | 14 +- tools/lazydocker/Dockerfile.template | 14 +- tools/lazygit/Dockerfile.template | 14 +- tools/lazysql/Dockerfile.template | 14 +- tools/lazytrivy/Dockerfile.template | 17 +- tools/lectl/Dockerfile.template | 14 +- tools/lego/Dockerfile.template | 2 +- tools/libbpf/Dockerfile.template | 6 +- tools/libcap-ng/Dockerfile.template | 8 +- tools/libcap/Dockerfile.template | 2 +- tools/libcgroup/Dockerfile.template | 20 ++- tools/libmnl/Dockerfile.template | 10 +- tools/libnftnl/Dockerfile.template | 8 +- tools/libnvidia-container/Dockerfile.template | 8 +- tools/lima/Dockerfile.template | 14 +- tools/linkchecker/Dockerfile.template | 2 +- .../Dockerfile.template | 15 +- tools/linux-kernel-wsl/Dockerfile.template | 15 +- tools/linux-kernel/Dockerfile.template | 15 +- tools/linuxkit/Dockerfile.template | 17 +- tools/localizer/Dockerfile.template | 14 +- tools/loft/Dockerfile.template | 17 +- tools/logcli/Dockerfile.template | 15 +- tools/loki-canary/Dockerfile.template | 14 +- tools/loki/Dockerfile.template | 14 +- tools/lowcharts/Dockerfile.template | 14 +- tools/lsd/Dockerfile.template | 14 +- tools/lstags/Dockerfile.template | 14 +- tools/luet/Dockerfile.template | 17 +- tools/lxroot/Dockerfile.template | 6 +- tools/lz4/Dockerfile.template | 14 +- tools/mage/Dockerfile.template | 14 +- tools/make/Dockerfile.template | 13 +- tools/mani/Dockerfile.template | 13 +- tools/manifest-tool/Dockerfile.template | 14 +- tools/mapcidr/Dockerfile.template | 2 +- tools/markdownlint/Dockerfile.template | 4 +- tools/marvin/Dockerfile.template | 14 +- tools/maven/Dockerfile.template | 14 +- tools/mc/Dockerfile.template | 15 +- tools/mcfly/Dockerfile.template | 14 +- tools/melange/Dockerfile.template | 2 +- tools/melt/Dockerfile.template | 14 +- tools/mergerfs/Dockerfile.template | 14 +- tools/mermaid-cli/Dockerfile.template | 4 +- tools/meteor-commit/Dockerfile.template | 17 +- tools/meteor/Dockerfile.template | 14 +- tools/mgo/Dockerfile.template | 2 +- tools/micro/Dockerfile.template | 14 +- tools/miller/Dockerfile.template | 14 +- tools/mimir/Dockerfile.template | 17 +- tools/mimirtool/Dockerfile.template | 17 +- tools/minder/Dockerfile.template | 14 +- tools/minectl/Dockerfile.template | 14 +- tools/minikube/Dockerfile.template | 17 +- tools/minio/Dockerfile.template | 14 +- tools/mink/Dockerfile.template | 14 +- tools/mint/Dockerfile.template | 14 +- tools/mitmproxy/Dockerfile.template | 13 +- tools/mkcert/Dockerfile.template | 17 +- tools/mkdocs/Dockerfile.template | 2 +- tools/mods/Dockerfile.template | 14 +- tools/monaspace/Dockerfile.template | 12 +- tools/mp3binder/Dockerfile.template | 17 +- tools/mu-repo/Dockerfile.template | 2 +- tools/musl/Dockerfile.template | 18 ++- tools/mutagen-compose/Dockerfile.template | 4 +- tools/mutagen/Dockerfile.template | 18 ++- tools/n8n/Dockerfile.template | 2 +- tools/namespace/Dockerfile.template | 30 +++- tools/nancy/Dockerfile.template | 14 +- tools/navi/Dockerfile.template | 14 +- tools/ncdu/Dockerfile.template | 14 +- tools/neo4j/Dockerfile.template | 15 +- tools/neofetch/Dockerfile.template | 16 +- tools/nerd-fonts/Dockerfile.template | 17 +- tools/nerdctl/Dockerfile.template | 14 +- tools/newman/Dockerfile.template | 2 +- tools/nftables/Dockerfile.template | 8 +- tools/nms/Dockerfile.template | 2 +- tools/node-exporter/Dockerfile.template | 14 +- tools/nodejs-lts/Dockerfile.template | 15 +- tools/nodejs/Dockerfile.template | 14 +- tools/norouter/Dockerfile.template | 14 +- tools/notation/Dockerfile.template | 13 +- tools/npm/Dockerfile.template | 2 +- tools/nsutils/Dockerfile.template | 6 +- tools/nuclei-templates/Dockerfile.template | 15 +- tools/nuclei/Dockerfile.template | 15 +- tools/nushell/Dockerfile.template | 14 +- .../Dockerfile.template | 8 +- tools/nvm/Dockerfile.template | 2 +- tools/nx/Dockerfile.template | 4 +- tools/nydus-snapshotter/Dockerfile.template | 14 +- tools/nydus/Dockerfile.template | 14 +- tools/oc/Dockerfile.template | 14 +- tools/ocb/Dockerfile.template | 17 +- tools/oci-image-tool/Dockerfile.template | 2 +- tools/oci-runtime-tool/Dockerfile.template | 2 +- tools/ocm/Dockerfile.template | 14 +- tools/octopilot/Dockerfile.template | 17 +- tools/octosql/Dockerfile.template | 14 +- tools/ojg/Dockerfile.template | 6 +- tools/ojg/manifest.yaml | 2 - tools/opa/Dockerfile.template | 17 +- tools/openjdk-jre/Dockerfile.template | 14 +- tools/openjdk/Dockerfile.template | 14 +- tools/opentofu/Dockerfile.template | 12 +- tools/oras/Dockerfile.template | 14 +- tools/osquery/Dockerfile.template | 14 +- tools/osv-scanner/Dockerfile.template | 17 +- .../overlaybd-snapshotter/Dockerfile.template | 2 +- tools/overlaybd/Dockerfile.template | 4 +- tools/pack/Dockerfile.template | 14 +- tools/packer/Dockerfile.template | 11 +- tools/pacstall/Dockerfile.template | 2 +- tools/pandoc/Dockerfile.template | 14 +- tools/paranoia/Dockerfile.template | 17 +- tools/parca-agent/Dockerfile.template | 3 +- tools/parca/Dockerfile.template | 14 +- tools/pass-audit/Dockerfile.template | 24 +-- tools/pass-git-helper/Dockerfile.template | 14 +- tools/pass-import/Dockerfile.template | 16 +- tools/pass-otp/Dockerfile.template | 16 +- tools/pass-tail/Dockerfile.template | 16 +- tools/pass-update/Dockerfile.template | 16 +- tools/pass/Dockerfile.template | 15 +- tools/passage/Dockerfile.template | 2 +- tools/passh/Dockerfile.template | 2 +- tools/passt/Dockerfile.template | 8 +- tools/patat/Dockerfile.template | 14 +- tools/pebble/Dockerfile.template | 14 +- tools/perl/Dockerfile.template | 2 +- tools/phive/Dockerfile.template | 19 ++- tools/php/Dockerfile.template | 12 +- tools/pigz/Dockerfile.template | 6 +- tools/pipx/Dockerfile.template | 6 +- tools/podman-docker-shim/Dockerfile.template | 4 +- tools/podman-tui/Dockerfile.template | 2 +- tools/podman/Dockerfile.template | 18 +-- tools/polaris/Dockerfile.template | 14 +- tools/policy/Dockerfile.template | 13 +- tools/pop/Dockerfile.template | 14 +- tools/popeye/Dockerfile.template | 14 +- tools/portainer/Dockerfile.template | 14 +- tools/porter/Dockerfile.template | 17 +- tools/posting/Dockerfile.template | 6 +- tools/powerline-go/Dockerfile.template | 17 +- tools/powershell/Dockerfile.template | 2 +- tools/pre-commit/Dockerfile.template | 2 +- tools/presenterm/Dockerfile.template | 14 +- tools/process-compose/Dockerfile.template | 14 +- tools/procs/Dockerfile.template | 15 +- tools/promcolor/Dockerfile.template | 14 +- tools/prometheus/Dockerfile.template | 14 +- tools/promql-cli/Dockerfile.template | 14 +- tools/promtail/Dockerfile.template | 14 +- tools/promtool/Dockerfile.template | 14 +- tools/proot/Dockerfile.template | 6 +- tools/proxify/Dockerfile.template | 14 +- tools/pulumi/Dockerfile.template | 14 +- tools/purl/Dockerfile.template | 14 +- tools/pushgateway/Dockerfile.template | 14 +- tools/pv/Dockerfile.template | 8 +- tools/pwru/Dockerfile.template | 14 +- tools/python-static/Dockerfile.template | 13 +- tools/python/Dockerfile.template | 12 +- tools/qemu/Dockerfile.template | 6 +- tools/qrencode/Dockerfile.template | 12 +- tools/qsv/Dockerfile.template | 12 +- tools/quarto-full/Dockerfile.template | 2 +- tools/quarto/Dockerfile.template | 2 +- tools/rage/Dockerfile.template | 24 +-- tools/rare/Dockerfile.template | 14 +- tools/redis/Dockerfile.template | 4 +- tools/regal/Dockerfile.template | 17 +- tools/regclient/Dockerfile.template | 17 +- tools/registry/Dockerfile.template | 14 +- tools/rekor/Dockerfile.template | 90 ++++++----- tools/release-cli/Dockerfile.template | 17 +- tools/reptyr/Dockerfile.template | 6 +- tools/reveal.js/Dockerfile.template | 15 +- tools/ripgrep/Dockerfile.template | 21 +-- tools/rke/Dockerfile.template | 17 +- tools/rke2/Dockerfile.template | 13 +- tools/rootlesskit/Dockerfile.template | 14 +- tools/runc/Dockerfile.template | 19 ++- tools/runlike/Dockerfile.template | 2 +- tools/runq/Dockerfile.template | 14 +- tools/runtainer/Dockerfile.template | 17 +- tools/rush/Dockerfile.template | 14 +- tools/rust/Dockerfile.template | 6 +- tools/salami/Dockerfile.template | 17 +- tools/saml2aws/Dockerfile.template | 15 +- tools/sass-dart/Dockerfile.template | 14 +- tools/sass/Dockerfile.template | 2 +- tools/savvy/Dockerfile.template | 17 +- tools/sbom-operator/Dockerfile.template | 29 ++-- tools/sbom-tool/Dockerfile.template | 17 +- tools/sbom-utility/Dockerfile.template | 14 +- tools/sbom2doc/Dockerfile.template | 2 +- tools/sbom2dot/Dockerfile.template | 2 +- tools/sbomasm/Dockerfile.template | 17 +- tools/sbomdiff/Dockerfile.template | 2 +- tools/sbomex/Dockerfile.template | 17 +- tools/sbomgr/Dockerfile.template | 17 +- tools/sbomqs/Dockerfile.template | 17 +- tools/sbomtools/Dockerfile.template | 2 +- tools/sbt/Dockerfile.template | 2 +- tools/scala/Dockerfile.template | 13 +- tools/scc/Dockerfile.template | 14 +- tools/scorecard/Dockerfile.template | 14 +- tools/sd/Dockerfile.template | 14 +- tools/sealer/Dockerfile.template | 14 +- tools/secretize/Dockerfile.template | 14 +- tools/semgrep/Dockerfile.template | 2 +- tools/semver/Dockerfile.template | 15 +- tools/serverless/Dockerfile.template | 4 +- tools/shdotenv/Dockerfile.template | 17 +- tools/shell-gpt/Dockerfile.template | 2 +- tools/shellcheck/Dockerfile.template | 14 +- tools/shiv/Dockerfile.template | 17 +- tools/shortnames/Dockerfile.template | 2 +- tools/sish/Dockerfile.template | 14 +- tools/skate/Dockerfile.template | 14 +- tools/skopeo/Dockerfile.template | 12 +- tools/slides/Dockerfile.template | 14 +- tools/slirp4netns/Dockerfile.template | 17 +- tools/sloop/Dockerfile.template | 2 +- tools/slsa-verifier/Dockerfile.template | 17 +- tools/socat/Dockerfile.template | 15 +- tools/soci-snapshotter/Dockerfile.template | 14 +- tools/soft-serve/Dockerfile.template | 14 +- tools/sonar-scanner/Dockerfile.template | 12 +- tools/sonobuoy/Dockerfile.template | 14 +- tools/sops/Dockerfile.template | 17 +- tools/sotp/Dockerfile.template | 2 +- tools/source-sans/Dockerfile.template | 18 ++- tools/spc/Dockerfile.template | 14 +- tools/spdx-sbom-generator/Dockerfile.template | 14 +- tools/speex/Dockerfile.template | 2 +- tools/speexdsp/Dockerfile.template | 2 +- tools/spiffe-vault/Dockerfile.template | 14 +- tools/spin/Dockerfile.template | 14 +- tools/spire/Dockerfile.template | 24 +-- tools/ssh-key-confirmer/Dockerfile.template | 17 +- tools/ssh3/Dockerfile.template | 14 +- tools/sshocker/Dockerfile.template | 17 +- tools/stargz-snapshotter/Dockerfile.template | 14 +- tools/staticcheck/Dockerfile.template | 14 +- tools/stdin-spinner/Dockerfile.template | 2 +- tools/stern/Dockerfile.template | 14 +- tools/stress-ng/Dockerfile.template | 6 +- tools/structurizr-cli/Dockerfile.template | 13 +- tools/su-exec/Dockerfile.template | 2 +- tools/supdock/Dockerfile.template | 17 +- tools/switcher/Dockerfile.template | 17 +- tools/syft/Dockerfile.template | 14 +- tools/sysbox/Dockerfile.template | 14 +- tools/systemd-docker/Dockerfile.template | 11 +- tools/tailspin/Dockerfile.template | 2 +- tools/talosctl/Dockerfile.template | 17 +- tools/task/Dockerfile.template | 13 +- tools/tasker/Dockerfile.template | 2 +- tools/tea/Dockerfile.template | 15 +- tools/tejolote/Dockerfile.template | 17 +- tools/telegraf/Dockerfile.template | 13 +- tools/teleport/Dockerfile.template | 13 +- tools/teller/Dockerfile.template | 14 +- tools/tempo-cli/Dockerfile.template | 14 +- tools/tempo/Dockerfile.template | 14 +- tools/termgraph/Dockerfile.template | 2 +- tools/terminalizer/Dockerfile.template | 2 +- tools/tern/Dockerfile.template | 10 +- .../terraform-backend-git/Dockerfile.template | 17 +- tools/terraform-docs/Dockerfile.template | 14 +- tools/terraform/Dockerfile.template | 16 +- tools/terragrunt/Dockerfile.template | 17 +- tools/tetragon/Dockerfile.template | 14 +- tools/textlint/Dockerfile.template | 2 +- tools/tig/Dockerfile.template | 17 +- tools/timoni/Dockerfile.template | 14 +- tools/tini/Dockerfile.template | 17 +- tools/tinygo/Dockerfile.template | 3 +- tools/tkn/Dockerfile.template | 29 ++-- tools/tlsx/Dockerfile.template | 14 +- tools/tml/Dockerfile.template | 2 +- tools/toolong/Dockerfile.template | 2 +- tools/tracee/Dockerfile.template | 10 +- tools/traefik/Dockerfile.template | 14 +- tools/trillian/Dockerfile.template | 2 +- tools/trivy-operator/Dockerfile.template | 13 +- tools/trivy/Dockerfile.template | 31 ++-- tools/try/Dockerfile.template | 20 ++- tools/tshark/Dockerfile.template | 23 ++- tools/ttyd/Dockerfile.template | 17 +- tools/tuf/Dockerfile.template | 14 +- tools/tunnelto/Dockerfile.template | 14 +- tools/typst/Dockerfile.template | 14 +- tools/tz/Dockerfile.template | 14 +- tools/uidmap/Dockerfile.template | 14 +- tools/umoci/Dockerfile.template | 17 +- tools/uniget-build/init.sh | 1 + tools/uniget/Dockerfile.template | 2 +- tools/updatecli/Dockerfile.template | 13 +- tools/upx/Dockerfile.template | 14 +- tools/util-linux/Dockerfile.template | 4 +- tools/vale/Dockerfile.template | 14 +- tools/vault/Dockerfile.template | 16 +- tools/vcluster/Dockerfile.template | 17 +- tools/vendir/Dockerfile.template | 17 +- tools/venom/Dockerfile.template | 17 +- tools/vexctl/Dockerfile.template | 2 +- tools/vexy/Dockerfile.template | 2 +- tools/vgrep/Dockerfile.template | 17 +- tools/vhs/Dockerfile.template | 14 +- tools/viking/Dockerfile.template | 147 ++---------------- tools/visidata/Dockerfile.template | 6 +- tools/vland/Dockerfile.template | 15 +- tools/vscode-cli/Dockerfile.template | 13 +- .../Dockerfile.template | 5 +- tools/wagi/Dockerfile.template | 15 +- tools/wait-for/Dockerfile.template | 14 +- tools/wait/Dockerfile.template | 17 +- tools/walk/Dockerfile.template | 17 +- tools/warp/Dockerfile.template | 14 +- tools/wasmedge/Dockerfile.template | 14 +- tools/wasmer/Dockerfile.template | 15 +- tools/wasmi/Dockerfile.template | 2 +- tools/wasmtime/Dockerfile.template | 14 +- tools/watchexec/Dockerfile.template | 14 +- tools/watchtower/Dockerfile.template | 14 +- tools/webdavfs/Dockerfile.template | 2 +- tools/webhook-tester/Dockerfile.template | 17 +- tools/webhook/Dockerfile.template | 6 +- tools/webhookd/Dockerfile.template | 14 +- tools/websocat/Dockerfile.template | 17 +- tools/wg/Dockerfile.template | 6 +- tools/whalebrew/Dockerfile.template | 17 +- tools/win-gpg-agent/Dockerfile.template | 17 +- tools/win-ssh-agent/Dockerfile.template | 19 ++- tools/wireguard-go/Dockerfile.template | 2 +- tools/witness/Dockerfile.template | 14 +- tools/wksctl/Dockerfile.template | 14 +- tools/woke/Dockerfile.template | 14 +- tools/wolfictl/Dockerfile.template | 6 +- tools/woodpecker/Dockerfile.template | 14 +- tools/wordcloud/Dockerfile.template | 2 +- tools/wsl-open/Dockerfile.template | 17 +- tools/wslu/Dockerfile.template | 14 +- tools/xcaddy/Dockerfile.template | 14 +- tools/xdg-utils/Dockerfile.template | 19 ++- tools/xh/Dockerfile.template | 14 +- tools/xmlstarlet/Dockerfile.template | 20 ++- tools/xq/Dockerfile.template | 14 +- tools/xurls/Dockerfile.template | 17 +- tools/yamale/Dockerfile.template | 2 +- tools/yamlfmt/Dockerfile.template | 14 +- tools/yamllint/Dockerfile.template | 2 +- tools/yarn/Dockerfile.template | 4 +- tools/yasu/Dockerfile.template | 14 +- tools/yh/Dockerfile.template | 15 +- tools/youki/Dockerfile.template | 14 +- tools/yq/Dockerfile.template | 17 +- tools/ytt/Dockerfile.template | 17 +- tools/zed/Dockerfile.template | 14 +- tools/zeitgeist/Dockerfile.template | 17 +- tools/zitadel/Dockerfile.template | 14 +- tools/zot/Dockerfile.template | 17 +- 813 files changed, 7253 insertions(+), 3567 deletions(-) create mode 100644 scripts/rebuild-all.sh create mode 100644 scripts/rewrite-add-download-cache.sh diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0f554fe1f7..7f442b1ea8 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,6 +24,11 @@ jobs: tools: ${{ steps.collect.outputs.tools }} steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install uniget uses: uniget-org/uniget-action@v1 with: @@ -56,7 +61,44 @@ jobs: | helper/usr/local/bin/jq --slurp --compact-output '.' )" echo " JSON: ${TOOLS_JSON}" + + TOOLS_JSON_LEN="$( + echo -n "${TOOLS}" \ + | jq 'length' + )" + echo " TOOLS_JSON_LEN=${TOOLS_JSON_LEN}" + + if test "${TOOLS_JSON_LEN}" -ge 256; then + echo "### Too many tools to process: ${TOOLS_JSON_LEN}." + echo "### Fallback to last commit" + + TOOLS="$( + git log -1 --pretty=format: --name-only --diff-filter=d \ + | grep ^tools/ \ + | cut -d/ -f2 \ + | sort \ + | uniq \ + | xargs echo + )" + echo "### Got tools=${TOOLS}." + + TOOLS_JSON="$( + echo -n "${TOOLS}" \ + | tr ' ' '\n' \ + | helper/usr/local/bin/jq --raw-input '.' \ + | helper/usr/local/bin/jq --slurp --compact-output '.' + )" + echo " JSON: ${TOOLS_JSON}" + + TOOLS_JSON_LEN="$( + echo -n "${TOOLS}" \ + | jq 'length' + )" + echo " TOOLS_JSON_LEN=${TOOLS_JSON_LEN}" + fi + echo "tools=${TOOLS_JSON}" >>"${GITHUB_OUTPUT}" + echo "tools_len=${TOOLS_JSON_LEN}" >>"${GITHUB_OUTPUT}" build: name: Build container image diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index d1ef196294..1a2ac74b9c 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -66,7 +66,7 @@ jobs: CHANGED_TOOLS="$( git log --pretty=format: --name-only --diff-filter=d ${OLD_COMMIT_SHA}..${GITHUB_SHA} \ | sort \ - | grep -E "^tools/[^/]+/" \ + | grep "^tools/" \ | cut -d/ -f2 \ | uniq \ | while read -r TOOL; do test -d "tools/${TOOL}" && echo "${TOOL}"; done \ diff --git a/@template/Dockerfile.template b/@template/Dockerfile.template index 6d22fc07d0..5a71ee1f54 100644 --- a/@template/Dockerfile.template +++ b/@template/Dockerfile.template @@ -18,7 +18,7 @@ ARG name ARG version # tarball -#RUN <"${prefix}/share/bash-completion/completions/foo" #"${prefix}/bin/foo" completion fish >"${prefix}/share/fish/vendor_completions.d/foo.fish" #"${prefix}/bin/foo" completion zsh >"${prefix}/share/zsh/vendor-completions/_foo" diff --git a/renovate.json b/renovate.json index cd289e7452..39e66cf287 100644 --- a/renovate.json +++ b/renovate.json @@ -354,7 +354,7 @@ { "customType": "regex", "datasourceTemplate": "github-releases", - "depNameTemplate": "foo/bar", + "depNameTemplate": "warpstreamlabs/bento", "extractVersionTemplate": "^v(?.+)$", "fileMatch": [ "^tools/bento/manifest.yaml$" diff --git a/scripts/rebuild-all.sh b/scripts/rebuild-all.sh new file mode 100644 index 0000000000..8d9c31c31d --- /dev/null +++ b/scripts/rebuild-all.sh @@ -0,0 +1,66 @@ +#!/bin/bash +set -o errexit + +if test -z "${GITHUB_TOKEN}"; then + echo "ERROR: GITHUB_TOKEN is not set" + exit 1 +fi +: "${ref:=main}" +: "${workflow:=rebuild.yml}" +: "${repository:=uniget-org/tools}" +: "${batch_size:=100}" + +function dispatch() { + local repository="${1}" + local ref="${2}" + local workflow="${3}" + local tools="${4}" + local dryrun="${5:-false}" + + CURL="curl" + if test -n "${dryrun}" && test "${dryrun}" == "true"; then + CURL="echo curl" + fi + + ${CURL} --silent --show-error --location --fail \ + --header "Authorization: Bearer ${GITHUB_TOKEN}" \ + --url "https://api.github.com/repos/${repository}/actions/workflows/${workflow}/dispatches" \ + --data "{\"ref\": \"${ref}\", \"inputs\": {\"tool\": \"$(echo "${tools}" | xargs echo)\"}}" +} + +make metadata.json + +TOOLS_DEPS="$( + jq --raw-output '.tools[] | select(.build_dependencies != null) | .build_dependencies[]' "${prefix}/share/bash-completion/completions/acorn" diff --git a/tools/acr/Dockerfile.template b/tools/acr/Dockerfile.template index 3f73f329d8..d7f01e7f1b 100644 --- a/tools/acr/Dockerfile.template +++ b/tools/acr/Dockerfile.template @@ -8,12 +8,12 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=go / /usr/local/ COPY --link --from=make / /usr/local/ WORKDIR /go/src/github.com/Azure/acr-cli -RUN <"${prefix}/share/bash-completion/completions/aqua" "${prefix}/bin/aqua" completion zsh >"${prefix}/share/zsh/vendor-completions/_aqua" diff --git a/tools/argo/Dockerfile.template b/tools/argo/Dockerfile.template index 7f578d5580..3a65a47e4f 100644 --- a/tools/argo/Dockerfile.template +++ b/tools/argo/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/argocd" "${prefix}/bin/argocd" completion zsh >"${prefix}/share/zsh/vendor-completions/_argocd" EOF \ No newline at end of file diff --git a/tools/arkade/Dockerfile.template b/tools/arkade/Dockerfile.template index 505d85f5e6..02b19a51b0 100644 --- a/tools/arkade/Dockerfile.template +++ b/tools/arkade/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/arkade" "${prefix}/bin/arkade" completion fish >"${prefix}/share/fish/vendor_completions.d/arkade.fish" diff --git a/tools/artifactory-cleanup/Dockerfile.template b/tools/artifactory-cleanup/Dockerfile.template index 2b3cc9b523..448aa70382 100644 --- a/tools/artifactory-cleanup/Dockerfile.template +++ b/tools/artifactory-cleanup/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <.+)$ priority: low \ No newline at end of file diff --git a/tools/bicep/Dockerfile.template b/tools/bicep/Dockerfile.template index 2a36f5eace..c388185b8a 100644 --- a/tools/bicep/Dockerfile.template +++ b/tools/bicep/Dockerfile.template @@ -7,10 +7,10 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --from=musl / /usr/local +COPY --link --from=musl / /usr/local ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/bif" diff --git a/tools/bin/Dockerfile.template b/tools/bin/Dockerfile.template index 959f03e8d4..da6be80234 100644 --- a/tools/bin/Dockerfile.template +++ b/tools/bin/Dockerfile.template @@ -7,9 +7,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/bom" "${prefix}/bin/bom" completion fish >"${prefix}/share/fish/vendor_completions.d/bom.fish" "${prefix}/bin/bom" completion zsh >"${prefix}/share/zsh/vendor-completions/_bom" diff --git a/tools/bomber/Dockerfile.template b/tools/bomber/Dockerfile.template index eae9e66acd..467a03c90c 100644 --- a/tools/bomber/Dockerfile.template +++ b/tools/bomber/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/bomber" "${prefix}/bin/bomber" completion fish | tail -n +9 >"${prefix}/share/fish/vendor_completions.d/bomber.fish" diff --git a/tools/bomshell/Dockerfile.template b/tools/bomshell/Dockerfile.template index f21bccf33a..e67a7d44a5 100644 --- a/tools/bomshell/Dockerfile.template +++ b/tools/bomshell/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/box" EOF \ No newline at end of file diff --git a/tools/bpftool/Dockerfile.template b/tools/bpftool/Dockerfile.template index bdc5dac5a2..fed2a3a045 100644 --- a/tools/bpftool/Dockerfile.template +++ b/tools/bpftool/Dockerfile.template @@ -7,27 +7,40 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --from=make / /usr/local/ +COPY --link --from=make / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/docker-buildx" "${prefix}/libexec/docker/cli-plugins/docker-buildx" completion fish | sed "s|${prefix}||g" >"${prefix}/share/fish/vendor_completions.d/docker-buildx.fish" "${prefix}/libexec/docker/cli-plugins/docker-buildx" completion zsh | sed "s|${prefix}||g" >"${prefix}/share/zsh/vendor-completions/_docker-buildx" diff --git a/tools/bumblebee/Dockerfile.template b/tools/bumblebee/Dockerfile.template index 23eebabc22..c8ebe088bd 100644 --- a/tools/bumblebee/Dockerfile.template +++ b/tools/bumblebee/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/bee" "${prefix}/bin/bee" completion fish >"${prefix}/share/fish/vendor_completions.d/bee.fish" "${prefix}/bin/bee" completion zsh >"${prefix}/share/zsh/vendor-completions/_bee" diff --git a/tools/bypass4netns/Dockerfile.template b/tools/bypass4netns/Dockerfile.template index 251cc1d5ca..49eaab66e3 100644 --- a/tools/bypass4netns/Dockerfile.template +++ b/tools/bypass4netns/Dockerfile.template @@ -8,8 +8,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -RUN <"${prefix}/share/bash-completion/completions/caddy" diff --git a/tools/cadvisor/Dockerfile.template b/tools/cadvisor/Dockerfile.template index f4ee623eb9..56879389f8 100644 --- a/tools/cadvisor/Dockerfile.template +++ b/tools/cadvisor/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/cdebug" diff --git a/tools/cdncheck/Dockerfile.template b/tools/cdncheck/Dockerfile.template index 6c9c36c2db..f8a6151aa1 100644 --- a/tools/cdncheck/Dockerfile.template +++ b/tools/cdncheck/Dockerfile.template @@ -7,12 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/chainsaw" "${prefix}/bin/chainsaw" completion fish >"${prefix}/share/fish/vendor_completions.d/chainsaw.fish" diff --git a/tools/charm/Dockerfile.template b/tools/charm/Dockerfile.template index d56b8cb9df..dd8c1b0307 100644 --- a/tools/charm/Dockerfile.template +++ b/tools/charm/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/cr" diff --git a/tools/chart-testing/Dockerfile.template b/tools/chart-testing/Dockerfile.template index 4e4976d549..888d78e952 100644 --- a/tools/chart-testing/Dockerfile.template +++ b/tools/chart-testing/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/chekr" "${prefix}/bin/chekr" completion fish >"${prefix}/share/fish/vendor_completions.d/chekr.fish" diff --git a/tools/chigo/Dockerfile.template b/tools/chigo/Dockerfile.template index 85faf4033c..3ed338e551 100644 --- a/tools/chigo/Dockerfile.template +++ b/tools/chigo/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/cilium" "${prefix}/bin/cilium" completion fish >"${prefix}/share/fish/vendor_completions.d/cilium.fish" "${prefix}/bin/cilium" completion zsh >"${prefix}/share/zsh/vendor-completions/_cilium" diff --git a/tools/cinf/Dockerfile.template b/tools/cinf/Dockerfile.template index 5d6e125f1d..9ffc0bc2b5 100644 --- a/tools/cinf/Dockerfile.template +++ b/tools/cinf/Dockerfile.template @@ -5,13 +5,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/civo" diff --git a/tools/click/Dockerfile.template b/tools/click/Dockerfile.template index 44b826ed26..44fe033477 100644 --- a/tools/click/Dockerfile.template +++ b/tools/click/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/clive" diff --git a/tools/cloudflared/Dockerfile.template b/tools/cloudflared/Dockerfile.template index 295622acd2..3ffb7789e8 100644 --- a/tools/cloudflared/Dockerfile.template +++ b/tools/cloudflared/Dockerfile.template @@ -5,13 +5,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/clusterctl" "${prefix}/bin/clusterctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_clusterctl" EOF \ No newline at end of file diff --git a/tools/clusterlint/Dockerfile.template b/tools/clusterlint/Dockerfile.template index d964a0942b..830da417bf 100644 --- a/tools/clusterlint/Dockerfile.template +++ b/tools/clusterlint/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/colima" "${prefix}/bin/colima" completion fish >"${prefix}/share/fish/vendor_completions.d/colima.fish" "${prefix}/bin/colima" completion zsh >"${prefix}/share/zsh/vendor-completions/_colima" diff --git a/tools/compose-bridge/Dockerfile.template b/tools/compose-bridge/Dockerfile.template index 77479deeb1..903a561ec4 100644 --- a/tools/compose-bridge/Dockerfile.template +++ b/tools/compose-bridge/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/composer" EOF \ No newline at end of file diff --git a/tools/composerize/Dockerfile.template b/tools/composerize/Dockerfile.template index db92d1378b..a6cfb64b93 100644 --- a/tools/composerize/Dockerfile.template +++ b/tools/composerize/Dockerfile.template @@ -15,7 +15,7 @@ COPY --link --from=npm / /usr/local/ WORKDIR /uniget_bootstrap/libexec/composerize ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/conftest" "${prefix}/bin/conftest" completion fish >"${prefix}/share/fish/vendor_completions.d/conftest.fish" diff --git a/tools/conmon/Dockerfile.template b/tools/conmon/Dockerfile.template index be2d1de50f..2951da12b2 100644 --- a/tools/conmon/Dockerfile.template +++ b/tools/conmon/Dockerfile.template @@ -9,7 +9,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/copa" diff --git a/tools/cosign/Dockerfile.template b/tools/cosign/Dockerfile.template index 6fe0571863..882e2af9b8 100644 --- a/tools/cosign/Dockerfile.template +++ b/tools/cosign/Dockerfile.template @@ -9,17 +9,23 @@ ARG TARGETPLATFORM # renovate: datasource=github-releases depName=sigstore/cosign extractVersion=^v(?.+?)$ ARG COSIGN_VERSION=2.2.3 COPY checksums.txt . -RUN <"${prefix}/share/bash-completion/completions/cosign" -"${prefix}/bin/cosign" completion fish >"${prefix}/share/fish/vendor_completions.d/cosign.fish" -"${prefix}/bin/cosign" completion zsh >"${prefix}/share/zsh/vendor-completions/_cosign" +check-github-release-asset "sigstore/cosign" "v${version}" "${filename}" +echo "### Installing cosign ${version}" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \ + "${url}" echo "### Checking PGP signature for cosign ${version}" -curl --silent --show-error --location --fail --output "cosign-linux-${alt_arch}.sig" \ - "https://github.com/sigstore/cosign/releases/download/v${version}/cosign-linux-${alt_arch}.sig" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}.sig" \ + "${url}.sig" COSIGN_PUB_KEY="https://github.com/sigstore/cosign/releases/download/v${version}/release-cosign.pub" -cosign verify-blob --key "${COSIGN_PUB_KEY}" --signature "cosign-linux-${alt_arch}.sig" "${prefix}/bin/cosign" -rm -f "cosign-linux-${alt_arch}.sig" +cosign verify-blob --key "${COSIGN_PUB_KEY}" --signature "${uniget_cache_download}/${filename}.sig" "${prefix}/bin/cosign" echo "### Checking keyless signature for cosign ${version}" -curl --silent --show-error --location --fail --output "cosign-linux-${alt_arch}-keyless.pem" \ - "https://github.com/sigstore/cosign/releases/download/v${version}/cosign-linux-${alt_arch}-keyless.pem" -curl --silent --show-error --location --fail --output "cosign-linux-${alt_arch}-keyless.sig" \ - "https://github.com/sigstore/cosign/releases/download/v${version}/cosign-linux-${alt_arch}-keyless.sig" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.pem" \ + "${url}-keyless.pem" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.sig" \ + "${url}-keyless.sig" COSIGN_EXPERIMENTAL=1 cosign verify-blob \ - --cert "cosign-linux-${alt_arch}-keyless.pem" \ - --signature "cosign-linux-${alt_arch}-keyless.sig" \ + --cert "${uniget_cache_download}/${filename}-keyless.pem" \ + --signature "${uniget_cache_download}/${filename}-keyless.sig" \ --certificate-oidc-issuer https://accounts.google.com \ --certificate-identity "keyless@projectsigstore.iam.gserviceaccount.com" \ - "${prefix}/bin/cosign" -rm -f "cosign-linux-${alt_arch}-keyless.pem" "cosign-linux-${alt_arch}-keyless.sig" + "${uniget_cache_download}/${filename}" +install --mode=0755 \ + "${uniget_cache_download}/${filename}" \ + "${prefix}/bin/cosign" "${prefix}/bin/cosign" version + +echo "### Installing shell completion for cosign ${version}" +"${prefix}/bin/cosign" completion bash >"${prefix}/share/bash-completion/completions/cosign" +"${prefix}/bin/cosign" completion fish >"${prefix}/share/fish/vendor_completions.d/cosign.fish" +"${prefix}/bin/cosign" completion zsh >"${prefix}/share/zsh/vendor-completions/_cosign" EOF \ No newline at end of file diff --git a/tools/cowsay/Dockerfile.template b/tools/cowsay/Dockerfile.template index a596eea61f..dfa33802e8 100644 --- a/tools/cowsay/Dockerfile.template +++ b/tools/cowsay/Dockerfile.template @@ -5,14 +5,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/crane" diff --git a/tools/cri-dockerd/Dockerfile.template b/tools/cri-dockerd/Dockerfile.template index 1df84c93b4..514cb533f8 100644 --- a/tools/cri-dockerd/Dockerfile.template +++ b/tools/cri-dockerd/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/cue" "${prefix}/bin/cue" completion fish >"${prefix}/share/fish/vendor_completions.d/cue.fish" diff --git a/tools/curl/Dockerfile.template b/tools/curl/Dockerfile.template index d9695e3f04..2dd2fe64ef 100644 --- a/tools/curl/Dockerfile.template +++ b/tools/curl/Dockerfile.template @@ -5,8 +5,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ ENV CC=clang -RUN <"${prefix}/share/bash-completion/completions/datree" "${prefix}/bin/datree" completion fish >"${prefix}/share/fish/vendor_completions.d/datree.fish" "${prefix}/bin/datree" completion zsh >"${prefix}/share/zsh/vendor-completions/_datree" EOF -RUN <"${prefix}/share/bash-completion/completions/deno" diff --git a/tools/dep-tree/Dockerfile.template b/tools/dep-tree/Dockerfile.template index 88bbedd14b..f90e46a427 100644 --- a/tools/dep-tree/Dockerfile.template +++ b/tools/dep-tree/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/depot" diff --git a/tools/devbox/Dockerfile.template b/tools/devbox/Dockerfile.template index 5040d82954..c88b532a2a 100644 --- a/tools/devbox/Dockerfile.template +++ b/tools/devbox/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/devbox" "${prefix}/bin/devbox" completion fish >"${prefix}/share/fish/vendor_completions.d/devbox.fish" diff --git a/tools/devcontainer/Dockerfile.template b/tools/devcontainer/Dockerfile.template index 28eb093fcb..7a5f33bbec 100644 --- a/tools/devcontainer/Dockerfile.template +++ b/tools/devcontainer/Dockerfile.template @@ -17,7 +17,7 @@ COPY --link --from=make / /usr/local/ WORKDIR /uniget_bootstrap/libexec/devcontainer ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/devpod" "${prefix}/bin/devpod" completion fish >"${prefix}/share/fish/vendor_completions.d/devpod.fish" diff --git a/tools/diffoci/Dockerfile.template b/tools/diffoci/Dockerfile.template index 518be97536..40ef891c5b 100644 --- a/tools/diffoci/Dockerfile.template +++ b/tools/diffoci/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/diffoci" "${prefix}/bin/diffoci" completion fish >"${prefix}/share/fish/vendor_completions.d/diffoci.fish" diff --git a/tools/dinit/Dockerfile.template b/tools/dinit/Dockerfile.template index 5a9d422bbe..2c777f7cfa 100644 --- a/tools/dinit/Dockerfile.template +++ b/tools/dinit/Dockerfile.template @@ -7,8 +7,13 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/docker-index" "${prefix}/libexec/docker/cli-plugins/docker-index" completion fish | sed "s|${prefix}||g" >"${prefix}/share/fish/vendor_completions.d/docker-index.fish" diff --git a/tools/docker-init/Dockerfile.template b/tools/docker-init/Dockerfile.template index 7efbced8ba..8fb1e14456 100644 --- a/tools/docker-init/Dockerfile.template +++ b/tools/docker-init/Dockerfile.template @@ -8,7 +8,7 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version COPY --chmod=0755 install-docker-init.sh "/uniget_bootstrap/bin/" -RUN <"${prefix}/share/bash-completion/completions/docker-scout" diff --git a/tools/docker/Dockerfile.template b/tools/docker/Dockerfile.template index 42619fe1fd..755eb6a084 100644 --- a/tools/docker/Dockerfile.template +++ b/tools/docker/Dockerfile.template @@ -5,36 +5,48 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version - -RUN <"${prefix}/share/bash-completion/completions/docker" "${prefix}/bin/docker" completion fish >"${prefix}/share/fish/vendor_completions.d/docker.fish" "${prefix}/bin/docker" completion zsh >"${prefix}/share/zsh/vendor-completions/_docker" EOF -RUN <"${prefix}/share/bash-completion/completions/dyff" "${prefix}/bin/dyff" completion fish >"${prefix}/share/fish/vendor_completions.d/dyff.fish" diff --git a/tools/earthly/Dockerfile.template b/tools/earthly/Dockerfile.template index f2d40a3293..28d7298e7a 100644 --- a/tools/earthly/Dockerfile.template +++ b/tools/earthly/Dockerfile.template @@ -5,18 +5,25 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -RUN <"${prefix}/share/bash-completion/completions/eksctl" "${prefix}/bin/eksctl" completion fish >"${prefix}/share/fish/vendor_completions.d/eksctl.fish" diff --git a/tools/ekz/Dockerfile.template b/tools/ekz/Dockerfile.template index 1327af78c3..b1fcd922e8 100644 --- a/tools/ekz/Dockerfile.template +++ b/tools/ekz/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/flux" "${prefix}/bin/flux" completion fish >"${prefix}/share/fish/vendor_completions.d/flux.fish" "${prefix}/bin/flux" completion zsh >"${prefix}/share/zsh/vendor-completions/_flux" diff --git a/tools/flyctl/Dockerfile.template b/tools/flyctl/Dockerfile.template index 6172f415d6..3f5f298887 100644 --- a/tools/flyctl/Dockerfile.template +++ b/tools/flyctl/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/flyctl" "${prefix}/bin/flyctl" completion fish >"${prefix}/share/fish/vendor_completions.d/flyctl.fish" diff --git a/tools/fontawesome-free/Dockerfile.template b/tools/fontawesome-free/Dockerfile.template index 27d5eec7ce..b75095658c 100644 --- a/tools/fontawesome-free/Dockerfile.template +++ b/tools/fontawesome-free/Dockerfile.template @@ -7,11 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/bin/forgejo" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \ + "${url}" + +xz --decompress "${uniget_cache_download}/${filename}" >"${prefix}/bin/forgejo" chmod +x "${prefix}/bin/forgejo" EOF \ No newline at end of file diff --git a/tools/forgit/Dockerfile.template b/tools/forgit/Dockerfile.template index 19859f5ed7..334fbe5349 100644 --- a/tools/forgit/Dockerfile.template +++ b/tools/forgit/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/frankenphp" "${prefix}/bin/frankenphp" completion fish >"${prefix}/share/fish/vendor_completions.d/frankenphp.fish" diff --git a/tools/freeze/Dockerfile.template b/tools/freeze/Dockerfile.template index 1fce8d99c5..e6af5429e6 100644 --- a/tools/freeze/Dockerfile.template +++ b/tools/freeze/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/furyctl" "${prefix}/bin/furyctl" completion fish >"${prefix}/share/fish/vendor_completions.d/furyctl.fish" diff --git a/tools/fuse-overlayfs-snapshotter/Dockerfile.template b/tools/fuse-overlayfs-snapshotter/Dockerfile.template index 06d565931a..e54128344a 100644 --- a/tools/fuse-overlayfs-snapshotter/Dockerfile.template +++ b/tools/fuse-overlayfs-snapshotter/Dockerfile.template @@ -8,8 +8,14 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version COPY fuse-overlayfs-snapshotter.service.go-template /uniget_bootstrap/etc/systemd/system/ -RUN <"${prefix}/share/bash-completion/completions/gatekeeper" "${prefix}/bin/gator" completion fish >"${prefix}/share/fish/vendor_completions.d/gatekeeper.fish" "${prefix}/bin/gator" completion zsh >"${prefix}/share/zsh/vendor-completions/_gatekeeper" diff --git a/tools/gcloud/Dockerfile.template b/tools/gcloud/Dockerfile.template index a972681f89..f6bc5ef713 100644 --- a/tools/gcloud/Dockerfile.template +++ b/tools/gcloud/Dockerfile.template @@ -8,10 +8,17 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version WORKDIR /uniget_bootstrap/opt/gcloud -RUN <"${prefix}/share/bash-completion/completions/gh" "${prefix}/bin/gh" completion -s fish >"${prefix}/share/fish/vendor_completions.d/gh.fish" diff --git a/tools/ghostunnel/Dockerfile.template b/tools/ghostunnel/Dockerfile.template index f3308c249f..aab3e06583 100644 --- a/tools/ghostunnel/Dockerfile.template +++ b/tools/ghostunnel/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/bin/gitea" diff --git a/tools/gitjob/Dockerfile.template b/tools/gitjob/Dockerfile.template index eb3a76f951..75fae057e3 100644 --- a/tools/gitjob/Dockerfile.template +++ b/tools/gitjob/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/gitleaks" "${prefix}/bin/gitleaks" completion fish >"${prefix}/share/fish/vendor_completions.d/gitleaks.fish" diff --git a/tools/gitoxide/Dockerfile.template b/tools/gitoxide/Dockerfile.template index 77e1ceebb0..a20c62e872 100644 --- a/tools/gitoxide/Dockerfile.template +++ b/tools/gitoxide/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/gitsign" "${prefix}/bin/gitsign" completion fish >"${prefix}/share/fish/vendor_completions.d/gitsign.fish" "${prefix}/bin/gitsign" completion zsh >"${prefix}/share/zsh/vendor-completions/_gitsign" diff --git a/tools/gittuf/Dockerfile.template b/tools/gittuf/Dockerfile.template index 9225a2b678..37f2e9028c 100644 --- a/tools/gittuf/Dockerfile.template +++ b/tools/gittuf/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/gittuf" "${prefix}/bin/gittuf" completion fish >"${prefix}/share/fish/vendor_completions.d/gittuf.fish" diff --git a/tools/gitui/Dockerfile.template b/tools/gitui/Dockerfile.template index afa7b56c85..d16f1b3e55 100644 --- a/tools/gitui/Dockerfile.template +++ b/tools/gitui/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/glab" "${prefix}/bin/glab" completion -s fish >"${prefix}/share/fish/vendor_completions.d/glab.fish" "${prefix}/bin/glab" completion -s zsh >"${prefix}/share/zsh/vendor-completions/_glab" diff --git a/tools/glow/Dockerfile.template b/tools/glow/Dockerfile.template index bdc333e2cb..4faffc2684 100644 --- a/tools/glow/Dockerfile.template +++ b/tools/glow/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/golangci-lint" diff --git a/tools/gomplate/Dockerfile.template b/tools/gomplate/Dockerfile.template index c97e0d9376..38a3be5441 100644 --- a/tools/gomplate/Dockerfile.template +++ b/tools/gomplate/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/grafana-agentctl" "${prefix}/bin/grafana-agentctl" completion fish >"${prefix}/share/fish/vendor_completions.d/grafana-agentctl.fish" "${prefix}/bin/grafana-agentctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_grafana-agentctl" diff --git a/tools/grafana/Dockerfile.template b/tools/grafana/Dockerfile.template index db26da62d9..6af7cf05e3 100644 --- a/tools/grafana/Dockerfile.template +++ b/tools/grafana/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/grype" "${prefix}/bin/grype" completion fish >"${prefix}/share/fish/vendor_completions.d/grype.fish" diff --git a/tools/gsutil/Dockerfile.template b/tools/gsutil/Dockerfile.template index 073001b9c8..6f42580386 100644 --- a/tools/gsutil/Dockerfile.template +++ b/tools/gsutil/Dockerfile.template @@ -12,6 +12,6 @@ COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/guaccollect" "${prefix}/bin/guaccollect" completion fish >"${prefix}/share/fish/vendor_completions.d/guaccollect.fish" "${prefix}/bin/guaccollect" completion zsh >"${prefix}/share/zsh/vendor-completions/_guaccollect" diff --git a/tools/gum/Dockerfile.template b/tools/gum/Dockerfile.template index 5fe6e4d5e6..8a7dd12ef1 100644 --- a/tools/gum/Dockerfile.template +++ b/tools/gum/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/havener" "${prefix}/bin/havener" completion fish >"${prefix}/share/fish/vendor_completions.d/havener.fish" diff --git a/tools/hcloud/Dockerfile.template b/tools/hcloud/Dockerfile.template index 5ec46592f5..1ec68c37c4 100644 --- a/tools/hcloud/Dockerfile.template +++ b/tools/hcloud/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/hcloud" "${prefix}/bin/hcloud" completion fish >"${prefix}/share/fish/vendor_completions.d/hcloud.fish" diff --git a/tools/helm-plugins/Dockerfile.template b/tools/helm-plugins/Dockerfile.template index d799206f54..22d7971c0b 100644 --- a/tools/helm-plugins/Dockerfile.template +++ b/tools/helm-plugins/Dockerfile.template @@ -10,7 +10,7 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version COPY --link --from=helm / /usr/local/ -RUN <"${prefix}/etc/profile.d/helm-plugins.sh" export HELM_PLUGINS=${prefix}/share/helm/plugins diff --git a/tools/helm/Dockerfile.template b/tools/helm/Dockerfile.template index 7d9e7e04f3..e8acb91e76 100644 --- a/tools/helm/Dockerfile.template +++ b/tools/helm/Dockerfile.template @@ -7,10 +7,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/helm" "${prefix}/bin/helm" completion fish >"${prefix}/share/fish/vendor_completions.d/helm.fish" "${prefix}/bin/helm" completion zsh >"${prefix}/share/zsh/vendor-completions/_helm" diff --git a/tools/helmfile/Dockerfile.template b/tools/helmfile/Dockerfile.template index 6f63a57a46..a158ef90f7 100644 --- a/tools/helmfile/Dockerfile.template +++ b/tools/helmfile/Dockerfile.template @@ -5,15 +5,20 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/hubble" "${prefix}/bin/hubble" completion fish >"${prefix}/share/fish/vendor_completions.d/hubble.fish" "${prefix}/bin/hubble" completion zsh >"${prefix}/share/zsh/vendor-completions/_hubble" diff --git a/tools/huber/Dockerfile.template b/tools/huber/Dockerfile.template index 4f1a47b51c..8dabe5f2a5 100644 --- a/tools/huber/Dockerfile.template +++ b/tools/huber/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/hugo" diff --git a/tools/hurl/Dockerfile.template b/tools/hurl/Dockerfile.template index 2252c00e4a..f2bf2b2a9d 100644 --- a/tools/hurl/Dockerfile.template +++ b/tools/hurl/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/influx" "${prefix}/bin/influx" completion zsh >"${prefix}/share/zsh/vendor-completions/_influx" EOF \ No newline at end of file diff --git a/tools/influxdb/Dockerfile.template b/tools/influxdb/Dockerfile.template index ad346df363..ccdfce49c9 100644 --- a/tools/influxdb/Dockerfile.template +++ b/tools/influxdb/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ingress2gateway" diff --git a/tools/inotify-tools/Dockerfile.template b/tools/inotify-tools/Dockerfile.template index 3c109bde87..2e2bc0ee12 100644 --- a/tools/inotify-tools/Dockerfile.template +++ b/tools/inotify-tools/Dockerfile.template @@ -7,8 +7,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -RUN <"${prefix}/share/bash-completion/completions/jf" "${prefix}/bin/jf" completion fish >"${prefix}/share/fish/vendor_completions.d/jf.fish" "${prefix}/bin/jf" completion zsh >"${prefix}/share/zsh/vendor-completions/_jf" diff --git a/tools/jfq/Dockerfile.template b/tools/jfq/Dockerfile.template index 78ad43a857..53df13e2c1 100644 --- a/tools/jfq/Dockerfile.template +++ b/tools/jfq/Dockerfile.template @@ -13,7 +13,7 @@ COPY --link --from=npm / /usr/local/ WORKDIR /uniget_bootstrap/libexec/jfq ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k0s" "${prefix}/bin/k0s" completion fish >"${prefix}/share/fish/vendor_completions.d/k0s.fish" diff --git a/tools/k0sctl/Dockerfile.template b/tools/k0sctl/Dockerfile.template index a9573f166c..6a252ec0a0 100644 --- a/tools/k0sctl/Dockerfile.template +++ b/tools/k0sctl/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k0sctl" "${prefix}/bin/k0sctl" completion fish >"${prefix}/share/fish/vendor_completions.d/k0sctl.fish" diff --git a/tools/k2d/Dockerfile.template b/tools/k2d/Dockerfile.template index cd6edc422d..73d3ce79fe 100644 --- a/tools/k2d/Dockerfile.template +++ b/tools/k2d/Dockerfile.template @@ -13,7 +13,7 @@ COPY --link --from=make / /usr/local/ WORKDIR /go/src/github.com/portainer/k2d ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k3d" "${prefix}/bin/k3d" completion fish >"${prefix}/share/fish/vendor_completions.d/k3d.fish" "${prefix}/bin/k3d" completion zsh >"${prefix}/share/zsh/vendor-completions/_k3d" diff --git a/tools/k3s/Dockerfile.template b/tools/k3s/Dockerfile.template index 6e726c7b78..389ef1fe99 100644 --- a/tools/k3s/Dockerfile.template +++ b/tools/k3s/Dockerfile.template @@ -8,7 +8,7 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version COPY k3s.service.go-template /uniget_bootstrap/etc/systemd/system/ -RUN <"${prefix}/share/bash-completion/completions/k3s" "${prefix}/bin/k3s" completion zsh >"${prefix}/share/zsh/vendor-completions/_k3s" EOF \ No newline at end of file diff --git a/tools/k3sup/Dockerfile.template b/tools/k3sup/Dockerfile.template index e53eccd8f7..e6916dd3fb 100644 --- a/tools/k3sup/Dockerfile.template +++ b/tools/k3sup/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k3sup" "${prefix}/bin/k3sup" completion fish >"${prefix}/share/fish/vendor_completions.d/k3sup.fish" "${prefix}/bin/k3sup" completion zsh >"${prefix}/share/zsh/vendor-completions/_k3sup" diff --git a/tools/k6/Dockerfile.template b/tools/k6/Dockerfile.template index 1b034b483c..3c49a9f066 100644 --- a/tools/k6/Dockerfile.template +++ b/tools/k6/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k6" "${prefix}/bin/k6" completion fish >"${prefix}/share/fish/vendor_completions.d/k6.fish" "${prefix}/bin/k6" completion zsh >"${prefix}/share/zsh/vendor-completions/_k6" diff --git a/tools/k8s-tew/Dockerfile.template b/tools/k8s-tew/Dockerfile.template index 4dc751f791..a3009f2ca5 100644 --- a/tools/k8s-tew/Dockerfile.template +++ b/tools/k8s-tew/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k8s-tew" "${prefix}/bin/k8s-tew" completion zsh >"${prefix}/share/zsh/vendor-completions/_k8s-tew" diff --git a/tools/k8senv/Dockerfile.template b/tools/k8senv/Dockerfile.template index c542e02b18..30333984b1 100644 --- a/tools/k8senv/Dockerfile.template +++ b/tools/k8senv/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/k8senv" "${prefix}/bin/k8senv" completion fish >"${prefix}/share/fish/vendor_completions.d/k8senv.fish" diff --git a/tools/k8spacket/Dockerfile.template b/tools/k8spacket/Dockerfile.template index d47502f2a2..adb6aa51a0 100644 --- a/tools/k8spacket/Dockerfile.template +++ b/tools/k8spacket/Dockerfile.template @@ -8,8 +8,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -RUN <"${prefix}/share/bash-completion/completions/k9s" "${prefix}/bin/k9s" completion fish >"${prefix}/share/fish/vendor_completions.d/k9s.fish" diff --git a/tools/kapp/Dockerfile.template b/tools/kapp/Dockerfile.template index 3ffb165130..cdc6f4c43e 100644 --- a/tools/kapp/Dockerfile.template +++ b/tools/kapp/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kapp" "${prefix}/bin/kapp" completion fish >"${prefix}/share/fish/vendor_completions.d/kapp.fish" "${prefix}/bin/kapp" completion zsh >"${prefix}/share/zsh/vendor-completions/_kapp" diff --git a/tools/katana/Dockerfile.template b/tools/katana/Dockerfile.template index 952e42cab7..98b5e9909f 100644 --- a/tools/katana/Dockerfile.template +++ b/tools/katana/Dockerfile.template @@ -7,11 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kbom" diff --git a/tools/kbrew/Dockerfile.template b/tools/kbrew/Dockerfile.template index 2461daf401..e63ed8ad6b 100644 --- a/tools/kbrew/Dockerfile.template +++ b/tools/kbrew/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kbrew" "${prefix}/bin/kbrew" completion fish >"${prefix}/share/fish/vendor_completions.d/kbrew.fish" diff --git a/tools/kcount/Dockerfile.template b/tools/kcount/Dockerfile.template index 1b0d7b4be5..0aeb5df60d 100644 --- a/tools/kcount/Dockerfile.template +++ b/tools/kcount/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubectl-${plugin}" diff --git a/tools/kd/Dockerfile.template b/tools/kd/Dockerfile.template index b953226f9a..c957e28ae0 100644 --- a/tools/kd/Dockerfile.template +++ b/tools/kd/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kind" "${prefix}/bin/kind" completion fish >"${prefix}/share/fish/vendor_completions.d/kind.fish" "${prefix}/bin/kind" completion zsh >"${prefix}/share/zsh/vendor-completions/_kind" diff --git a/tools/kine/Dockerfile.template b/tools/kine/Dockerfile.template index 0c0de0d597..b561ddb0aa 100644 --- a/tools/kine/Dockerfile.template +++ b/tools/kine/Dockerfile.template @@ -8,12 +8,12 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=go / /usr/local/ COPY --link --from=make / /usr/local/ WORKDIR /go/src/github.com/k3s-io/kine -RUN <"${prefix}/share/bash-completion/completions/kink" "${prefix}/bin/kink" completion fish >"${prefix}/share/fish/vendor_completions.d/kink.fish" diff --git a/tools/kitt/Dockerfile.template b/tools/kitt/Dockerfile.template index 6f0cd006c2..9f695e44a1 100644 --- a/tools/kitt/Dockerfile.template +++ b/tools/kitt/Dockerfile.template @@ -12,6 +12,6 @@ COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kluctl" "${prefix}/bin/kluctl" completion fish >"${prefix}/share/fish/vendor_completions.d/kluctl.fish" "${prefix}/bin/kluctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_kluctl" diff --git a/tools/kmon/Dockerfile.template b/tools/kmon/Dockerfile.template index 36fc8bd47d..8f6a1d3943 100644 --- a/tools/kmon/Dockerfile.template +++ b/tools/kmon/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kn" "${prefix}/bin/kn" completion zsh >"${prefix}/share/zsh/vendor-completions/_kn" EOF \ No newline at end of file diff --git a/tools/ko/Dockerfile.template b/tools/ko/Dockerfile.template index 2462119413..c72b049c73 100644 --- a/tools/ko/Dockerfile.template +++ b/tools/ko/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ko" diff --git a/tools/kompose/Dockerfile.template b/tools/kompose/Dockerfile.template index 2f871094e7..f5282331f9 100644 --- a/tools/kompose/Dockerfile.template +++ b/tools/kompose/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kompose" "${prefix}/bin/kompose" completion fish >"${prefix}/share/fish/vendor_completions.d/kompose.fish" "${prefix}/bin/kompose" completion zsh >"${prefix}/share/zsh/vendor-completions/_kompose" diff --git a/tools/konf/Dockerfile.template b/tools/konf/Dockerfile.template index d7c866a5c0..427a343d10 100644 --- a/tools/konf/Dockerfile.template +++ b/tools/konf/Dockerfile.template @@ -17,10 +17,16 @@ case "\$(basename "\${SHELL}")" in ;; esac EOF -RUN <"${prefix}/share/bash-completion/completions/konf" "${prefix}/bin/konf-go" completion zsh >"${prefix}/share/zsh/vendor-completions/_konf" diff --git a/tools/kots/Dockerfile.template b/tools/kots/Dockerfile.template index ed16bc47bd..5e735ad9f6 100644 --- a/tools/kots/Dockerfile.template +++ b/tools/kots/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubectl-kots" diff --git a/tools/kp/Dockerfile.template b/tools/kp/Dockerfile.template index cfe7a0cf8e..2c53f9dcb4 100644 --- a/tools/kp/Dockerfile.template +++ b/tools/kp/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kp" "${prefix}/bin/kp" completion fish >"${prefix}/share/fish/vendor_completions.d/kp.fish" "${prefix}/bin/kp" completion zsh >"${prefix}/share/zsh/vendor-completions/_kp" diff --git a/tools/kpt/Dockerfile.template b/tools/kpt/Dockerfile.template index 92cc0d9c08..5a0b0a3a85 100644 --- a/tools/kpt/Dockerfile.template +++ b/tools/kpt/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kpt" diff --git a/tools/kpxhs/Dockerfile.template b/tools/kpxhs/Dockerfile.template index 23f129f358..103cbffa43 100644 --- a/tools/kpxhs/Dockerfile.template +++ b/tools/kpxhs/Dockerfile.template @@ -7,22 +7,29 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --from=make / /usr/local/ -RUN <"${prefix}/share/bash-completion/completions/kroki-cli" diff --git a/tools/ksort/Dockerfile.template b/tools/ksort/Dockerfile.template index a1c7d86bd9..847a3d333b 100644 --- a/tools/ksort/Dockerfile.template +++ b/tools/ksort/Dockerfile.template @@ -7,11 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kube-bench" "${prefix}/bin/kube-bench" completion fish | sed "s|${prefix}||g" >"${prefix}/share/fish/vendor_completions.d/kube-bench.fish" "${prefix}/bin/kube-bench" completion zsh | sed "s|${prefix}||g" >"${prefix}/share/zsh/vendor-completions/_kube-bench" diff --git a/tools/kube-burner/Dockerfile.template b/tools/kube-burner/Dockerfile.template index afd5fbdb03..14ac74bfb9 100644 --- a/tools/kube-burner/Dockerfile.template +++ b/tools/kube-burner/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kube-burner" diff --git a/tools/kube-controller-manager/Dockerfile.template b/tools/kube-controller-manager/Dockerfile.template index 50371f474f..ce50fb225c 100644 --- a/tools/kube-controller-manager/Dockerfile.template +++ b/tools/kube-controller-manager/Dockerfile.template @@ -7,25 +7,30 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --from=cosign / /usr/local/ +COPY --link --from=cosign / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kube-linter" "${prefix}/bin/kube-linter" completion fish >"${prefix}/share/fish/vendor_completions.d/kube-linter.fish" diff --git a/tools/kube-proxy/Dockerfile.template b/tools/kube-proxy/Dockerfile.template index 6d357564e9..7ab91937d7 100644 --- a/tools/kube-proxy/Dockerfile.template +++ b/tools/kube-proxy/Dockerfile.template @@ -7,25 +7,30 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --from=cosign / /usr/local/ +COPY --link --from=cosign / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubeadm" "${prefix}/bin/kubeadm" completion zsh >"${prefix}/share/zsh/vendor-completions/_kubeadm" diff --git a/tools/kubeaudit/Dockerfile.template b/tools/kubeaudit/Dockerfile.template index d883949afd..fed1bacb65 100644 --- a/tools/kubeaudit/Dockerfile.template +++ b/tools/kubeaudit/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubeaudit" "${prefix}/bin/kubeaudit" completion fish >"${prefix}/share/fish/vendor_completions.d/kubeaudit.fish" diff --git a/tools/kubebox/Dockerfile.template b/tools/kubebox/Dockerfile.template index 2ae0d54093..13c85cbe73 100644 --- a/tools/kubebox/Dockerfile.template +++ b/tools/kubebox/Dockerfile.template @@ -13,7 +13,7 @@ COPY --link --from=npm / /usr/local/ WORKDIR /uniget_bootstrap/libexec/kubebox ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubebuilder" "${prefix}/bin/kubebuilder" completion fish >"${prefix}/share/fish/vendor_completions.d/kubebuilder.fish" diff --git a/tools/kubeclarity-cli/Dockerfile.template b/tools/kubeclarity-cli/Dockerfile.template index efe3516907..5a5894fc3c 100644 --- a/tools/kubeclarity-cli/Dockerfile.template +++ b/tools/kubeclarity-cli/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubeclarity-cli" "${prefix}/bin/kubeclarity-cli" completion fish >"${prefix}/share/fish/vendor_completions.d/kubeclarity-cli.fish" diff --git a/tools/kubecolor/Dockerfile.template b/tools/kubecolor/Dockerfile.template index a9aebfea2a..6fd3496806 100644 --- a/tools/kubecolor/Dockerfile.template +++ b/tools/kubecolor/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubectl" +"${prefix}/bin/kubectl" completion zsh >"${prefix}/share/zsh/vendor-completions/_kubectl" +EOF +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/kubectl" -"${prefix}/bin/kubectl" completion zsh >"${prefix}/share/zsh/vendor-completions/_kubectl" +install --mode=0755 \ + "${uniget_cache_download}/${filename}" \ + "${prefix}/bin/kubectl-convert" EOF \ No newline at end of file diff --git a/tools/kubectx/Dockerfile.template b/tools/kubectx/Dockerfile.template index b02912dd49..a7930d24b6 100644 --- a/tools/kubectx/Dockerfile.template +++ b/tools/kubectx/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubescape" "${prefix}/bin/kubescape" completion fish >"${prefix}/share/fish/vendor_completions.d/kubescape.fish" diff --git a/tools/kubeseal/Dockerfile.template b/tools/kubeseal/Dockerfile.template index 8e0fcf30ca..22ef488939 100644 --- a/tools/kubeseal/Dockerfile.template +++ b/tools/kubeseal/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubesec" "${prefix}/bin/kubesec" completion fish >"${prefix}/share/fish/vendor_completions.d/kubesec.fish" diff --git a/tools/kubeshark/Dockerfile.template b/tools/kubeshark/Dockerfile.template index 5b70ecc371..d5170d6bdb 100644 --- a/tools/kubeshark/Dockerfile.template +++ b/tools/kubeshark/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubeshark" "${prefix}/bin/kubeshark" completion fish >"${prefix}/share/fish/vendor_completions.d/kubeshark.fish" diff --git a/tools/kubeswitch/Dockerfile.template b/tools/kubeswitch/Dockerfile.template index 8e2f184f4f..616a5febb7 100644 --- a/tools/kubeswitch/Dockerfile.template +++ b/tools/kubeswitch/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ipfs" EOF -RUN <"${prefix}/share/bash-completion/completions/kustomize" "${prefix}/bin/kustomize" completion fish >"${prefix}/share/fish/vendor_completions.d/kustomize.fish" "${prefix}/bin/kustomize" completion zsh >"${prefix}/share/zsh/vendor-completions/_kustomize" diff --git a/tools/kustomizer/Dockerfile.template b/tools/kustomizer/Dockerfile.template index dd893be1da..3f0ef75196 100644 --- a/tools/kustomizer/Dockerfile.template +++ b/tools/kustomizer/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kustomizer" "${prefix}/bin/kustomizer" completion fish >"${prefix}/share/fish/vendor_completions.d/kustomizer.fish" diff --git a/tools/kuttl/Dockerfile.template b/tools/kuttl/Dockerfile.template index 51eb0d5b3e..62a690ad88 100644 --- a/tools/kuttl/Dockerfile.template +++ b/tools/kuttl/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kubectl-kuttl" "${prefix}/bin/kubectl-kuttl" completion fish >"${prefix}/share/fish/vendor_completions.d/kubectl-kuttl.fish" "${prefix}/bin/kubectl-kuttl" completion zsh >"${prefix}/share/zsh/vendor-completions/_kubectl-kuttl" diff --git a/tools/kwok/Dockerfile.template b/tools/kwok/Dockerfile.template index 2a0ee8cca8..e57e93210a 100644 --- a/tools/kwok/Dockerfile.template +++ b/tools/kwok/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/kyverno" "${prefix}/bin/kyverno" completion fish >"${prefix}/share/fish/vendor_completions.d/kyverno.fish" diff --git a/tools/lab/Dockerfile.template b/tools/lab/Dockerfile.template index 331a7ddd52..6790505bd1 100644 --- a/tools/lab/Dockerfile.template +++ b/tools/lab/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/lab" "${prefix}/bin/lab" completion fish >"${prefix}/share/fish/vendor_completions.d/lab.fish" diff --git a/tools/lazydocker/Dockerfile.template b/tools/lazydocker/Dockerfile.template index 2e0b8c8472..a5cc22627a 100644 --- a/tools/lazydocker/Dockerfile.template +++ b/tools/lazydocker/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/loft" "${prefix}/bin/loft" completion fish >"${prefix}/share/fish/vendor_completions.d/loft.fish" "${prefix}/bin/loft" completion zsh >"${prefix}/share/zsh/vendor-completions/_loft" diff --git a/tools/logcli/Dockerfile.template b/tools/logcli/Dockerfile.template index f9cc34ab76..4ba03c48d5 100644 --- a/tools/logcli/Dockerfile.template +++ b/tools/logcli/Dockerfile.template @@ -7,13 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/logcli" "${prefix}/bin/logcli" --completion-script-zsh >"${prefix}/share/zsh/vendor-completions/_logcli" EOF \ No newline at end of file diff --git a/tools/loki-canary/Dockerfile.template b/tools/loki-canary/Dockerfile.template index 75a552dd26..8d8cf3059c 100644 --- a/tools/loki-canary/Dockerfile.template +++ b/tools/loki-canary/Dockerfile.template @@ -7,11 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/luet" "${prefix}/bin/luet" completion fish >"${prefix}/share/fish/vendor_completions.d/luet.fish" diff --git a/tools/lxroot/Dockerfile.template b/tools/lxroot/Dockerfile.template index 80db2bc25e..e8193b46a1 100644 --- a/tools/lxroot/Dockerfile.template +++ b/tools/lxroot/Dockerfile.template @@ -5,15 +5,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -RUN <"${prefix}/share/bash-completion/completions/marvin" diff --git a/tools/maven/Dockerfile.template b/tools/maven/Dockerfile.template index 5fdf683eac..1807993876 100644 --- a/tools/maven/Dockerfile.template +++ b/tools/maven/Dockerfile.template @@ -7,9 +7,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/meteor" diff --git a/tools/mgo/Dockerfile.template b/tools/mgo/Dockerfile.template index f5b6c21a25..ff0cd85233 100644 --- a/tools/mgo/Dockerfile.template +++ b/tools/mgo/Dockerfile.template @@ -11,7 +11,7 @@ COPY --link --from=go / /usr/local/ WORKDIR /go/src/github.com/CAFxX/mgo ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/minder" "${prefix}/bin/minder" completion fish >"${prefix}/share/fish/vendor_completions.d/minder.fish" diff --git a/tools/minectl/Dockerfile.template b/tools/minectl/Dockerfile.template index 4a5dcf43a9..6c588b09b3 100644 --- a/tools/minectl/Dockerfile.template +++ b/tools/minectl/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/minectl" "${prefix}/bin/minectl" completion fish >"${prefix}/share/fish/vendor_completions.d/minectl.fish" diff --git a/tools/minikube/Dockerfile.template b/tools/minikube/Dockerfile.template index d97f0c41d4..75e94692af 100644 --- a/tools/minikube/Dockerfile.template +++ b/tools/minikube/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/minikube" "${prefix}/bin/minikube" completion fish >"${prefix}/share/fish/vendor_completions.d/minikube.fish" "${prefix}/bin/minikube" completion zsh >"${prefix}/share/zsh/vendor-completions/_minikube" diff --git a/tools/minio/Dockerfile.template b/tools/minio/Dockerfile.template index 4ca959e44f..1f96fac164 100644 --- a/tools/minio/Dockerfile.template +++ b/tools/minio/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/nsc" "${prefix}/bin/nsc" completion fish >"${prefix}/share/fish/vendor_completions.d/nsc.fish" "${prefix}/bin/nsc" completion zsh >"${prefix}/share/zsh/vendor-completions/_nsc" diff --git a/tools/nancy/Dockerfile.template b/tools/nancy/Dockerfile.template index 9ddbda0039..0cf55ab453 100644 --- a/tools/nancy/Dockerfile.template +++ b/tools/nancy/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/nerdctl" "${prefix}/bin/nerdctl" completion fish >"${prefix}/share/fish/vendor_completions.d/nerdctl.fish" "${prefix}/bin/nerdctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_nerdctl" diff --git a/tools/newman/Dockerfile.template b/tools/newman/Dockerfile.template index b23ab2cf55..1c58fe1eb9 100644 --- a/tools/newman/Dockerfile.template +++ b/tools/newman/Dockerfile.template @@ -15,7 +15,7 @@ COPY --link --from=npm / /usr/local/ WORKDIR /uniget_bootstrap/libexec/newman ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/oc" diff --git a/tools/ocb/Dockerfile.template b/tools/ocb/Dockerfile.template index f43c518e90..67a3e54cbe 100644 --- a/tools/ocb/Dockerfile.template +++ b/tools/ocb/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ocb" "${prefix}/bin/ocb" completion fish >"${prefix}/share/fish/vendor_completions.d/ocb.fish" diff --git a/tools/oci-image-tool/Dockerfile.template b/tools/oci-image-tool/Dockerfile.template index 224f952464..c6a3a102d3 100644 --- a/tools/oci-image-tool/Dockerfile.template +++ b/tools/oci-image-tool/Dockerfile.template @@ -16,7 +16,7 @@ ARG version ENV CGO_ENABLED=0 \ GO111MODULE=auto \ GOPATH=/go -RUN <"${prefix}/share/bash-completion/completions/ocm" "${prefix}/bin/ocm" completion fish >"${prefix}/share/fish/vendor_completions.d/ocm.fish" diff --git a/tools/octopilot/Dockerfile.template b/tools/octopilot/Dockerfile.template index 9d1fe85f2a..46c98676dc 100644 --- a/tools/octopilot/Dockerfile.template +++ b/tools/octopilot/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/octosql" diff --git a/tools/ojg/Dockerfile.template b/tools/ojg/Dockerfile.template index 3ce6bd5944..aae485363f 100644 --- a/tools/ojg/Dockerfile.template +++ b/tools/ojg/Dockerfile.template @@ -8,12 +8,12 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=go / /usr/local/ COPY --link --from=make / /usr/local/ WORKDIR /go/src/github.com/ohler55/ojg -RUN <"${prefix}/share/bash-completion/completions/opa" "${prefix}/bin/opa" completion fish >"${prefix}/share/fish/vendor_completions.d/opa.fish" "${prefix}/bin/opa" completion zsh >"${prefix}/share/zsh/vendor-completions/_opa" diff --git a/tools/openjdk-jre/Dockerfile.template b/tools/openjdk-jre/Dockerfile.template index e4ac11e68a..61cc14806c 100644 --- a/tools/openjdk-jre/Dockerfile.template +++ b/tools/openjdk-jre/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/oras" "${prefix}/bin/oras" completion fish >"${prefix}/share/fish/vendor_completions.d/oras.fish" diff --git a/tools/osquery/Dockerfile.template b/tools/osquery/Dockerfile.template index a94870ad3a..fe791aeb74 100644 --- a/tools/osquery/Dockerfile.template +++ b/tools/osquery/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/pack" "${prefix}/bin/pack" completion fish >"${prefix}/share/fish/vendor_completions.d/pack.fish" diff --git a/tools/packer/Dockerfile.template b/tools/packer/Dockerfile.template index d9fa85f9cc..a4f31d4f63 100644 --- a/tools/packer/Dockerfile.template +++ b/tools/packer/Dockerfile.template @@ -7,10 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/etc/profile.d/packer.sh" EOF \ No newline at end of file diff --git a/tools/pacstall/Dockerfile.template b/tools/pacstall/Dockerfile.template index 20a56d7d24..a4b9003ee0 100644 --- a/tools/pacstall/Dockerfile.template +++ b/tools/pacstall/Dockerfile.template @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/paranoia" "${prefix}/bin/paranoia" completion fish >"${prefix}/share/fish/vendor_completions.d/paranoia.fish" diff --git a/tools/parca-agent/Dockerfile.template b/tools/parca-agent/Dockerfile.template index 822ad2535e..0bc473d0c8 100644 --- a/tools/parca-agent/Dockerfile.template +++ b/tools/parca-agent/Dockerfile.template @@ -7,9 +7,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/pipx" -#register-python-argcomplete --shell fish pipx >"${prefix}/share/fish/vendor_completions.d/pipx.fish" -#register-python-argcomplete pipx >"${prefix}/share/zsh/vendor-completions/_pipx" EOF diff --git a/tools/podman-docker-shim/Dockerfile.template b/tools/podman-docker-shim/Dockerfile.template index be28c8d44f..cbb0bb1c6c 100644 --- a/tools/podman-docker-shim/Dockerfile.template +++ b/tools/podman-docker-shim/Dockerfile.template @@ -5,11 +5,9 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version - COPY docker /uniget_bootstrap/libexec/podman/ -RUN <"${prefix}/share/bash-completion/completions/popeye" "${prefix}/bin/popeye" completion fish >"${prefix}/share/fish/vendor_completions.d/popeye.fish" diff --git a/tools/portainer/Dockerfile.template b/tools/portainer/Dockerfile.template index 813d4792e5..b6e5142657 100644 --- a/tools/portainer/Dockerfile.template +++ b/tools/portainer/Dockerfile.template @@ -8,10 +8,16 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version COPY portainer.service.go-template /uniget_bootstrap/etc/systemd/system/ -RUN <"${prefix}/share/bash-completion/completions/porter" "${prefix}/bin/porter" completion fish >"${prefix}/share/fish/vendor_completions.d/porter.fish" "${prefix}/bin/porter" completion zsh >"${prefix}/share/zsh/vendor-completions/_porter" diff --git a/tools/posting/Dockerfile.template b/tools/posting/Dockerfile.template index ab2d90b090..b14509700d 100644 --- a/tools/posting/Dockerfile.template +++ b/tools/posting/Dockerfile.template @@ -8,10 +8,10 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ -RUN <"${prefix}/share/bash-completion/completions/process-compose" "${prefix}/bin/process-compose" completion fish >"${prefix}/share/fish/vendor_completions.d/process-compose.fish" diff --git a/tools/procs/Dockerfile.template b/tools/procs/Dockerfile.template index 4f25de7889..dcf7a88fc2 100644 --- a/tools/procs/Dockerfile.template +++ b/tools/procs/Dockerfile.template @@ -7,12 +7,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/procs" "${prefix}/bin/procs" --gen-completion-out fish >"${prefix}/share/fish/vendor_completions.d/procs.fish" "${prefix}/bin/procs" --gen-completion-out zsh >"${prefix}/share/zsh/vendor-completions/_procs" diff --git a/tools/promcolor/Dockerfile.template b/tools/promcolor/Dockerfile.template index 009ae3f40d..9466261ce7 100644 --- a/tools/promcolor/Dockerfile.template +++ b/tools/promcolor/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/pulumi" "${prefix}/bin/pulumi" completion fish >"${prefix}/share/fish/vendor_completions.d/pulumi.fish" diff --git a/tools/purl/Dockerfile.template b/tools/purl/Dockerfile.template index 097448e38b..70ddc2b6e1 100644 --- a/tools/purl/Dockerfile.template +++ b/tools/purl/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/regal" "${prefix}/bin/regal" completion fish >"${prefix}/share/fish/vendor_completions.d/regal.fish" diff --git a/tools/regclient/Dockerfile.template b/tools/regclient/Dockerfile.template index e79f1ef10a..d4500b5c03 100644 --- a/tools/regclient/Dockerfile.template +++ b/tools/regclient/Dockerfile.template @@ -5,15 +5,20 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/regctl" "${prefix}/bin/regctl" completion fish >"${prefix}/share/fish/vendor_completions.d/regctl.fish" "${prefix}/bin/regctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_regctl" diff --git a/tools/registry/Dockerfile.template b/tools/registry/Dockerfile.template index ca91a9a155..ca5c1e34a4 100644 --- a/tools/registry/Dockerfile.template +++ b/tools/registry/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/rekor-cli" -"${prefix}/bin/rekor-cli" completion fish >"${prefix}/share/fish/vendor_completions.d/rekor-cli.fish" -"${prefix}/bin/rekor-cli" completion zsh >"${prefix}/share/zsh/vendor-completions/_rekor-cli" +echo "### Downloading rekor-cli ${version}" +check-github-release-asset "sigstore/rekor" "v${version}" "${filename}" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \ + "${url}" -echo "### Checking PGP signature for rekor-cli ${version}" -curl --silent --show-error --location --fail --output "rekor-cli-linux-${alt_arch}.sig" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-cli-linux-${alt_arch}.sig" +echo "### Checking signature for rekor-cli ${version}" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}.sig" \ + "${url}.sig" cosign verify-blob \ --key "https://raw.githubusercontent.com/sigstore/rekor/v${version}/release/release-cosign.pub" \ - --signature "rekor-cli-linux-${alt_arch}.sig" \ - "${prefix}/bin/rekor-cli" -rm -f "rekor-cli-linux-${alt_arch}.sig" + --signature "${uniget_cache_download}/${filename}.sig" \ + "${uniget_cache_download}/${filename}" echo "### Checking keyless signature for rekor-cli ${version}" -curl --silent --show-error --location --fail --output "rekor-cli-linux-${alt_arch}-keyless.pem" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-cli-linux-${alt_arch}-keyless.pem" -curl --silent --show-error --location --fail --output "rekor-cli-linux-${alt_arch}-keyless.sig" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-cli-linux-${alt_arch}-keyless.sig" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.pem" \ + "${url}-keyless.pem" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.sig" \ + "${url}-keyless.sig" COSIGN_EXPERIMENTAL=1 cosign verify-blob \ - --cert "rekor-cli-linux-${alt_arch}-keyless.pem" \ - --signature "rekor-cli-linux-${alt_arch}-keyless.sig" \ + --cert "${uniget_cache_download}/${filename}-keyless.pem" \ + --signature "${uniget_cache_download}/${filename}-keyless.sig" \ --certificate-oidc-issuer https://accounts.google.com \ --certificate-identity "keyless@projectsigstore.iam.gserviceaccount.com" \ + "${uniget_cache_download}/${filename}" + +echo "### Installing rekor-cli ${version}" +install --mode=0755 \ + "${uniget_cache_download}/${filename}" \ "${prefix}/bin/rekor-cli" -rm -f "rekor-cli-linux-${alt_arch}-keyless.pem" "rekor-cli-linux-${alt_arch}-keyless.sig" + +echo "### Installing shell completion for rekor-cli ${version}" +"${prefix}/bin/rekor-cli" completion bash >"${prefix}/share/bash-completion/completions/rekor-cli" +"${prefix}/bin/rekor-cli" completion fish >"${prefix}/share/fish/vendor_completions.d/rekor-cli.fish" +"${prefix}/bin/rekor-cli" completion zsh >"${prefix}/share/zsh/vendor-completions/_rekor-cli" "${prefix}/bin/rekor-cli" version +EOF -echo "### Installing rekor-server ${version}" -curl --silent --show-error --location --fail --output "${prefix}/bin/rekor-server" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-server-linux-${alt_arch}" -chmod +x "${prefix}/bin/rekor-server" +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/rekor-server" "${prefix}/bin/rekor-server" completion fish >"${prefix}/share/fish/vendor_completions.d/rekor-server.fish" "${prefix}/bin/rekor-server" completion zsh >"${prefix}/share/zsh/vendor-completions/_rekor-server" -echo "### Checking PGP signature for rekor-server ${version}" -curl --silent --show-error --location --fail --output "rekor-server-linux-${alt_arch}.sig" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-server-linux-${alt_arch}.sig" +echo "### Checking signature for rekor-server ${version}" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}.sig" \ + "${url}.sig" cosign verify-blob \ --key "https://raw.githubusercontent.com/sigstore/rekor/v${version}/release/release-cosign.pub" \ - --signature "rekor-server-linux-${alt_arch}.sig" \ + --signature "${uniget_cache_download}/${filename}.sig" \ "${prefix}/bin/rekor-server" -rm -f "rekor-server-linux-${alt_arch}.sig" echo "### Checking keyless signature for rekor-server ${version}" -curl --silent --show-error --location --fail --output "rekor-server-linux-${alt_arch}-keyless.pem" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-server-linux-${alt_arch}-keyless.pem" -curl --silent --show-error --location --fail --output "rekor-server-linux-${alt_arch}-keyless.sig" \ - "https://github.com/sigstore/rekor/releases/download/v${version}/rekor-server-linux-${alt_arch}-keyless.sig" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.pem" \ + "${url}-keyless.pem" +curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}-keyless.sig" \ + "${url}-keyless.sig" COSIGN_EXPERIMENTAL=1 cosign verify-blob \ - --cert "rekor-server-linux-${alt_arch}-keyless.pem" \ - --signature "rekor-server-linux-${alt_arch}-keyless.sig" \ + --cert "${uniget_cache_download}/${filename}-keyless.pem" \ + --signature "${uniget_cache_download}/${filename}-keyless.sig" \ --certificate-oidc-issuer https://accounts.google.com \ --certificate-identity "keyless@projectsigstore.iam.gserviceaccount.com" \ "${prefix}/bin/rekor-server" -rm -f "rekor-server-linux-${alt_arch}-keyless.pem" "rekor-server-linux-${alt_arch}-keyless.sig" + +echo "### Installing rekor-server ${version}" +install --mode=0755 \ + "${uniget_cache_download}/${filename}" \ + "${prefix}/bin/rekor-server" "${prefix}/bin/rekor-server" version EOF \ No newline at end of file diff --git a/tools/release-cli/Dockerfile.template b/tools/release-cli/Dockerfile.template index 4441f89ccf..8d9bf0c9a1 100644 --- a/tools/release-cli/Dockerfile.template +++ b/tools/release-cli/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ripgrep" -#"${prefix}/bin/ripgrep" completion fish >"${prefix}/share/fish/vendor_completions.d/ripgrep.fish" -#"${prefix}/bin/ripgrep" completion zsh >"${prefix}/share/zsh/vendor-completions/_ripgrep" -#EOF +EOF \ No newline at end of file diff --git a/tools/rke/Dockerfile.template b/tools/rke/Dockerfile.template index 7a0457646d..4136bed54d 100644 --- a/tools/rke/Dockerfile.template +++ b/tools/rke/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/runtainer" "${prefix}/bin/runtainer" completion fish >"${prefix}/share/fish/vendor_completions.d/runtainer.fish" diff --git a/tools/rush/Dockerfile.template b/tools/rush/Dockerfile.template index 88c0470b38..3d410bb674 100644 --- a/tools/rush/Dockerfile.template +++ b/tools/rush/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/rustup" "${prefix}/cargo/bin/rustup" completions fish rustup >"${prefix}/share/fish/vendor_completions.d/rustup.fish" "${prefix}/cargo/bin/rustup" completions zsh rustup >"${prefix}/share/zsh/vendor-completions/_rustup" @@ -43,7 +43,7 @@ cp \ "${prefix}/rustup/toolchains/${version}-${arch}-unknown-linux-gnu/share/zsh/site-functions/_cargo" \ "${prefix}/share/zsh/vendor-completions/" EOF -RUN <"${prefix}/share/bash-completion/completions/savvy" "${prefix}/bin/savvy" completion fish >"${prefix}/share/fish/vendor_completions.d/savvy.fish" diff --git a/tools/sbom-operator/Dockerfile.template b/tools/sbom-operator/Dockerfile.template index 1817a17a5f..6fd1043906 100644 --- a/tools/sbom-operator/Dockerfile.template +++ b/tools/sbom-operator/Dockerfile.template @@ -10,21 +10,26 @@ SHELL [ "bash", "-clo", "errexit" ] COPY --link --from=cosign / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/sbomasm" "${prefix}/bin/sbomasm" completion fish >"${prefix}/share/fish/vendor_completions.d/sbomasm.fish" diff --git a/tools/sbomdiff/Dockerfile.template b/tools/sbomdiff/Dockerfile.template index 6089cbf8f2..1364d52fcf 100644 --- a/tools/sbomdiff/Dockerfile.template +++ b/tools/sbomdiff/Dockerfile.template @@ -12,6 +12,6 @@ COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/sbomex" "${prefix}/bin/sbomex" completion fish >"${prefix}/share/fish/vendor_completions.d/sbomex.fish" diff --git a/tools/sbomgr/Dockerfile.template b/tools/sbomgr/Dockerfile.template index 74bf00ae3b..242b5a81f1 100644 --- a/tools/sbomgr/Dockerfile.template +++ b/tools/sbomgr/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/sbomgr" "${prefix}/bin/sbomgr" completion fish >"${prefix}/share/fish/vendor_completions.d/sbomgr.fish" diff --git a/tools/sbomqs/Dockerfile.template b/tools/sbomqs/Dockerfile.template index d4b73d2421..1390feff8f 100644 --- a/tools/sbomqs/Dockerfile.template +++ b/tools/sbomqs/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/sbomqs" "${prefix}/bin/sbomqs" completion fish >"${prefix}/share/fish/vendor_completions.d/sbomqs.fish" diff --git a/tools/sbomtools/Dockerfile.template b/tools/sbomtools/Dockerfile.template index b1c80f7bd4..b4e7a37b78 100644 --- a/tools/sbomtools/Dockerfile.template +++ b/tools/sbomtools/Dockerfile.template @@ -12,7 +12,7 @@ COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/scorecard" diff --git a/tools/sd/Dockerfile.template b/tools/sd/Dockerfile.template index 5413230b4d..df2f362791 100644 --- a/tools/sd/Dockerfile.template +++ b/tools/sd/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/man/man1/skate.1" diff --git a/tools/skopeo/Dockerfile.template b/tools/skopeo/Dockerfile.template index 5ef657289d..3feaa36fce 100644 --- a/tools/skopeo/Dockerfile.template +++ b/tools/skopeo/Dockerfile.template @@ -8,11 +8,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -COPY --link --from=go / /usr/local/ -COPY --link --from=go-md2man / /usr/local/ -ARG name -ARG version -RUN <"${prefix}/share/bash-completion/completions/sonobuoy" diff --git a/tools/sops/Dockerfile.template b/tools/sops/Dockerfile.template index 4be98eeff8..84d15830a2 100644 --- a/tools/sops/Dockerfile.template +++ b/tools/sops/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/spc" "${prefix}/bin/spc" completion fish >"${prefix}/share/fish/vendor_completions.d/spc.fish" diff --git a/tools/spdx-sbom-generator/Dockerfile.template b/tools/spdx-sbom-generator/Dockerfile.template index 22709832cf..7936f3e301 100644 --- a/tools/spdx-sbom-generator/Dockerfile.template +++ b/tools/spdx-sbom-generator/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/stern" "${prefix}/bin/stern" --completion fish >"${prefix}/share/fish/vendor_completions.d/stern.fish" diff --git a/tools/stress-ng/Dockerfile.template b/tools/stress-ng/Dockerfile.template index 9d1e5f47e2..2e4655f20f 100644 --- a/tools/stress-ng/Dockerfile.template +++ b/tools/stress-ng/Dockerfile.template @@ -7,11 +7,11 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=make / /usr/local/ WORKDIR /tmp/stress-ng -RUN <"${prefix}/share/bash-completion/completions/syft" "${prefix}/bin/syft" completion fish | sed -E 's/complete -c -e/complete -c syft -e/' >"${prefix}/share/fish/vendor_completions.d/syft.fish" diff --git a/tools/sysbox/Dockerfile.template b/tools/sysbox/Dockerfile.template index 405a03ed17..0e7e168e62 100644 --- a/tools/sysbox/Dockerfile.template +++ b/tools/sysbox/Dockerfile.template @@ -8,11 +8,15 @@ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version WORKDIR /tmp/sysbox -RUN <"${prefix}/share/bash-completion/completions/systemd-docker" -#"${prefix}/bin/systemd-docker" completion fish >"${prefix}/share/fish/vendor_completions.d/systemd-docker.fish" -#"${prefix}/bin/systemd-docker" completion zsh >"${prefix}/share/zsh/vendor-completions/_systemd-docker" -#EOF \ No newline at end of file +EOF \ No newline at end of file diff --git a/tools/tailspin/Dockerfile.template b/tools/tailspin/Dockerfile.template index c2ce8dc96c..9a2d448330 100644 --- a/tools/tailspin/Dockerfile.template +++ b/tools/tailspin/Dockerfile.template @@ -11,7 +11,7 @@ COPY --link --from=rust / /usr/local/ WORKDIR /tmp/github.com/bensadeh/tailspin ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/talosctl" "${prefix}/bin/talosctl" completion fish >"${prefix}/share/fish/vendor_completions.d/talosctl.fish" diff --git a/tools/task/Dockerfile.template b/tools/task/Dockerfile.template index 6bbcff78d0..b398eac7c4 100644 --- a/tools/task/Dockerfile.template +++ b/tools/task/Dockerfile.template @@ -5,15 +5,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/tejolote" "${prefix}/bin/tejolote" completion fish >"${prefix}/share/fish/vendor_completions.d/tejolote.fish" diff --git a/tools/telegraf/Dockerfile.template b/tools/telegraf/Dockerfile.template index c0ff813fa5..d94be01ef7 100644 --- a/tools/telegraf/Dockerfile.template +++ b/tools/telegraf/Dockerfile.template @@ -7,10 +7,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/terraform-backend-git" "${prefix}/bin/terraform-backend-git" completion fish >"${prefix}/share/fish/vendor_completions.d/terraform-backend-git.fish" diff --git a/tools/terraform-docs/Dockerfile.template b/tools/terraform-docs/Dockerfile.template index 3c092b2ba3..de14c74062 100644 --- a/tools/terraform-docs/Dockerfile.template +++ b/tools/terraform-docs/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/terraform-docs" diff --git a/tools/terraform/Dockerfile.template b/tools/terraform/Dockerfile.template index 3d5f5e4bc5..666d4053a2 100644 --- a/tools/terraform/Dockerfile.template +++ b/tools/terraform/Dockerfile.template @@ -7,11 +7,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/tetra" "${prefix}/bin/tetra" completion fish >"${prefix}/share/fish/vendor_completions.d/tetra.fish" diff --git a/tools/textlint/Dockerfile.template b/tools/textlint/Dockerfile.template index 473edc9055..59255ff7e9 100644 --- a/tools/textlint/Dockerfile.template +++ b/tools/textlint/Dockerfile.template @@ -13,7 +13,7 @@ COPY --link --from=npm / /usr/local/ WORKDIR /uniget_bootstrap/libexec/textlint ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/timoni" diff --git a/tools/tini/Dockerfile.template b/tools/tini/Dockerfile.template index 841c5a511c..fd1916eb0c 100644 --- a/tools/tini/Dockerfile.template +++ b/tools/tini/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/tkn" "${prefix}/bin/tkn" completion fish >"${prefix}/share/fish/vendor_completions.d/tkn.fish" @@ -20,8 +24,15 @@ curl --silent --show-error --location --fail "https://github.com/tektoncd/cli/re ln -s "${prefix}/bin/tkn" "${prefix}/bin/kubectl-tkn" EOF -RUN <"${prefix}/share/bash-completion/completions/trivy" @@ -70,7 +73,7 @@ mkdir -p "${prefix}/share/trivy" mv "${prefix}/bin/contrib" "${prefix}/share/trivy/" EOF -RUN <"${prefix}/share/bash-completion/completions/vcluster" "${prefix}/bin/vcluster" completion fish >"${prefix}/share/fish/vendor_completions.d/vcluster.fish" diff --git a/tools/vendir/Dockerfile.template b/tools/vendir/Dockerfile.template index 97578d8a41..9da8f07320 100644 --- a/tools/vendir/Dockerfile.template +++ b/tools/vendir/Dockerfile.template @@ -7,9 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/venom" "${prefix}/bin/venom" completion fish >"${prefix}/share/fish/vendor_completions.d/venom.fish" diff --git a/tools/vexctl/Dockerfile.template b/tools/vexctl/Dockerfile.template index 90a944230c..2c5dfdd557 100644 --- a/tools/vexctl/Dockerfile.template +++ b/tools/vexctl/Dockerfile.template @@ -14,7 +14,7 @@ WORKDIR /go/src/github.com/openvex/vexctl ARG name ARG version ENV CGO_ENABLED=0 -RUN <"${prefix}/share/bash-completion/completions/foo" -#"${prefix}/bin/foo" completion fish >"${prefix}/share/fish/vendor_completions.d/foo.fish" -#"${prefix}/bin/foo" completion zsh >"${prefix}/share/zsh/vendor-completions/_foo" -#EOF \ No newline at end of file +tar --file="${uniget_cache_download}/${filename}" --list +tar --file="${uniget_cache_download}/${filename}" --extract --gzip --directory="${prefix}/bin/" --no-same-owner \ + viking +EOF \ No newline at end of file diff --git a/tools/visidata/Dockerfile.template b/tools/visidata/Dockerfile.template index 4b60578d15..54b62aaf57 100644 --- a/tools/visidata/Dockerfile.template +++ b/tools/visidata/Dockerfile.template @@ -8,11 +8,11 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] -ARG name -ARG version COPY --link --from=python / /usr/local/ COPY --link --from=shiv / /usr/local/ -RUN <"${prefix}/share/bash-completion/completions/warp" diff --git a/tools/wasmedge/Dockerfile.template b/tools/wasmedge/Dockerfile.template index c061a94b1e..217a6ee9f1 100644 --- a/tools/wasmedge/Dockerfile.template +++ b/tools/wasmedge/Dockerfile.template @@ -7,8 +7,14 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/watchtower" diff --git a/tools/webdavfs/Dockerfile.template b/tools/webdavfs/Dockerfile.template index 474b08cbd4..8bcd9df459 100644 --- a/tools/webdavfs/Dockerfile.template +++ b/tools/webdavfs/Dockerfile.template @@ -11,7 +11,7 @@ COPY --link --from=go / /usr/local/ WORKDIR /go/src/github.com/miquels/webdavfs ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/whalebrew" "${prefix}/bin/whalebrew" completion fish >"${prefix}/share/fish/vendor_completions.d/whalebrew.fish" diff --git a/tools/win-gpg-agent/Dockerfile.template b/tools/win-gpg-agent/Dockerfile.template index d185745c46..3280494fef 100644 --- a/tools/win-gpg-agent/Dockerfile.template +++ b/tools/win-gpg-agent/Dockerfile.template @@ -5,14 +5,17 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/witness" diff --git a/tools/wksctl/Dockerfile.template b/tools/wksctl/Dockerfile.template index 6d6c79b6cf..51a9f6906b 100644 --- a/tools/wksctl/Dockerfile.template +++ b/tools/wksctl/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/wksctl" diff --git a/tools/woke/Dockerfile.template b/tools/woke/Dockerfile.template index 79e3d0cde7..1662fbce44 100644 --- a/tools/woke/Dockerfile.template +++ b/tools/woke/Dockerfile.template @@ -7,9 +7,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/yq" "${prefix}/bin/yq" shell-completion fish >"${prefix}/share/fish/vendor_completions.d/yq.fish" "${prefix}/bin/yq" shell-completion zsh >"${prefix}/share/zsh/vendor-completions/_yq" diff --git a/tools/ytt/Dockerfile.template b/tools/ytt/Dockerfile.template index c925c80edf..e12e6182d7 100644 --- a/tools/ytt/Dockerfile.template +++ b/tools/ytt/Dockerfile.template @@ -7,11 +7,18 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/ytt" "${prefix}/bin/ytt" completion fish >"${prefix}/share/fish/vendor_completions.d/ytt.fish" "${prefix}/bin/ytt" completion zsh >"${prefix}/share/zsh/vendor-completions/_ytt" diff --git a/tools/zed/Dockerfile.template b/tools/zed/Dockerfile.template index 917dd7ad84..e5e8eb4e0e 100644 --- a/tools/zed/Dockerfile.template +++ b/tools/zed/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/zeitgeist" "${prefix}/bin/zeitgeist" completion fish >"${prefix}/share/fish/vendor_completions.d/zeitgeist.fish" "${prefix}/bin/zeitgeist" completion zsh >"${prefix}/share/zsh/vendor-completions/_zeitgeist" diff --git a/tools/zitadel/Dockerfile.template b/tools/zitadel/Dockerfile.template index dc94e6bc36..8f0cccbd8b 100644 --- a/tools/zitadel/Dockerfile.template +++ b/tools/zitadel/Dockerfile.template @@ -7,10 +7,16 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ SHELL [ "bash", "-clo", "errexit" ] ARG name ARG version -RUN <"${prefix}/share/bash-completion/completions/zitadel" diff --git a/tools/zot/Dockerfile.template b/tools/zot/Dockerfile.template index f58e7017cc..f1cbbd8b3e 100644 --- a/tools/zot/Dockerfile.template +++ b/tools/zot/Dockerfile.template @@ -5,15 +5,20 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ /etc/profile.d/ \ /etc/profile.d/ SHELL [ "bash", "-clo", "errexit" ] - ARG name ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/zot" "${prefix}/bin/zot" completion fish >"${prefix}/share/fish/vendor_completions.d/zot.fish" "${prefix}/bin/zot" completion zsh >"${prefix}/share/zsh/vendor-completions/_zot"