Dockerfile 1.61 KB
Newer Older
1
FROM ubuntu:18.04
2
LABEL maintainer="digitalLumberjack <digitallumberjack@recalbox.com>"
3 4 5

ENV TERM xterm
ENV ARCH ''
6
ENV RECALBOX_VERSION 'development'
7 8
ENV RECALBOX_CCACHE_ENABLED ''
ENV PACKAGE ''
9 10 11 12

# Install dependencies
# needed ? xterm
RUN apt-get update -y && \
13 14 15
apt-get install -y tzdata && \
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
16
apt-get -y install build-essential git libncurses5-dev qt5-default qttools5-dev-tools \
Subs's avatar
Subs committed
17
mercurial libdbus-glib-1-dev texinfo zip openssh-client libxml2-utils \
18
software-properties-common wget cpio bc locales rsync imagemagick \
19 20
nano vim automake mtools dosfstools subversion openjdk-8-jdk libssl-dev libelf-dev \
graphviz python-matplotlib python-numpy && \
21 22 23 24 25 26 27 28 29
rm -rf /var/lib/apt/lists/*

# Set the locale needed by toolchain
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen

RUN mkdir -p /work
WORKDIR /work

30
CMD echo ">>> Setting recalbox version to ${RECALBOX_VERSION}" && echo "${RECALBOX_VERSION}" > board/recalbox/fsoverlay/recalbox/recalbox.version && \
31
    echo ">>> Fetching and reseting buildroot submodule" && ( git submodule update --init ; cd buildroot && git reset HEAD --hard && git clean -dfx ) && \
32
    echo ">>> Making recalbox-${ARCH}_defconfig" && make recalbox-${ARCH}_defconfig && \
33
    export RECALBOX_CCACHE=${RECALBOX_CCACHE_ENABLED:+"BR2_CCACHE=y BR2_CCACHE_DIR=/share/ccache BR2_CCACHE_INITIAL_SETUP=--max-size=500G BR2_CCACHE_USE_BASEDIR=y"} && \
34 35
    echo ">>> Make with command : BR2_DL_DIR="/share/dl" $RECALBOX_CCACHE $PACKAGE" && \
    make BR2_DL_DIR="/share/dl" $RECALBOX_CCACHE $PACKAGE