forked from Jason-ZW/os-rpi-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dapper
57 lines (49 loc) · 1.48 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
51
52
53
54
55
56
FROM debian:9
# FROM arm64=arm64v8/debian:9
ARG DAPPER_HOST_ARCH
ARG DOWNLOADS_DIR=/usr/src/downloads
ARG KERNEL_ARCH=arm64
ARG KERNEL_URL=https://github.com/raspberrypi/linux.git
ARG KERNEL_BRANCH=rpi-4.19.y
ARG FIRMWARE_URL=https://github.com/raspberrypi/firmware.git
ARG FIRMWARE_BRANCH=master
RUN apt-get update && DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes apt-get install -y --no-install-recommends \
apt-utils \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bc \
bison \
build-essential \
ca-certificates \
curl \
git-core \
flex \
kmod \
libncurses5-dev \
libssl-dev \
locales \
&& if [ "${DAPPER_HOST_ARCH}" != "arm64" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gcc-aarch64-linux-gnu; \
fi \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /bin/sh && ln -s /bin/bash /bin/sh
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
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 ARCH $DAPPER_HOST_ARCH
ENV SHELL /bin/bash
ENV LANG en_US.UTF-8
ENV KERNEL_URL=${KERNEL_URL} \
KERNEL_BRANCH=${KERNEL_BRANCH} \
KERNEL_ARCH=${KERNEL_ARCH} \
FIRMWARE_URL=${FIRMWARE_URL} \
FIRMWARE_BRANCH=${FIRMWARE_BRANCH} \
DOWNLOADS=${DOWNLOADS_DIR}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]