2017-02-01 06:08:40 +00:00
|
|
|
FROM rancher/os-debianconsole-base
|
|
|
|
# FROM amd64=debian:jessie arm64=aarch64/debian:jessie arm=armhf/debian:jessie
|
|
|
|
|
2016-03-07 08:30:24 +00:00
|
|
|
ENV DAPPER_RUN_ARGS --privileged
|
2016-02-18 16:58:39 +00:00
|
|
|
ENV DAPPER_OUTPUT dist
|
|
|
|
RUN apt-get update -y
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2016-03-07 08:30:24 +00:00
|
|
|
ca-certificates curl dosfstools tree zip
|
2016-02-18 16:58:39 +00:00
|
|
|
RUN mkdir -p /source/assets
|
|
|
|
|
2016-03-07 08:30:24 +00:00
|
|
|
# RancherOS for ARM
|
2017-03-15 08:14:52 +00:00
|
|
|
#RUN curl -fL https://releases.rancher.com/os/latest/rootfs_arm.tar.gz > /source/assets/rootfs_arm.tar.gz
|
|
|
|
COPY rootfs_arm.tar.gz /source/assets/rootfs_arm.tar.gz
|
2016-02-18 16:58:39 +00:00
|
|
|
|
2016-11-25 13:30:04 +00:00
|
|
|
# see https://packagecloud.io/Hypriot/rpi/?filter=debs
|
|
|
|
ENV URL=https://packagecloud.io/Hypriot/rpi/packages/debian/jessie/
|
2017-02-01 05:24:01 +00:00
|
|
|
# 4.4.27-hypriotos-v7+
|
|
|
|
ENV VER=20170119-202035
|
|
|
|
|
|
|
|
RUN curl -fL ${URL}/raspberrypi-kernel_${VER}_armhf.deb/download \
|
2016-11-25 13:30:04 +00:00
|
|
|
> /source/assets/kernel.deb
|
2017-02-01 05:24:01 +00:00
|
|
|
RUN curl -fL ${URL}/raspberrypi-bootloader_${VER}_armhf.deb/download \
|
2016-11-25 13:30:04 +00:00
|
|
|
> /source/assets/bootloader.deb
|
2016-03-07 08:30:24 +00:00
|
|
|
|
2016-02-18 16:58:39 +00:00
|
|
|
WORKDIR /source
|
|
|
|
CMD ["./scripts/build.sh"]
|