mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-21 15:57:49 +00:00
Fix dockerfile arch selection
This change includes an arm64 arch check when installing golang. Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com> Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
2733661125
commit
f40f4369a1
@ -31,7 +31,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture" ; exit 1 ;; \
|
*) echo "unsupported architecture" ; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
@ -31,7 +31,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture" ; exit 1 ;; \
|
*) echo "unsupported architecture" ; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
@ -22,7 +22,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture" ; exit 1 ;; \
|
*) echo "unsupported architecture" ; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
@ -15,7 +15,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture"; exit 1 ;; \
|
*) echo "unsupported architecture"; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
@ -33,7 +33,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture"; exit 1 ;; \
|
*) echo "unsupported architecture"; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
@ -20,7 +20,7 @@ RUN set -eux; \
|
|||||||
case "${arch##*-}" in \
|
case "${arch##*-}" in \
|
||||||
x86_64 | amd64) ARCH='amd64' ;; \
|
x86_64 | amd64) ARCH='amd64' ;; \
|
||||||
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
ppc64el | ppc64le) ARCH='ppc64le' ;; \
|
||||||
aarch64) ARCH='arm64' ;; \
|
aarch64 | arm64) ARCH='arm64' ;; \
|
||||||
*) echo "unsupported architecture" ; exit 1 ;; \
|
*) echo "unsupported architecture" ; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
|
||||||
|
Loading…
Reference in New Issue
Block a user