This reduces network traffic and eliminates time for installation when building packages from the frozen toolchain, as well as isolating the build from updates to those dependencies which may cause breakage.
14 lines
566 B
Docker
14 lines
566 B
Docker
FROM fedora:31
|
|
ADD ./install-dependencies.sh ./
|
|
ADD ./seastar/install-dependencies.sh ./seastar/
|
|
ADD ./tools/toolchain/system-auth ./
|
|
RUN dnf -y install 'dnf-command(copr)' \
|
|
&& dnf -y install ccache \
|
|
&& dnf -y install gdb \
|
|
&& dnf -y install devscripts debhelper fakeroot file rpm-build python2-pystache \
|
|
&& /bin/bash -x ./install-dependencies.sh && dnf -y update && dnf clean all \
|
|
&& echo 'ALL ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers \
|
|
&& cp system-auth /etc/pam.d \
|
|
&& echo 'Defaults !requiretty' >> /etc/sudoers
|
|
CMD /bin/bash
|