1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 22:11:33 +00:00
os/scripts/installer/kexec/Dockerfile.dapper
Sven Dowideit b4584a616a update to new kexec, and fix building with 17.06.1
Signed-off-by: Sven Dowideit <sven@y260.home.org.au>
2017-07-07 08:56:26 +10:00

43 lines
1.3 KiB
Docker

FROM ubuntu:16.04
# FROM arm64=aarch64/ubuntu:16.04 arm=armhf/ubuntu:16.04
# get the apt-cacher proxy set
ARG APTPROXY=
RUN echo "Acquire::http { Proxy \"$APTPROXY\"; };" >> /etc/apt/apt.conf.d/01proxy \
&& cat /etc/apt/apt.conf.d/01proxy \
&& apt-get update \
&& apt-get install -yq build-essential autoconf libtool gawk alien fakeroot \
zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libdevmapper-dev \
module-init-tools \
parted lsscsi ksh curl git wget
WORKDIR /source
# https://www.kernel.org/pub/linux/utils/kernel/kexec/
ENV VERSION 2.0.15
RUN wget https://www.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-$VERSION.tar.gz \
&& tar zxvf kexec-tools-$VERSION.tar.gz
RUN zcat kexec-tools-$VERSION.tar.gz | tar xvf - \
&& cd kexec-tools-$VERSION \
&& sed 's/loff_t/off_t/g' -i vmcore-dmesg/vmcore-dmesg.c \
&& LDFLAGS=-static ./configure \
&& make \
&& make install
RUN mkdir -p /source/dist \
&& cp -r /usr/local/* /source/dist
########## Dapper Configuration #####################
ENV DAPPER_ENV VERSION DEV_BUILD RUNTEST APTPROXY
#ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /source
ENV DAPPER_OUTPUT ./dist
#ENV DAPPER_RUN_ARGS --privileged
#ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache
#ENV SHELL /bin/bash
CMD true