Skip to content

Commit

Permalink
Revert "Automagically use i386/debian:buster (RPi-Distro#415)"
Browse files Browse the repository at this point in the history
This reverts commit dd96ca1.
  • Loading branch information
mmmspatz committed Mar 14, 2021
1 parent 041b974 commit cd504f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG BASE_IMAGE=debian:buster
FROM ${BASE_IMAGE}
FROM debian:buster

ENV DEBIAN_FRONTEND noninteractive

Expand Down
12 changes: 1 addition & 11 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,7 @@ fi
# Modify original build-options to allow config file to be mounted in the docker container
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)
BASE_IMAGE=i386/debian:buster
;;
*)
BASE_IMAGE=debian:buster
;;
esac
${DOCKER} build --build-arg BASE_IMAGE=${BASE_IMAGE} -t pi-gen "${DIR}"

${DOCKER} build -t pi-gen "${DIR}"
if [ "${CONTAINER_EXISTS}" != "" ]; then
trap 'echo "got CTRL+C... please wait 5s" && ${DOCKER} stop -t 5 ${CONTAINER_NAME}_cont' SIGINT SIGTERM
time ${DOCKER} run --rm --privileged \
Expand Down

0 comments on commit cd504f5

Please sign in to comment.