Dockerfile.dapper 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM ubuntu:16.04
  2. # FROM arm64=aarch64/ubuntu:16.04 arm=armhf/ubuntu:16.04
  3. # get the apt-cacher proxy set
  4. ARG APTPROXY=
  5. RUN echo "Acquire::http { Proxy \"$APTPROXY\"; };" >> /etc/apt/apt.conf.d/01proxy \
  6. && cat /etc/apt/apt.conf.d/01proxy \
  7. && apt-get update \
  8. && apt-get install -yq build-essential autoconf libtool gawk alien fakeroot \
  9. zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libdevmapper-dev \
  10. module-init-tools \
  11. parted lsscsi ksh curl git wget
  12. WORKDIR /source
  13. # https://www.kernel.org/pub/linux/utils/kernel/kexec/
  14. ENV VERSION 2.0.15
  15. RUN wget https://www.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-$VERSION.tar.gz \
  16. && tar zxvf kexec-tools-$VERSION.tar.gz
  17. RUN zcat kexec-tools-$VERSION.tar.gz | tar xvf - \
  18. && cd kexec-tools-$VERSION \
  19. && sed 's/loff_t/off_t/g' -i vmcore-dmesg/vmcore-dmesg.c \
  20. && LDFLAGS=-static ./configure \
  21. && make \
  22. && make install
  23. RUN mkdir -p /source/dist \
  24. && cp -r /usr/local/* /source/dist
  25. ########## Dapper Configuration #####################
  26. ENV DAPPER_ENV VERSION DEV_BUILD RUNTEST APTPROXY
  27. #ENV DAPPER_DOCKER_SOCKET true
  28. ENV DAPPER_SOURCE /source
  29. ENV DAPPER_OUTPUT ./dist
  30. #ENV DAPPER_RUN_ARGS --privileged
  31. #ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache
  32. #ENV SHELL /bin/bash
  33. CMD true