aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/20191027-kernel-debugging-qemu/Dockerfile
blob: 42e1f0517e44679a318576546d65e83220bae65e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:20.04
MAINTAINER Johannes Stoelp <johannes.stoelp@gmail.edu>

RUN apt update                     \
 && DEBIAN_FRONTEND=noninteractive \
    apt install                    \
      --yes                        \
      --no-install-recommends      \
      # Download & unpack.
      wget                         \
      ca-certificates              \
      xz-utils                     \
      # Build tools & deps (kernel).
      make                         \
      bc                           \
      gcc g++                      \
      flex bison                   \
      libelf-dev                   \
      # Build tools & deps (initrd).
      cpio                         \
      # Run & debug.
      qemu-system-x86              \
      gdb                          \
      telnet                       \
      # Convenience.
      ripgrep                      \
      fd-find                      \
      neovim                       \
 && rm -rf /var/lib/apt/lists/*    \
 && apt-get clean

WORKDIR /develop