Skip to content

Obtains latest raspbian from raspberrypi.org #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:stretch

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils \
Expand Down Expand Up @@ -35,16 +35,19 @@ ENV ARCH=arm \
SYSROOT=$RPXC_ROOT/sysroot

WORKDIR $SYSROOT
RUN curl -Ls https://github.com/sdhibit/docker-rpi-raspbian/raw/master/raspbian.2015.05.05.tar.xz \
| tar -xJf - \
&& curl -Ls https://github.com/resin-io-projects/armv7hf-debian-qemu/raw/master/bin/qemu-arm-static \
> $SYSROOT/$QEMU_PATH \
&& chmod +x $SYSROOT/$QEMU_PATH \
&& mkdir -p $SYSROOT/build \
&& chroot $SYSROOT $QEMU_PATH /bin/sh -c '\
echo "deb http://archive.raspbian.org/raspbian jessie firmware" \
RUN curl -Ls https://downloads.raspberrypi.org/raspbian_lite/root.tar.xz \
| tar -xJf -
ADD https://github.com/resin-io-projects/armv7hf-debian-qemu/raw/master/bin/qemu-arm-static $SYSROOT/$QEMU_PATH

RUN chmod +x $SYSROOT/$QEMU_PATH \
&& mkdir -p $SYSROOT/build

RUN chroot $SYSROOT $QEMU_PATH /bin/sh -c '\
echo "deb http://archive.raspbian.org/raspbian stretch firmware" \
>> /etc/apt/sources.list \
&& apt-get update \
&& sudo apt-mark hold \
raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspi-config \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
Expand All @@ -57,3 +60,5 @@ COPY image/ /

WORKDIR /build
ENTRYPOINT [ "/rpxc/entrypoint.sh" ]

RUN install-debian libc6-armhf-cross