diff --git a/tools/dagger/Dockerfile.template b/tools/dagger/Dockerfile.template index 47b5677bce..d8fd95e1b7 100644 --- a/tools/dagger/Dockerfile.template +++ b/tools/dagger/Dockerfile.template @@ -10,6 +10,6 @@ ARG version RUN <"${prefix}${target}/share/bash-completion/completions/datree" -"${prefix}${target}/bin/datree" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/datree.fish" -"${prefix}${target}/bin/datree" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_datree" +mv "/tmp/datree" "${prefix}/bin" +"${prefix}/bin/datree" completion bash >"${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}${target}/share/bash-completion/completions/depot" -"${prefix}${target}/bin/depot" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/depot.fish" -"${prefix}${target}/bin/depot" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_depot" +"${prefix}/bin/depot" completion bash >"${prefix}/share/bash-completion/completions/depot" +"${prefix}/bin/depot" completion fish >"${prefix}/share/fish/vendor_completions.d/depot.fish" +"${prefix}/bin/depot" completion zsh >"${prefix}/share/zsh/vendor-completions/_depot" EOF \ No newline at end of file diff --git a/tools/devbox/Dockerfile.template b/tools/devbox/Dockerfile.template index daf2c4cdb3..a8f30bfd78 100644 --- a/tools/devbox/Dockerfile.template +++ b/tools/devbox/Dockerfile.template @@ -10,9 +10,9 @@ ARG version RUN <"${prefix}${target}/share/bash-completion/completions/devbox" -"${prefix}${target}/bin/devbox" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/devbox.fish" -"${prefix}${target}/bin/devbox" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_devbox" +"${prefix}/bin/devbox" completion bash >"${prefix}/share/bash-completion/completions/devbox" +"${prefix}/bin/devbox" completion fish >"${prefix}/share/fish/vendor_completions.d/devbox.fish" +"${prefix}/bin/devbox" completion zsh >"${prefix}/share/zsh/vendor-completions/_devbox" EOF \ No newline at end of file diff --git a/tools/devcontainer/Dockerfile.template b/tools/devcontainer/Dockerfile.template index eb3c0aa1c8..db9950304c 100644 --- a/tools/devcontainer/Dockerfile.template +++ b/tools/devcontainer/Dockerfile.template @@ -21,12 +21,12 @@ apt-get update apt-get -y install --no-install-recommends \ build-essential EOF -WORKDIR ${prefix}${target}/libexec/devcontainer +WORKDIR ${prefix}/libexec/devcontainer ARG name ARG version RUN <"${prefix}${target}/share/bash-completion/completions/devpod" -"${prefix}${target}/bin/devpod" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/devpod.fish" -"${prefix}${target}/bin/devpod" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_devpod" +"${prefix}/bin/devpod" completion bash >"${prefix}/share/bash-completion/completions/devpod" +"${prefix}/bin/devpod" completion fish >"${prefix}/share/fish/vendor_completions.d/devpod.fish" +"${prefix}/bin/devpod" completion zsh >"${prefix}/share/zsh/vendor-completions/_devpod" EOF \ No newline at end of file diff --git a/tools/diffoci/Dockerfile.template b/tools/diffoci/Dockerfile.template index 62302c1978..f2fdbaa518 100644 --- a/tools/diffoci/Dockerfile.template +++ b/tools/diffoci/Dockerfile.template @@ -9,11 +9,11 @@ ARG name ARG version RUN <"${prefix}${target}/share/bash-completion/completions/diffoci" -"${prefix}${target}/bin/diffoci" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/diffoci.fish" -"${prefix}${target}/bin/diffoci" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_diffoci" +"${prefix}/bin/diffoci" completion bash >"${prefix}/share/bash-completion/completions/diffoci" +"${prefix}/bin/diffoci" completion fish >"${prefix}/share/fish/vendor_completions.d/diffoci.fish" +"${prefix}/bin/diffoci" completion zsh >"${prefix}/share/zsh/vendor-completions/_diffoci" EOF \ No newline at end of file diff --git a/tools/dinit/Dockerfile.template b/tools/dinit/Dockerfile.template index db0368c656..6cee44ab0a 100644 --- a/tools/dinit/Dockerfile.template +++ b/tools/dinit/Dockerfile.template @@ -9,7 +9,7 @@ ARG name ARG version RUN <"${prefix}/etc/profile.d/direnv.sh" +#!/bin/bash +eval "\$(direnv hook bash)" +EOF \ No newline at end of file diff --git a/tools/direnv/direnv.sh b/tools/direnv/direnv.sh deleted file mode 100644 index 7e05919596..0000000000 --- a/tools/direnv/direnv.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -eval "\$(direnv hook bash)" \ No newline at end of file diff --git a/tools/distrobox/Dockerfile.template b/tools/distrobox/Dockerfile.template index ac96f3f566..f69f81f027 100644 --- a/tools/distrobox/Dockerfile.template +++ b/tools/distrobox/Dockerfile.template @@ -9,17 +9,17 @@ ARG name ARG version RUN <"${prefix}${target}/share/bash-completion/completions/docker-index" -"${prefix}${target}/libexec/docker/cli-plugins/docker-index" completion fish | sed "s|${prefix}||g" >"${prefix}${target}/share/fish/vendor_completions.d/docker-index.fish" -"${prefix}${target}/libexec/docker/cli-plugins/docker-index" completion zsh | sed "s|${prefix}||g" >"${prefix}${target}/share/zsh/vendor-completions/_docker-index" +"${prefix}/libexec/docker/cli-plugins/docker-index" completion bash | sed "s|${prefix}||g" >"${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" +"${prefix}/libexec/docker/cli-plugins/docker-index" completion zsh | sed "s|${prefix}||g" >"${prefix}/share/zsh/vendor-completions/_docker-index" EOF \ No newline at end of file diff --git a/tools/docker-lock/Dockerfile.template b/tools/docker-lock/Dockerfile.template index 82b0857570..04ea4720be 100644 --- a/tools/docker-lock/Dockerfile.template +++ b/tools/docker-lock/Dockerfile.template @@ -27,6 +27,6 @@ check-github-release-asset "safe-waters/docker-lock" "v${version}" "docker-lock_ echo "### Downloading docker-lock ${version}" curl --silent --location --fail "https://github.com/safe-waters/docker-lock/releases/download/v${version}/docker-lock_${version}_Linux_${arch_suffix}.tar.gz" \ -| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \ +| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner \ docker-lock EOF \ No newline at end of file diff --git a/tools/docker-machine/Dockerfile.template b/tools/docker-machine/Dockerfile.template index 97d318b721..4e509011fe 100644 --- a/tools/docker-machine/Dockerfile.template +++ b/tools/docker-machine/Dockerfile.template @@ -11,7 +11,7 @@ ARG version RUN <>"${prefix}${uniget_c curl --silent --location --fail --output "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" \ "https://github.com/moby/moby/raw/v${version}/contrib/init/sysvinit-debian/docker" -sed -i -E "s|^(export PATH=)|\1${target}/libexec/${name}/bin:|" "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" -sed -i -E "s|^DOCKERD=/usr/bin/dockerd|DOCKERD=${target}/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" +sed -i -E "s|^(export PATH=)|\1/libexec/${name}/bin:|" "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" +sed -i -E "s|^DOCKERD=/usr/bin/dockerd|DOCKERD=/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" sed -i -E "s|^BASE=docker|BASE=${name}|" "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" chmod +x "${prefix}${uniget_contrib}/${name}/sysvinit/debian/docker" @@ -58,16 +58,16 @@ curl --silent --location --fail --output "${prefix}${uniget_contrib}/${name}/sys curl --silent --location --fail --output "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" \ "https://github.com/moby/moby/raw/v${version}/contrib/init/sysvinit-redhat/docker" -sed -i -E "s|(^prog=)|export PATH="${target}/libexec/${name}/bin:${target}/sbin:${target}/bin:\${PATH}"\n\n\1|" "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" -sed -i -E "s|/usr/bin/dockerd|${target}/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" +sed -i -E "s|(^prog=)|export PATH="/libexec/${name}/bin:/sbin:/bin:\${PATH}"\n\n\1|" "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" +sed -i -E "s|/usr/bin/dockerd|/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" chmod +x "${prefix}${uniget_contrib}/${name}/sysvinit/redhat/docker" curl --silent --location --fail --output "${prefix}${uniget_contrib}/${name}/openrc/docker.confd" \ "https://github.com/moby/moby/raw/v${version}/contrib/init/openrc/docker.confd" -sed -i "s|/usr/bin/dockerd|${target}/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/openrc/docker.confd" +sed -i "s|/usr/bin/dockerd|/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/openrc/docker.confd" curl --silent --location --fail --output "${prefix}${uniget_contrib}/${name}/openrc/docker.initd" \ "https://github.com/moby/moby/raw/v${version}/contrib/init/openrc/docker.initd" -sed -i -E "s|^(command=)|export PATH="${target}/libexec/${name}/bin:\${PATH}"\n\n\1|" "${prefix}${uniget_contrib}/${name}/openrc/docker.initd" -sed -i "s|/usr/bin/dockerd|${target}/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/openrc/docker.initd" +sed -i -E "s|^(command=)|export PATH="/libexec/${name}/bin:\${PATH}"\n\n\1|" "${prefix}${uniget_contrib}/${name}/openrc/docker.initd" +sed -i "s|/usr/bin/dockerd|/libexec/${name}/bin/dockerd|" "${prefix}${uniget_contrib}/${name}/openrc/docker.initd" EOF diff --git a/tools/docker-sbom/Dockerfile.template b/tools/docker-sbom/Dockerfile.template index d1cd82f2d2..fc72051968 100644 --- a/tools/docker-sbom/Dockerfile.template +++ b/tools/docker-sbom/Dockerfile.template @@ -10,6 +10,6 @@ ARG version RUN <"${prefix}${target}/share/bash-completion/completions/docker-scout" -"${prefix}${target}/libexec/docker/cli-plugins/docker-scout" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/docker-scout.fish" -"${prefix}${target}/libexec/docker/cli-plugins/docker-scout" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_docker-scout" +"${prefix}/libexec/docker/cli-plugins/docker-scout" completion bash >"${prefix}/share/bash-completion/completions/docker-scout" +"${prefix}/libexec/docker/cli-plugins/docker-scout" completion fish >"${prefix}/share/fish/vendor_completions.d/docker-scout.fish" +"${prefix}/libexec/docker/cli-plugins/docker-scout" completion zsh >"${prefix}/share/zsh/vendor-completions/_docker-scout" EOF \ No newline at end of file diff --git a/tools/docker-slim/Dockerfile.template b/tools/docker-slim/Dockerfile.template index 2feed40e6e..fd2b93a6c9 100644 --- a/tools/docker-slim/Dockerfile.template +++ b/tools/docker-slim/Dockerfile.template @@ -21,5 +21,5 @@ case "${alt_arch}" in ;; esac curl --silent --location --fail "https://downloads.dockerslim.com/releases/1.40.0/dist_linux${arch_suffix}.tar.gz" \ -| tar --extract --gzip --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner +| tar --extract --gzip --directory="${prefix}/bin/" --strip-components=1 --no-same-owner EOF \ No newline at end of file diff --git a/tools/docker-stable/Dockerfile.template b/tools/docker-stable/Dockerfile.template index c057eadc49..7b6b9ec772 100644 --- a/tools/docker-stable/Dockerfile.template +++ b/tools/docker-stable/Dockerfile.template @@ -11,7 +11,7 @@ ARG version RUN <"${prefix}${target}/share/bash-completion/completions/docker" -"${prefix}${target}/bin/docker" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/docker.fish" -"${prefix}${target}/bin/docker" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_docker" +"${prefix}/bin/docker" completion bash >"${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}${target}/share/bash-completion/completions/dyff" -"${prefix}${target}/bin/dyff" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/dyff.fish" -"${prefix}${target}/bin/dyff" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_dyff" +"${prefix}/bin/dyff" completion bash >"${prefix}/share/bash-completion/completions/dyff" +"${prefix}/bin/dyff" completion fish >"${prefix}/share/fish/vendor_completions.d/dyff.fish" +"${prefix}/bin/dyff" completion zsh >"${prefix}/share/zsh/vendor-completions/_dyff" EOF \ No newline at end of file