mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-15 01:36:37 +00:00
40 lines
662 B
Bash
Executable File
40 lines
662 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
REPO=""
|
|
case "$DOCKER_TAG" in
|
|
*amd64)
|
|
REPO="library"
|
|
;;
|
|
*arm32v5)
|
|
REPO="arm32v5"
|
|
;;
|
|
*arm32v6)
|
|
REPO="arm32v6"
|
|
;;
|
|
*arm32v7)
|
|
REPO="arm32v7"
|
|
;;
|
|
*arm64v8)
|
|
REPO="arm64v8"
|
|
;;
|
|
*i386)
|
|
REPO="i386"
|
|
;;
|
|
*ppc64le)
|
|
REPO="ppc64le"
|
|
;;
|
|
*s390x)
|
|
REPO="s390x"
|
|
;;
|
|
*)
|
|
REPO="library"
|
|
;;
|
|
esac
|
|
|
|
|
|
[ "${REPO}" != "library" ] && \
|
|
{ echo 'qemu-user-static: Registration not required for current arch'; exit 0; }
|
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|