2016-06-06 23:00:15 -07:00
|
|
|
FROM aarch64/debian:jessie
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV ARCH arm
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y parted git gcc make autoconf
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/local/src && \
|
|
|
|
cd /usr/local/src && \
|
2016-11-25 10:10:21 +10:00
|
|
|
git clone -b kdump/v0.14 https://git.linaro.org/people/takahiro.akashi/kexec-tools.git && \
|
|
|
|
cd kexec-tools && ./bootstrap && ./configure && make && make install
|
2016-06-06 23:00:15 -07:00
|
|
|
|
2016-06-13 16:33:07 -07:00
|
|
|
COPY conf lay-down-os seed-data set-disk-partitions /scripts/
|
2016-06-06 23:00:15 -07:00
|
|
|
COPY ./build/vmlinuz /dist/vmlinuz
|
|
|
|
COPY ./build/initrd /dist/initrd
|
|
|
|
|
2016-06-13 16:33:07 -07:00
|
|
|
ARG VERSION
|
|
|
|
ENV VERSION=${VERSION}
|
|
|
|
|
2016-06-06 23:00:15 -07:00
|
|
|
ENTRYPOINT ["/scripts/lay-down-os"]
|