-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile.buildroot
59 lines (48 loc) · 1.11 KB
/
Dockerfile.buildroot
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
# ref: https://github.com/AdvancedClimateSystems/docker-buildroot/blob/master/Dockerfile
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
build-essential \
bash \
bc \
binutils \
build-essential \
bzip2 \
cpio \
g++ \
gcc \
git \
gzip \
locales \
libncurses5-dev \
libdevmapper-dev \
libsystemd-dev \
make \
mercurial \
whois \
patch \
perl \
python \
rsync \
sed \
tar \
vim \
unzip \
wget \
bison \
flex \
libssl-dev \
libfdt-dev
# Sometimes Buildroot need proper locale, e.g. when using a toolchain
# based on glibc.
RUN locale-gen en_US.utf8
RUN git clone https://github.com/buildroot/buildroot --depth=1 --branch=2021.08.2 /root/buildroot
WORKDIR /root/buildroot
ENV O=/buildroot_output
# ADD ./rootfs/buildroot_conf/rootfs.201702.11-4.conf /root/buildroot/.config
# ADD ./rootfs/buildroot_conf/busybox-config-20180809 /root/buildroot/
#VOLUME /root/buildroot/dl
#VOLUME /buildroot_output
RUN apt install -y rpm2cpio kmod
RUN ["/bin/bash"]