forked from rancher/os-kernel
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.dapper
75 lines (63 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM gcc:11.4.0
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y \
ccache \
vim \
gnupg2 \
locales \
bc \
kmod \
libelf-dev \
bison \
flex \
u-boot-tools \
gcc-aarch64-linux-gnu \
&& rm -f /bin/sh && ln -s /bin/bash /bin/sh
# gcc-mips64el-linux-gnuabi64 \
RUN dpkg --add-architecture arm64 \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y libelf-dev:arm64
# RUN dpkg --add-architecture mips64el \
# && DEBIAN_FRONTEND=noninteractive apt-get update \
# && apt-get install -y libelf-dev:mips64el
# Install dapper
RUN curl -sL https://releases.rancher.com/dapper/v0.5.4/dapper-$(uname -s)-$(uname -m | sed 's/arm.*/arm/') > /usr/bin/dapper \
&& chmod +x /usr/bin/dapper
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ARG DAPPER_HOST_ARCH
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
ARG OVERRIDE_KERNEL_ARCH
ENV OVERRIDE_KERNEL_ARCH=${OVERRIDE_KERNEL_ARCH}
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /source
ENV DAPPER_OUTPUT ./dist
#ENV DAPPER_RUN_ARGS --privileged
ENV SHELL /bin/bash
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ARG OS_REPO=burmilla
ARG KERNEL_TAG
ARG KERNEL_VERSION=${KERNEL_TAG}-${OS_REPO}
ARG FIRMWARE_TAG=20230804
ARG MENUCONFIG
ENV OS_REPO=${OS_REPO} \
DOCKER_URL=DOCKER_URL_${ARCH} \
DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
DOCKER_URL_arm64=https://github.com/burmilla/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64 \
DOCKER_URL_mips=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
KERNEL_TAG=${KERNEL_TAG} \
KERNEL_VERSION=${KERNEL_VERSION} \
KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v5.x/ \
KERNEL_TAR=linux-${KERNEL_TAG}.tar.xz \
KERNEL_SIGN=linux-${KERNEL_TAG}.tar.sign \
FIRMWARE_TAG=${FIRMWARE_TAG} \
KERNEL_ARCH=x86 \
MENUCONFIG=${MENUCONFIG}
# for rc testing
#ENV KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-${KERNEL_TAG}.tar.xz
# Install Docker
RUN curl -fL ${!DOCKER_URL} > /usr/bin/docker && \
chmod +x /usr/bin/docker