diff --git a/tools/hadolint/Dockerfile.template b/tools/hadolint/Dockerfile.template index 4626102152..732e8823e2 100644 --- a/tools/hadolint/Dockerfile.template +++ b/tools/hadolint/Dockerfile.template @@ -1,13 +1,15 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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}${target}/share/bash-completion/completions/havener" -"${prefix}${target}/bin/havener" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/havener.fish" -"${prefix}${target}/bin/havener" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_havener" +"${prefix}/bin/havener" completion bash >"${prefix}/share/bash-completion/completions/havener" +"${prefix}/bin/havener" completion fish >"${prefix}/share/fish/vendor_completions.d/havener.fish" +"${prefix}/bin/havener" completion zsh >"${prefix}/share/zsh/vendor-completions/_havener" EOF \ No newline at end of file diff --git a/tools/hcloud/Dockerfile.template b/tools/hcloud/Dockerfile.template index 55f49ca297..881dce7fa4 100644 --- a/tools/hcloud/Dockerfile.template +++ b/tools/hcloud/Dockerfile.template @@ -1,16 +1,18 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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}${target}/share/bash-completion/completions/hcloud" -"${prefix}${target}/bin/hcloud" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/hcloud.fish" -"${prefix}${target}/bin/hcloud" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_hcloud" +"${prefix}/bin/hcloud" completion bash >"${prefix}/share/bash-completion/completions/hcloud" +"${prefix}/bin/hcloud" completion fish >"${prefix}/share/fish/vendor_completions.d/hcloud.fish" +"${prefix}/bin/hcloud" completion zsh >"${prefix}/share/zsh/vendor-completions/_hcloud" EOF \ No newline at end of file diff --git a/tools/helm-plugins/Dockerfile.template b/tools/helm-plugins/Dockerfile.template index 7ebdd817d4..ed43df19f6 100644 --- a/tools/helm-plugins/Dockerfile.template +++ b/tools/helm-plugins/Dockerfile.template @@ -1,17 +1,19 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main +FROM ghcr.io/uniget-org/tools/helm:latest AS helm -FROM ghcr.io/uniget-org/tools/helm:${ref} AS helm - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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=helm / / RUN <"${prefix}${target}/etc/profile.d/helm-plugins.sh" +echo "export HELM_PLUGINS=/share/helm/plugins" >"${prefix}/etc/profile.d/helm-plugins.sh" -export HELM_PLUGINS=${prefix}${target}/share/helm/plugins +export HELM_PLUGINS=${prefix}/share/helm/plugins plugins=( https://github.com/mstrzele/helm-edit @@ -50,11 +52,11 @@ for url in "${plugins[@]}"; do "${HELM_PLUGINS}/${name}/*.md" done -helm diff completion bash >"${prefix}${target}/share/bash-completion/completions/helm-diff" -helm diff completion fish >"${prefix}${target}/share/fish/vendor_completions.d/helm-diff.fish" -helm diff completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_helm-diff" +helm diff completion bash >"${prefix}/share/bash-completion/completions/helm-diff" +helm diff completion fish >"${prefix}/share/fish/vendor_completions.d/helm-diff.fish" +helm diff completion zsh >"${prefix}/share/zsh/vendor-completions/_helm-diff" -helm sigstore completion bash >"${prefix}${target}/share/bash-completion/completions/helm-sigstore" -helm sigstore completion fish >"${prefix}${target}/share/fish/vendor_completions.d/helm-sigstore.fish" -helm sigstore completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_helm-sigstore" +helm sigstore completion bash >"${prefix}/share/bash-completion/completions/helm-sigstore" +helm sigstore completion fish >"${prefix}/share/fish/vendor_completions.d/helm-sigstore.fish" +helm sigstore completion zsh >"${prefix}/share/zsh/vendor-completions/_helm-sigstore" EOF \ No newline at end of file diff --git a/tools/helm/Dockerfile.template b/tools/helm/Dockerfile.template index f1f43989b7..ab78378a6a 100644 --- a/tools/helm/Dockerfile.template +++ b/tools/helm/Dockerfile.template @@ -1,15 +1,17 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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}${target}/share/bash-completion/completions/helm" -"${prefix}${target}/bin/helm" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/helm.fish" -"${prefix}${target}/bin/helm" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_helm" +"${prefix}/bin/helm" completion bash >"${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" EOF diff --git a/tools/helmfile/Dockerfile.template b/tools/helmfile/Dockerfile.template index bb871935bf..77a652e733 100644 --- a/tools/helmfile/Dockerfile.template +++ b/tools/helmfile/Dockerfile.template @@ -1,18 +1,21 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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}${target}/share/bash-completion/completions/foo" -#"${prefix}${target}/bin/foo" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/foo.fish" -#"${prefix}${target}/bin/foo" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_foo" +#"${prefix}/bin/foo" completion bash >"${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 diff --git a/tools/hexyl/Dockerfile.template b/tools/hexyl/Dockerfile.template index 72862b33c1..aef2a47638 100644 --- a/tools/hexyl/Dockerfile.template +++ b/tools/hexyl/Dockerfile.template @@ -1,8 +1,10 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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}${target}/share/bash-completion/completions/hubble" -"${prefix}${target}/bin/hubble" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/hubble.fish" -"${prefix}${target}/bin/hubble" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_hubble" +| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner +"${prefix}/bin/hubble" completion bash >"${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" EOF \ No newline at end of file diff --git a/tools/huber/Dockerfile.template b/tools/huber/Dockerfile.template index 4eec5e554c..15c9fd8b02 100644 --- a/tools/huber/Dockerfile.template +++ b/tools/huber/Dockerfile.template @@ -1,32 +1,43 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main +#FROM ghcr.io/uniget-org/tools/rust:latest AS rust -FROM ghcr.io/uniget-org/tools/rust:${ref} AS rust - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare -COPY --from=rust / / -ARG DEBIAN_FRONTEND=noninteractive -RUN <"${prefix}${target}/share/bash-completion/completions/hugo" -"${prefix}${target}/bin/hugo" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/hugo.fish" -"${prefix}${target}/bin/hugo" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_hugo" +"${prefix}/bin/hugo" gen man --dir "${prefix}/share/man/man1" +"${prefix}/bin/hugo" completion bash >"${prefix}/share/bash-completion/completions/hugo" +"${prefix}/bin/hugo" completion fish >"${prefix}/share/fish/vendor_completions.d/hugo.fish" +"${prefix}/bin/hugo" completion zsh >"${prefix}/share/zsh/vendor-completions/_hugo" EOF \ No newline at end of file diff --git a/tools/hurl/Dockerfile.template b/tools/hurl/Dockerfile.template index 9b10586ad4..bb3750ae2a 100644 --- a/tools/hurl/Dockerfile.template +++ b/tools/hurl/Dockerfile.template @@ -1,16 +1,18 @@ #syntax=docker/dockerfile:1.6.0 -ARG ref=main - -FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare +FROM nicholasdille/ubuntu:22.04 AS prepare +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 <