-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
51 lines (44 loc) · 1.45 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
46
47
48
49
50
51
FROM rastasheep/ubuntu-sshd:18.04
# Buildroot version to use
ARG BUILD_ROOT_RELEASE=2021.02-rc2
# Root password for SSH
ARG ROOT_PASSWORD=browser-vm
# Copy v86 buildroot board config into image.
# NOTE: if you want to override this later to play with
# the config (e.g., run `make menuconfig`), mount a volume:
# docker run ... -v $PWD/buildroot-v86:/buildroot-v86 ...
COPY ./buildroot-v86 /buildroot-v86
# Setup SSH (for Windows users) and prepare apt-get
RUN echo 'root:${ROOT_PASSWORD}' | chpasswd; \
# Install all Buildroot deps
sed -i 's|deb http://us.archive.ubuntu.com/ubuntu/|deb mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list; \
dpkg --add-architecture i386; \
rm -rf /var/lib/apt/lists/*; \
apt-get -q update;
# Install all Buildroot deps and prepare buildroot
WORKDIR /root
RUN DEBIAN_FRONTEND=noninteractive apt-get -q -y install \
bc \
build-essential \
bzr \
cpio \
cvs \
git \
unzip \
wget \
libc6:i386 \
libncurses5-dev \
libssl-dev \
rsync; \
wget -c http://buildroot.org/downloads/buildroot-${BUILD_ROOT_RELEASE}.tar.gz; \
tar axf buildroot-${BUILD_ROOT_RELEASE}.tar.gz;
# configure the locales
ENV LANG='C' \
LANGUAGE='en_US:en' \
LC_ALL='C' \
NOTVISIBLE="in users profile" \
TERM=xterm
# Buildroot will place built artifacts here at the end.
VOLUME /build
WORKDIR /root/buildroot-${BUILD_ROOT_RELEASE}
ENTRYPOINT ["/buildroot-v86/build-v86.sh"]