Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM i386/debian
  2. ENV DEBIAN_FRONTEND noninteractive
  3. RUN apt-get update && \
  4. apt-get --yes --no-install-recommends install \
  5. linux-image-4.9.0-6-686 grub2 systemd \
  6. gcc make libc6-dev \
  7. wget \
  8. file vim \
  9. && \
  10. chsh -s /bin/bash && \
  11. echo "root:root" | chpasswd && \
  12. mkdir -p /etc/systemd/system/serial-getty@ttyS0.service.d/ && \
  13. systemctl enable serial-getty@ttyS0.service && \
  14. rm /lib/systemd/system/getty.target.wants/getty-static.service && \
  15. rm /etc/motd /etc/issue && \
  16. systemctl disable systemd-timesyncd.service && \
  17. systemctl disable apt-daily.timer && \
  18. systemctl disable apt-daily-upgrade.timer && \
  19. apt-get --yes clean && \
  20. cd /root/ && \
  21. wget http://www.math.utah.edu/~mayer/linux/nbench-byte-2.2.3.tar.gz && \
  22. tar xfv nbench-byte-2.2.3.tar.gz && \
  23. rm nbench-byte-2.2.3.tar.gz && \
  24. mv nbench-byte-2.2.3 bench && \
  25. cd bench && \
  26. make
  27. COPY getty-noclear.conf getty-override.conf /etc/systemd/system/getty@tty1.service.d/
  28. COPY getty-autologin-serial.conf /etc/systemd/system/serial-getty@ttyS0.service.d/