1
0
mirror of https://github.com/daniviga/qgis3-cd-copr.git synced 2024-11-23 01:46:13 +01:00
qgis3-cd-copr/docker/Dockerfile.f29

28 lines
935 B
Docker
Raw Permalink Normal View History

2018-10-24 10:41:20 +02:00
# vi:syntax=dockerfile
FROM registry.fedoraproject.org/fedora:29
MAINTAINER Daniele Viganò <daniele@vigano.me>
RUN dnf install -y sudo findutils tar bzip2 git python3-pip mock copr-cli && \
dnf clean all && \
find /var/cache/dnf -type f -delete
# Use a Twisted binary wheel to avoid too many dependencies
2018-10-24 10:55:57 +02:00
RUN pip3 install https://daniele.vigano.me/files/pypi/Twisted-18.9.0-cp37-cp37m-manylinux1_x86_64.whl \
buildbot-worker==1.5.0
2018-10-24 10:41:20 +02:00
RUN useradd -u 1000 builder && \
usermod -a -G mock builder
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER builder
ENV HOME /home/builder
WORKDIR ${HOME}
RUN buildbot-worker create-worker $HOME 172.17.0.1 f29 work3rP@ss! && \
echo "Daniele Viganò <daniel@vigano.me>" > info/admin && \
echo "Docker running Fedora 28 (x86_64)" > info/host
COPY copr $HOME/.config/copr
ENTRYPOINT ["/usr/local/bin/buildbot-worker"]
CMD ["start", "--nodaemon"]