Commit a0484b25 authored by Angus Ainslie's avatar Angus Ainslie

Add a docker configuration for building on systems othe rthan debian

parent b6189c42
FROM debian:buster
ENV DEBIAN_FRONTEND=noninteractive
COPY ./keyboard /etc/default/keyboard
COPY ./console-setup /etc/default/console-setup
# Update Software repository
RUN apt-get update
RUN apt-get install -y console-setup
RUN setupcon -v
# Install
RUN apt-get install -y keyboard-configuration vmdebootstrap git sudo kpartx
# Volume configuration
VOLUME ["/src"]
RUN useradd -ms /bin/bash purism -p purism -G sudo
#USER purism
CMD ["bash"]
EXPOSE 80 443 22
# Change to "yes" and setupcon will explain what is being doing
# Setup these consoles. Most people do not need to change this.
# Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese. Read README.fonts for explanation.
# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16) and Fixed (sizes 13, 14, 15, 16 and 18). Only when
# CODESET=Ethiopian: Goha (sizes 12, 14 and 16) and
# GohaClassic (sizes 12, 14 and 16).
# Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# set up the keyboard but to leave the console font unchanged.
# You can also directly specify nonstandard font or console map to load.
# Use space as separator if you want to load more than one font.
# You can use FONT_MAP in order to specify the Unicode map of the font
# in case the font doesn't have it embedded.
# FONT='lat9w-08.psf.gz /usr/local/share/braillefonts/brl-08.psf'
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm
# You can also specify a screen size that setupcon will enforce. This can not
# exceed what the current screen resolution can display according to the size of
# the loaded font.
if [ -f /etc/default/keyboard ]; then
. /etc/default/keyboard
# If you change any of the following variables and X is configured to
# use this file, then the changes will become visible to X only if udev
# is restarted. You may need to reboot the system.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
=Buld the docker image
docker build -t debian_build .
=Run the docker image
docker run -ti -v /dev:/dev -v <path to debian_qemu_scripts>:/src --privileged debian_build
=Build the image in the container
cd /src
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment