2020-01-29 14:43:34 +00:00
|
|
|
FROM registry.fedoraproject.org/fedora:31
|
|
|
|
|
|
|
|
ENV TERM="dumb"
|
2018-11-14 01:13:13 +00:00
|
|
|
|
2020-02-10 13:09:49 +00:00
|
|
|
ARG DEFAULT_BRANCH="master"
|
|
|
|
|
2018-11-14 01:13:13 +00:00
|
|
|
# System setup
|
|
|
|
RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf && \
|
|
|
|
dnf upgrade -y && \
|
2020-09-09 14:31:08 +00:00
|
|
|
dnf install -y sudo git lbzip2 rsync wine which
|
2018-11-14 01:13:13 +00:00
|
|
|
|
|
|
|
# Configure git for various usage
|
|
|
|
RUN git config --global user.email "cerbero@gstreamer.freedesktop.org" && \
|
|
|
|
git config --global user.name "Cerbero Build System"
|
|
|
|
|
2020-04-06 08:38:41 +00:00
|
|
|
RUN git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/cerbero.git && \
|
2018-11-14 01:13:13 +00:00
|
|
|
mkdir $HOME/.cerbero && \
|
|
|
|
echo "allow_parallel_build=True" > $HOME/.cerbero/cerbero.cbc && \
|
|
|
|
echo "use_ccache=True" >> $HOME/.cerbero/cerbero.cbc && \
|
|
|
|
cd cerbero && \
|
2019-01-10 21:30:57 +00:00
|
|
|
echo "local_sources=\"/cerbero/cerbero-sources\"" >> localconf.cbc && \
|
|
|
|
echo "home_dir=\"/cerbero/cerbero-build\"" >> localconf.cbc && \
|
2019-03-25 11:53:37 +00:00
|
|
|
./cerbero-uninstalled -t -c localconf.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc fetch-package gstreamer-1.0 && \
|
2020-10-22 13:04:01 +00:00
|
|
|
./cerbero-uninstalled -t -c localconf.cbc bootstrap -y --build-tools=no --toolchains=no && \
|
2019-03-25 11:53:37 +00:00
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-win32.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-win32.cbc fetch-package gstreamer-1.0 && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-win64.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-win64.cbc fetch-package gstreamer-1.0 && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-android-universal.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/cross-android-universal.cbc fetch-package gstreamer-1.0 && \
|
2018-11-14 01:13:13 +00:00
|
|
|
cd .. && \
|
2018-12-18 02:38:06 +00:00
|
|
|
rm -rf /cerbero/cerbero-build/{dist,logs,sources} && \
|
2018-12-18 02:38:06 +00:00
|
|
|
rm -f /cerbero/cerbero-build/{linux,windows,android}*.cache && \
|
2018-11-14 01:13:13 +00:00
|
|
|
dnf clean all
|