Files
docker-cli/components/packaging/detect_alpine_image
Eli Uriegas 347269ee44 Merge pull request #52 from thaJeztah/switch-to-arm64v8
Switch aarch64 images to arm64v8
Upstream-commit: a1debdbcf0220c10799fce225f2f189e681de385
Component: packaging
2017-09-15 18:54:10 -07:00

22 lines
416 B
Bash
Executable File

#!/usr/bin/env sh
arch="$(uname -m)"
img="unknown"
if [ "$arch" = "x86_64" ]; then
img="alpine"
elif [ "$arch" = "armv7l" ]; then
img="arm32v6/alpine"
elif [ "$arch" = "s390x" ]; then
img="s390x/alpine"
elif [ "$arch" = "aarch64" ]; then
img="arm64v8/alpine"
elif [ "$arch" = "ppc64le" ]; then
img="ppc64le/alpine"
else
echo "Architecture $(arch) not supported"
exit 1;
fi
echo "$img"