Skip to content

Commit

Permalink
Removed target var #2213
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 22, 2023
1 parent 7b39a68 commit 84dd124
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions tools/ignite/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "weaveworks/ignite" "v${version}" "ignite-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/ignite" \
curl --silent --location --fail --output "${prefix}/bin/ignite" \
"https://github.com/weaveworks/ignite/releases/download/v${version}/ignite-${alt_arch}"
chmod +x "${prefix}${target}/bin/ignite"
chmod +x "${prefix}/bin/ignite"

check-github-release-asset "weaveworks/ignite" "v${version}" "ignited-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/ignited" \
curl --silent --location --fail --output "${prefix}/bin/ignited" \
"https://github.com/weaveworks/ignite/releases/download/v${version}/ignited-${alt_arch}"
chmod +x "${prefix}${target}/bin/ignited"
chmod +x "${prefix}/bin/ignited"

"${prefix}${target}/bin/ignite" completion >"${prefix}${target}/share/bash-completion/completions/ignite"
"${prefix}${target}/bin/ignited" completion >"${prefix}${target}/share/bash-completion/completions/ignited" || true
"${prefix}/bin/ignite" completion >"${prefix}/share/bash-completion/completions/ignite"
"${prefix}/bin/ignited" completion >"${prefix}/share/bash-completion/completions/ignited" || true
EOF
4 changes: 2 additions & 2 deletions tools/img/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "genuinetools/img" "v${version}" "img-linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/img" \
curl --silent --location --fail --output "${prefix}/bin/img" \
"https://github.com/genuinetools/img/releases/download/v${version}/img-linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/img"
chmod +x "${prefix}/bin/img"
EOF
2 changes: 1 addition & 1 deletion tools/imgcrypt/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}"
sed -i -E 's/ -v / /' Makefile
sed -i -E "s/ --dirty='.m' / /" Makefile
make
make install DESTDIR="${prefix}${target}/"
make install DESTDIR="${prefix}/"
EOF
4 changes: 2 additions & 2 deletions tools/imgpkg/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "carvel-dev/imgpkg" "v${version}" "imgpkg-linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/imgpkg" \
curl --silent --location --fail --output "${prefix}/bin/imgpkg" \
"https://github.com/carvel-dev/imgpkg/releases/download/v${version}/imgpkg-linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/imgpkg"
chmod +x "${prefix}/bin/imgpkg"
EOF
8 changes: 4 additions & 4 deletions tools/in-toto/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN <<EOF
check-clone https://github.com/in-toto/in-toto-golang "v${version}"
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/in-toto/in-toto-golang .
make build
cp bin/in-toto "${prefix}${target}/bin/"
"${prefix}${target}/bin/in-toto" completion bash >"${prefix}${target}/share/bash-completion/completions/in-toto"
"${prefix}${target}/bin/in-toto" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/in-toto.fish"
"${prefix}${target}/bin/in-toto" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_in-toto"
cp bin/in-toto "${prefix}/bin/"
"${prefix}/bin/in-toto" completion bash >"${prefix}/share/bash-completion/completions/in-toto"
"${prefix}/bin/in-toto" completion fish >"${prefix}/share/fish/vendor_completions.d/in-toto.fish"
"${prefix}/bin/in-toto" completion zsh >"${prefix}/share/zsh/vendor-completions/_in-toto"
EOF
4 changes: 2 additions & 2 deletions tools/incus/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "lxc/incus" "v${version}" "bin.linux.incus.${arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/incus" \
curl --silent --location --fail --output "${prefix}/bin/incus" \
"https://github.com/lxc/incus/releases/download/v${version}/bin.linux.incus.${arch}"
chmod +x "${prefix}${target}/bin/incus"
chmod +x "${prefix}/bin/incus"
EOF
6 changes: 3 additions & 3 deletions tools/influx-cli/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ ARG name
ARG version
RUN <<EOF
curl --silent --location --fail "https://dl.influxdata.com/influxdb/releases/influxdb2-client-${version}-linux-${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin/" --strip-component=1 --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin/" --strip-component=1 --no-same-owner \
"./influx"
"${prefix}${target}/bin/influx" completion bash >"${prefix}${target}/share/bash-completion/completions/influx"
"${prefix}${target}/bin/influx" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_influx"
"${prefix}/bin/influx" completion bash >"${prefix}/share/bash-completion/completions/influx"
"${prefix}/bin/influx" completion zsh >"${prefix}/share/zsh/vendor-completions/_influx"
EOF
2 changes: 1 addition & 1 deletion tools/influxdb/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-download "https://dl.influxdata.com/influxdb/releases/influxdb2-${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://dl.influxdata.com/influxdb/releases/influxdb2-${version}_linux_${alt_arch}.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 \
"influxdb2-${version}/usr/bin/influxd"
EOF
8 changes: 4 additions & 4 deletions tools/ingress2gateway/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ echo " Using ${arch_suffix}"

check-github-release-asset "kubernetes-sigs/ingress2gateway" "v${version}" "ingress2gateway_Linux_${arch_suffix}.tar.gz"
curl --silent --location --fail "https://github.com/kubernetes-sigs/ingress2gateway/releases/download/v${version}/ingress2gateway_Linux_${arch_suffix}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner \
ingress2gateway

"${prefix}${target}/bin/ingress2gateway" completion bash >"${prefix}${target}/share/bash-completion/completions/ingress2gateway"
"${prefix}${target}/bin/ingress2gateway" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/ingress2gateway.fish"
"${prefix}${target}/bin/ingress2gateway" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_ingress2gateway"
"${prefix}/bin/ingress2gateway" completion bash >"${prefix}/share/bash-completion/completions/ingress2gateway"
"${prefix}/bin/ingress2gateway" completion fish >"${prefix}/share/fish/vendor_completions.d/ingress2gateway.fish"
"${prefix}/bin/ingress2gateway" completion zsh >"${prefix}/share/zsh/vendor-completions/_ingress2gateway"
EOF
2 changes: 1 addition & 1 deletion tools/inotify-tools/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
COPY --from=build /opt/inotify-tools/ ${prefix}${target}/
COPY --from=build /opt/inotify-tools/ ${prefix}/
2 changes: 1 addition & 1 deletion tools/iptables/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ git clone --config advice.detachedHead=false --depth 1 --branch "v${version}" gi
EOF
RUN <<EOF
./autogen.sh
./configure --prefix="${prefix}${target}"
./configure --prefix="${prefix}"
make
make install
EOF
2 changes: 1 addition & 1 deletion tools/it-depends/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ EOF
ARG name
ARG version
RUN <<EOF
shiv --output-file "${prefix}${target}/bin/it-depends" --console-script it-depends "it-depends==${version}"
shiv --output-file "${prefix}/bin/it-depends" --console-script it-depends "it-depends==${version}"
EOF

0 comments on commit 84dd124

Please sign in to comment.