2018-11-14 01:13:13 +00:00
|
|
|
FROM fedora:29
|
|
|
|
|
|
|
|
# System setup
|
|
|
|
RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf && \
|
|
|
|
dnf upgrade -y && \
|
|
|
|
dnf install -y sudo git rsync
|
|
|
|
|
|
|
|
# Configure git for various usage
|
|
|
|
RUN git config --global user.email "cerbero@gstreamer.freedesktop.org" && \
|
|
|
|
git config --global user.name "Cerbero Build System"
|
|
|
|
|
|
|
|
RUN git clone https://gitlab.freedesktop.org/gstreamer/cerbero.git && \
|
|
|
|
mkdir $HOME/.cerbero && \
|
|
|
|
echo "allow_parallel_build=True" > $HOME/.cerbero/cerbero.cbc && \
|
|
|
|
echo "use_ccache=True" >> $HOME/.cerbero/cerbero.cbc && \
|
2018-12-17 19:07:56 +00:00
|
|
|
echo "local_sources=\"/cerbero/cerbero-sources\"" >> $HOME/.cerbero/cerbero.cbc && \
|
2018-12-18 02:38:06 +00:00
|
|
|
echo "home_dir=\"/cerbero/cerbero-build\"" >> $HOME/.cerbero/cerbero.cbc && \
|
2018-11-14 01:13:13 +00:00
|
|
|
cd cerbero && \
|
|
|
|
./cerbero-uninstalled bootstrap -y --system-only && \
|
2018-12-18 02:38:06 +00:00
|
|
|
./cerbero-uninstalled fetch-bootstrap && \
|
2018-12-17 19:07:56 +00:00
|
|
|
./cerbero-uninstalled fetch-package gstreamer-1.0 && \
|
2018-12-18 02:38:06 +00:00
|
|
|
./cerbero-uninstalled -c config/cross-win32.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -c config/cross-win32.cbc fetch-package gstreamer-1.0 && \
|
|
|
|
./cerbero-uninstalled -c config/cross-win32.cbc bootstrap -y --system-only && \
|
|
|
|
./cerbero-uninstalled -c config/cross-win64.cbc fetch-bootstrap && \
|
|
|
|
./cerbero-uninstalled -c config/cross-win64.cbc fetch-package gstreamer-1.0 && \
|
|
|
|
./cerbero-uninstalled -c config/cross-win64.cbc bootstrap -y --system-only && \
|
2018-11-14 01:13:13 +00:00
|
|
|
cd .. && \
|
2018-12-18 02:38:06 +00:00
|
|
|
rm /cerbero/cerbero-sources/mingw-w*.tar.xz && \
|
|
|
|
rm -rf /cerbero/cerbero-build/{dist,logs,sources} && \
|
|
|
|
rm -f /cerbero/cerbero-build/{linux,windows}*.cache && \
|
2018-11-14 01:13:13 +00:00
|
|
|
dnf clean all
|