forked from rancher/k3os-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
50 lines (42 loc) · 1.3 KB
/
Dockerfile.dapper
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
46
47
48
49
50
FROM gcc:8.3
# FROM arm64=arm64v8/gcc:8.3
RUN apt-get update \
&& apt-get install -y \
kernel-wedge \
libncurses-dev \
fakeroot \
cpio \
bison \
flex \
ccache \
vim \
gnupg2 \
locales \
bc \
kmod \
libelf-dev \
rsync \
gawk \
libudev-dev \
pciutils-dev \
&& rm -f /bin/sh && ln -s /bin/bash /bin/sh
########## Dapper Configuration #####################
ENV DAPPER_ENV VERSION DEBUG
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /source
ENV DAPPER_OUTPUT ./dist ./build
ENV DAPPER_RUN_ARGS --privileged
ENV SHELL /bin/bash
WORKDIR ${DAPPER_SOURCE}
########## General Configuration #####################
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
# https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/disco
ARG KERNEL_SOURCE_URL=http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-source-4.15.0_4.15.0-47.50_all.deb
# https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-firmware
ARG FIRMWARE_URL=http://archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.173.3_all.deb
ENV KERNEL_SOURCE_URL=${KERNEL_SOURCE_URL} \
FIRMWARE_URL=${FIRMWARE_URL} \
DOWNLOADS=/usr/src/downloads
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]