docker: cerbero: Add in-docker sources caching

As our runner cache in most of the time cold, and is always cold for new
contributors, which should greatly speedup the build.
This commit is contained in:
Nicolas Dufresne 2018-12-17 14:07:56 -05:00 committed by Nicolas Dufresne
parent 8eec47d8fe
commit 2481157931

View file

@ -13,7 +13,10 @@ 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 && \
echo "local_sources=\"/cerbero/cerbero-sources\"" >> $HOME/.cerbero/cerbero.cbc && \
cd cerbero && \
./cerbero-uninstalled bootstrap -y --system-only && \
./cerbero-uninstalled fetch-bootstrap --build-tools-only && \
./cerbero-uninstalled fetch-package gstreamer-1.0 && \
cd .. && \
dnf clean all