Skip to content

Commit

Permalink
Fixes for removal of target
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 22, 2023
1 parent 0b30dd3 commit d11fff6
Show file tree
Hide file tree
Showing 51 changed files with 178 additions and 200 deletions.
2 changes: 1 addition & 1 deletion tools/dagger/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "dagger/dagger" "v${version}" "dagger_v${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/dagger/dagger/releases/download/v${version}/dagger_v${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
dagger
EOF
4 changes: 2 additions & 2 deletions tools/dasel/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG version

RUN <<EOF
check-github-release-asset "TomWright/dasel" "v${version}" "dasel_linux_${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/dasel" \
curl --silent --location --fail --output "${prefix}/bin/dasel" \
"https://github.com/TomWright/dasel/releases/download/v${version}/dasel_linux_${alt_arch}"
chmod +x "${prefix}${target}/bin/dasel"
chmod +x "${prefix}/bin/dasel"
EOF
10 changes: 5 additions & 5 deletions tools/datree/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ check-github-release-asset "datreeio/datree" "${version}" "datree-cli_${version}
curl --silent --location --fail --remote-name "https://github.com/datreeio/datree/releases/download/${version}/datree-cli_${version}_Linux_${arch}.zip"
unzip -q -o -d "/tmp" "datree-cli_${version}_Linux_${arch}.zip"
rm "datree-cli_${version}_Linux_${arch}.zip"
mv "/tmp/datree" "${prefix}${target}/bin"
"${prefix}${target}/bin/datree" completion bash >"${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 <<EOF
"${prefix}${target}/bin/datree" config set offline local
"${prefix}/bin/datree" config set offline local
EOF
2 changes: 1 addition & 1 deletion tools/dbui/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ ARG version
RUN <<EOF
check-github-release-asset "KenanBek/dbui" "v${version}" "dbui_Linux_${arch}.tar.gz"
curl --silent --location --fail "https://github.com/KenanBek/dbui/releases/download/v${version}/dbui_Linux_${arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
dbui
EOF
2 changes: 1 addition & 1 deletion tools/ddosify/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "ddosify/ddosify" "v${version}" "ddosify_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/ddosify/ddosify/releases/download/v${version}/ddosify_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner \
ddosify
EOF
7 changes: 4 additions & 3 deletions tools/delta/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
COPY --from=rust / /
COPY --from=rust / /usr/local
ARG DEBIAN_FRONTEND=noninteractive
RUN <<EOF
apt-get update
Expand All @@ -18,9 +18,10 @@ WORKDIR /tmp/github.com/dandavison/delta
ARG name
ARG version
RUN <<EOF
source "${target}/etc/profile.d/cargo.sh"
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/dandavison/delta .
export CARGO_HOME=/usr/local/cargo
export RUSTUP_HOME=/usr/local/rustup
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --release --target "${arch}-unknown-linux-gnu"
cp "target/${arch}-unknown-linux-gnu/release/delta" "${prefix}${target}/bin/"
cp "target/${arch}-unknown-linux-gnu/release/delta" "${prefix}/bin/"
EOF
6 changes: 3 additions & 3 deletions tools/dependency-check/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check-github-release-asset "jeremylong/DependencyCheck" "v${version}" "dependenc
url="https://github.com/jeremylong/DependencyCheck/releases/download/v${version}/dependency-check-${version}-release.zip"
filename="$(basename "${url}")"
curl --silent --location --fail --remote-name "${url}"
unzip -q -o -d "${prefix}${target}/opt" "${filename}"
ln --symbolic --relative --force "${target}/opt/dependency-check/bin/dependency-check.sh" "${prefix}${target}/bin/dependency-check.sh"
mv "${prefix}${target}/opt/dependency-check/bin/completion-for-dependency-check.sh" "${prefix}${target}/share/bash-completion/completions/dependency-check.sh"
unzip -q -o -d "${prefix}/opt" "${filename}"
ln --symbolic --relative --force "/opt/dependency-check/bin/dependency-check.sh" "${prefix}/bin/dependency-check.sh"
mv "${prefix}/opt/dependency-check/bin/completion-for-dependency-check.sh" "${prefix}/share/bash-completion/completions/dependency-check.sh"
EOF
8 changes: 4 additions & 4 deletions tools/depot/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ ARG version
RUN <<EOF
check-github-release-asset "depot/cli" "v${version}" "depot_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/depot/cli/releases/download/v${version}/depot_${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 \
bin/depot

"${prefix}${target}/bin/depot" completion bash >"${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
8 changes: 4 additions & 4 deletions tools/devbox/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ ARG version
RUN <<EOF
check-github-release-asset "jetpack-io/devbox" "${version}" "devbox_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/jetpack-io/devbox/releases/download/${version}/devbox_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner

"${prefix}${target}/bin/devbox" completion bash >"${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
4 changes: 2 additions & 2 deletions tools/devcontainer/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
npm install \
--omit=dev \
"@devcontainers/cli@${version}"
ln --symbolic --relative --force "${prefix}${target}/libexec/devcontainer/node_modules/.bin/devcontainer" "${prefix}${target}/bin/"
ln --symbolic --relative --force "${prefix}/libexec/devcontainer/node_modules/.bin/devcontainer" "${prefix}/bin/"
EOF
10 changes: 5 additions & 5 deletions tools/devpod/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "loft-sh/devpod" "v${version}" "devpod-linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/devpod" \
curl --silent --location --fail --output "${prefix}/bin/devpod" \
"https://github.com/loft-sh/devpod/releases/download/v${version}/devpod-linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/devpod"
chmod +x "${prefix}/bin/devpod"

"${prefix}${target}/bin/devpod" completion bash >"${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
10 changes: 5 additions & 5 deletions tools/diffoci/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "reproducible-containers/diffoci" "v${version}" "diffoci-v${version}.linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/diffoci" \
curl --silent --location --fail --output "${prefix}/bin/diffoci" \
"https://github.com/reproducible-containers/diffoci/releases/download/v${version}/diffoci-v${version}.linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/diffoci"
chmod +x "${prefix}/bin/diffoci"

"${prefix}${target}/bin/diffoci" completion bash >"${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
4 changes: 2 additions & 2 deletions tools/dinit/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 "foo/bar" "${version}" "foo-${version}-linux-amd64.tar.gz"
curl --silent --location --fail --output "${prefix}${target}/bin/dinit" \
curl --silent --location --fail --output "${prefix}/bin/dinit" \
"https://gitlab.com/tozd/dinit/-/releases/v${version}/downloads/linux-${alt_arch}/dinit"
chmod +x "${prefix}${target}/bin/dinit"
chmod +x "${prefix}/bin/dinit"
EOF
18 changes: 10 additions & 8 deletions tools/direnv/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "direnv/direnv" "v${version}" "direnv.linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/direnv" \
curl --silent --location --fail --output "${prefix}/bin/direnv" \
"https://github.com/direnv/direnv/releases/download/v${version}/direnv.linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/direnv"
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/direnv-fetchurl.1" \
chmod +x "${prefix}/bin/direnv"
curl --silent --location --fail --output "${prefix}/share/man/man1/direnv-fetchurl.1" \
"https://github.com/direnv/direnv/raw/v${version}/man/direnv-fetchurl.1"
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/direnv-stdlib.1" \
curl --silent --location --fail --output "${prefix}/share/man/man1/direnv-stdlib.1" \
"https://github.com/direnv/direnv/raw/v${version}/man/direnv-stdlib.1"
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/direnv.1" \
curl --silent --location --fail --output "${prefix}/share/man/man1/direnv.1" \
"https://github.com/direnv/direnv/raw/v${version}/man/direnv.1"
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/direnv.toml.1" \
curl --silent --location --fail --output "${prefix}/share/man/man1/direnv.toml.1" \
"https://github.com/direnv/direnv/raw/v${version}/man/direnv.toml.1"
EOF

COPY direnv.sh ${prefix}/etc/profile.d/
cat <<EOF >"${prefix}/etc/profile.d/direnv.sh"
#!/bin/bash
eval "\$(direnv hook bash)"
EOF
3 changes: 0 additions & 3 deletions tools/direnv/direnv.sh

This file was deleted.

12 changes: 6 additions & 6 deletions tools/distrobox/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ ARG name
ARG version
RUN <<EOF
curl --silent --location --fail "https://github.com/89luca89/distrobox/archive/refs/tags/${version}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner --strip-components=1 --wildcards \
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner --strip-components=1 --wildcards \
"distrobox-${version}/distrobox-*" \
"distrobox-${version}/man" \
"distrobox-${version}/completions" \
"distrobox-${version}/terminal-distrobox-icon.svg"

mv "${prefix}${target}/bin/man/man1" "${prefix}${target}/share/man/"
rm -rf "${prefix}${target}/bin/man/"
mv "${prefix}/bin/man/man1" "${prefix}/share/man/"
rm -rf "${prefix}/bin/man/"

mv "${prefix}${target}/bin/completions" "${prefix}${target}/share/bash-completion/"
mv "${prefix}/bin/completions" "${prefix}/share/bash-completion/"

mkdir -p "${prefix}${target}/share/icons/"
mv "${prefix}${target}/bin/terminal-distrobox-icon.svg" "${prefix}${target}/share/icons/"
mkdir -p "${prefix}/share/icons/"
mv "${prefix}/bin/terminal-distrobox-icon.svg" "${prefix}/share/icons/"
EOF
2 changes: 1 addition & 1 deletion tools/diun/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "crazy-max/diun" "v${version}" "diun_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/crazy-max/diun/releases/download/v${version}/diun_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
./diun
EOF
2 changes: 1 addition & 1 deletion tools/dive/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "wagoodman/dive" "v${version}" "dive_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/wagoodman/dive/releases/download/v${version}/dive_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
dive
EOF
2 changes: 1 addition & 1 deletion tools/dnsx/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ check-github-release-asset "projectdiscovery/dnsx" "v${version}" "dnsx_${version
url="https://github.com/projectdiscovery/dnsx/releases/download/v${version}/dnsx_${version}_linux_${alt_arch}.zip"
filename="$(basename "${url}")"
curl --silent --location --fail --remote-name "${url}"
unzip -q -o -d "${prefix}${target}/bin" "${filename}" \
unzip -q -o -d "${prefix}/bin" "${filename}" \
dnsx
EOF
2 changes: 1 addition & 1 deletion tools/docker-base/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "docker/base-cli-plugin" "v${version}" "base-cli-plugin_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/docker/base-cli-plugin/releases/download/v${version}/base-cli-plugin_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/libexec/docker/cli-plugins" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/libexec/docker/cli-plugins" --no-same-owner \
docker-base
EOF
6 changes: 3 additions & 3 deletions tools/docker-compose-switch/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ARG name
ARG version
RUN <<EOF
check-github-release-asset "docker/compose-switch" "v${version}" "docker-compose-linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/docker-compose-switch" \
curl --silent --location --fail --output "${prefix}/bin/docker-compose-switch" \
"https://github.com/docker/compose-switch/releases/download/v${version}/docker-compose-linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/docker-compose-switch"
chmod +x "${prefix}/bin/docker-compose-switch"

ln --symbolic --relative --force "${prefix}${target}/bin/docker-compose-switch" "${prefix}${target}/bin/docker-compose"
ln --symbolic --relative --force "${prefix}/bin/docker-compose-switch" "${prefix}/bin/docker-compose"
EOF
11 changes: 7 additions & 4 deletions tools/docker-compose-v1/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#syntax=docker/dockerfile:1.6.0

FROM --platform=amd64 ghcr.io/uniget-org/tools/base:latest 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 docker-compose-cli-plugin ${prefix}${target}/libexec/docker/cli-plugins/docker-compose
RUN <<EOF
check-github-release-asset "docker/compose" "${version}" "docker-compose-Linux-${arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/docker-compose" \
curl --silent --location --fail --output "${prefix}/bin/docker-compose" \
"https://github.com/docker/compose/releases/download/${version}/docker-compose-Linux-${arch}"
chmod +x "${prefix}${target}/bin/docker-compose"
chmod +x "${prefix}/bin/docker-compose"
EOF
25 changes: 0 additions & 25 deletions tools/docker-compose-v1/docker-compose-cli-plugin

This file was deleted.

4 changes: 2 additions & 2 deletions tools/docker-compose/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 "docker/compose" "v${version}" "docker-compose-linux-${arch}"
curl --silent --location --fail --output "${prefix}${target}/libexec/docker/cli-plugins/docker-compose" \
curl --silent --location --fail --output "${prefix}/libexec/docker/cli-plugins/docker-compose" \
"https://github.com/docker/compose/releases/download/v${version}/docker-compose-linux-${arch}"
chmod +x "${prefix}${target}/libexec/docker/cli-plugins/docker-compose"
chmod +x "${prefix}/libexec/docker/cli-plugins/docker-compose"
EOF
2 changes: 1 addition & 1 deletion tools/docker-credential-acr-env/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ARG version
RUN <<EOF
check-github-release-asset "chrismellard/docker-credential-acr-env" "${version}" "docker-credential-acr-env_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/chrismellard/docker-credential-acr-env/releases/download/${version}/docker-credential-acr-env_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
docker-credential-acr-env
EOF
4 changes: 2 additions & 2 deletions tools/docker-credential-ecr-login/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG name
ARG version

RUN <<EOF
curl --silent --location --fail --output "${prefix}${target}/bin/docker-credential-ecr-login" \
curl --silent --location --fail --output "${prefix}/bin/docker-credential-ecr-login" \
"https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${version}/linux-${alt_arch}/docker-credential-ecr-login"
chmod +x "${prefix}${target}/bin/docker-credential-ecr-login"
chmod +x "${prefix}/bin/docker-credential-ecr-login"
EOF
2 changes: 1 addition & 1 deletion tools/docker-credential-gcr/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ ARG version

RUN <<EOF
curl --silent --location --fail "https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v${version}/docker-credential-gcr_linux_${alt_arch}-${version}.tar.gz" \
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
| tar --extract --gzip --directory="${prefix}/bin" --no-same-owner \
docker-credential-gcr
EOF
Loading

0 comments on commit d11fff6

Please sign in to comment.