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"