Skip to content

Commit

Permalink
Automagically use i386/debian:buster (RPi-Distro#415)
Browse files Browse the repository at this point in the history
* Autmagically use 1386/debian:buster when running on 64-bit host to prevent error RPi-Distro#271

(cherry picked from commit dd96ca1)
  • Loading branch information
aniongithub authored and SRaus committed May 30, 2023
1 parent 52b49d9 commit c19d110
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,17 @@ BUILD_OPTS="$(echo "${BUILD_OPTS:-}" | sed -E 's@\-c\s?([^ ]+)@-c /config@')"
# Check the arch of the machine we're running on. If it's 64-bit, use a 32-bit base image instead
case "$(uname -m)" in
x86_64|aarch64)
<<<<<<< HEAD
BASE_IMAGE=i386/debian:bullseye
;;
*)
BASE_IMAGE=debian:bullseye
=======
BASE_IMAGE=i386/debian:buster
;;
*)
BASE_IMAGE=debian:buster
>>>>>>> Automagically use i386/debian:buster (#415)
;;
esac
${DOCKER} build --build-arg BASE_IMAGE=${BASE_IMAGE} -t pi-gen "${DIR}"
Expand Down

0 comments on commit c19d110

Please sign in to comment.