-
Notifications
You must be signed in to change notification settings - Fork 58
/
Dockerfile
45 lines (42 loc) · 1.97 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:bionic
# Creates a Ubuntu based containerised build environment to use as a base for building SD card images
# Building a base image will save time in case of a re-build and/or premature failure
# 1. Upgrade Ubuntu
# 2. Install this project's basic prerequisites
# 3. Install LibVirt/QEMU to run AArch64 VMs
# 4. Install required packages to build the Linux kernel
# 5. Install required packages to build Grub
RUN set -ex; \
apt update; \
apt upgrade -y; \
apt install -y \
net-tools \
nmap \
software-properties-common \
ssh \
sshpass \
tar \
wget \
xz-utils; \
add-apt-repository -y cloud-archive:rocky; \
apt install -y \
qemu-efi \
virt-manager \
libvirt-bin \
qemu-guest-agent \
qemu-system-aarch64; \
apt install -y \
build-essential \
ccache \
bison \
flex \
bc \
libssl-dev \
cpio \
rsync \
gcc-aarch64-linux-gnu; \
apt install -y \
autoconf \
pkg-config
# Create mount points
VOLUME /isos /output /scripts /src