Files
docker-cli/components/packaging/detect_alpine_image
Christopher Jones 863e01391b [ppc64le] add deb support for ubuntu-xenial
Adds ubuntu-xenial as a make deb target for ppc64le

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Upstream-commit: e2a3a2f2f157e1a84346c0aad2b87ef2b2a7f0f3
Component: packaging
2017-08-24 13:24:05 -04:00

22 lines
414 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="armhf/alpine"
elif [ "$arch" = "s390x" ]; then
img="s390x/alpine"
elif [ "$arch" = "aarch64" ]; then
img="aarch64/alpine"
elif [ "$arch" = "ppc64le" ]; then
img="ppc64le/alpine"
else
echo "Architecture $(arch) not supported"
exit 1;
fi
echo "$img"