1
0
Fork 0
forked from len0rd/rockbox
foxbox/tools/docker_rbclient/Dockerfile
Franklin Wei 02a6985799 Add build code for Docker development environment
This simplifies the tedious task of building all the Rockbox
toolchains manually by providing a build code for a Docker container
image. It's useful for quickly spinning up a build client with just a
couple commands and no waiting to compile (though downloading takes a
little while).

I've built an image as built1n/rbclient on Docker Hub.

All toolchains (even the weird ones) are included, except android16.

Change-Id: I6b863628ffb397604f59ec6def2f8bb8c8c7185f
2019-07-28 21:13:56 +02:00

66 lines
1.6 KiB
Docker

FROM debian:9
WORKDIR /home/rb
ENV HOME /home/rb
ENV MAKEFLAGS -j12
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
git \
perl \
curl \
texinfo \
flex \
bison \
bzip2 \
gzip \
zip \
patch \
automake \
libtool \
libtool-bin \
autoconf \
libmpc-dev \
gawk \
python \
python-lzo \
python-setuptools \
mtd-utils \
xorriso \
wget \
subversion \
libncurses5-dev \
texlive-latex-base \
texlive-binaries \
texlive-latex-extra \
tex4ht \
texlive-fonts-recommended \
lmodern \
latex-xcolor \
texlive-base \
libsdl1.2-dev \
libsdl1.2debian
RUN cd /home/rb && git clone git://git.rockbox.org/rockbox
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="s"
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="m"
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="a"
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="i"
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="x"
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="y"
# compile sometimes fails; place this last to avoid duplicate work
RUN cd /home/rb/rockbox && ./tools/rockboxdev.sh --target="r"
RUN cd /home/rb/rockbox && \
wget "http://git.rockbox.org/?p=www.git;a=blob_plain;f=buildserver/rbclient.pl;hb=HEAD" -O rbclient.pl && \
chmod +x rbclient.pl
COPY runclient_modified.sh /home/rb/rockbox/runclient.sh
RUN cd /home/rb/rockbox && chmod +x runclient.sh
ENTRYPOINT cd /home/rb/rockbox && ./runclient.sh $USER $PASS $NAME