-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
82 lines (70 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM debian:stretch
ENV JAVA_VERSION 1.11.0
ARG user_id=1000
# Install mandatory dependencies
# https://buildroot.org/downloads/manual/manual.html#requirement-mandatory
RUN apt-get update && apt-get install -y -q \
bash \
bc \
binutils \
build-essential \
bzip2 \
ca-certificates \
cpio \
debianutils \
file \
g++ \
gcc \
git \
graphviz \
gzip \
libncurses5-dev \
locales \
make \
patch \
perl \
python \
python-matplotlib \
rsync \
sed \
tar \
unzip \
wget
#RUN apt-cache search openjdk
# and now our specific ones
RUN apt-get update && apt-get install -y -q \
bison \
bzr \
flex \
gcc-multilib \
genext2fs \
gettext \
libc6-dev-i386 \
libvorbis-dev \
libxext-dev \
mercurial \
mlocate \
nano \
openjdk-8-jdk \
subversion \
sudo \
texinfo \
tree \
vim
# shave some space
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# set up toolchain
# let's get the latest from http://www.gcw-zero.com/develop
RUN mkdir -p /opt
RUN cd /opt \
&& wget http://www.gcw-zero.com/files/opendingux-gcw0-toolchain.2014-08-20.tar.bz2 \
&& tar jxvf ./opendingux-gcw0-toolchain.2014-08-20.tar.bz2 \
&& rm -f ./opendingux-gcw0-toolchain.2014-08-20.tar.bz2
ENV PATH="/opt/gcw0-toolchain/usr/bin:${PATH}:/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin"
ENV CC=mipsel-linux-gcc
# fix locales
RUN sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/" /etc/locale.gen && locale-gen && update-locale LANG=en_GB.UTF-8
RUN useradd -m docker -u ${user_id} -g users -G sudo && echo "docker:docker" | chpasswd
WORKDIR /buildroot
# and hand over to the interactive shell