mirror of
https://github.com/daniviga/qgis3-cd-copr.git
synced 2024-11-26 02:06:14 +01:00
Add Dockerfile for F27
This commit is contained in:
parent
a797da7bc6
commit
7eae72155f
27
docker/Dockerfile.f27
Normal file
27
docker/Dockerfile.f27
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# vi:syntax=dockerfile
|
||||||
|
FROM fedora:27
|
||||||
|
MAINTAINER Daniele Viganò <daniele@vigano.me>
|
||||||
|
|
||||||
|
RUN dnf install -y sudo tar bzip2 git python3-pip mock copr-cli && \
|
||||||
|
dnf clean all
|
||||||
|
# Use a Twisted binary wheel to avoid too many dependencies
|
||||||
|
RUN pip3 install https://daniele.vigano.me/files/pypi/Twisted-17.9.0-cp36-cp36m-linux_x86_64.whl \
|
||||||
|
buildbot-worker
|
||||||
|
|
||||||
|
RUN useradd -u 1003 builder && \
|
||||||
|
usermod -a -G mock builder
|
||||||
|
|
||||||
|
RUN echo "builder ALL=(ALL) NOPASSWD: /usr/bin/dnf" >> /etc/sudoers
|
||||||
|
|
||||||
|
USER builder
|
||||||
|
ENV HOME /home/builder
|
||||||
|
WORKDIR ${HOME}
|
||||||
|
|
||||||
|
COPY copr $HOME/.config/copr
|
||||||
|
|
||||||
|
RUN buildbot-worker create-worker $HOME 172.17.0.1 docker work3rP@ss! && \
|
||||||
|
echo "Daniele Viganò <daniel@vigano.me>" > info/admin && \
|
||||||
|
echo "Docker running Fedora 26 (x86_64)" > info/host
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/buildbot-worker"]
|
||||||
|
CMD ["start", "--nodaemon"]
|
Loading…
Reference in New Issue
Block a user