From 7eae72155fe6e3ad1f2d4e51e4c5faa5b3e23fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Wed, 25 Oct 2017 13:44:20 +0200 Subject: [PATCH] Add Dockerfile for F27 --- docker/{Dockerfile => Dockerfile.f26} | 0 docker/Dockerfile.f27 | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) rename docker/{Dockerfile => Dockerfile.f26} (100%) create mode 100644 docker/Dockerfile.f27 diff --git a/docker/Dockerfile b/docker/Dockerfile.f26 similarity index 100% rename from docker/Dockerfile rename to docker/Dockerfile.f26 diff --git a/docker/Dockerfile.f27 b/docker/Dockerfile.f27 new file mode 100644 index 0000000..d7031df --- /dev/null +++ b/docker/Dockerfile.f27 @@ -0,0 +1,27 @@ +# vi:syntax=dockerfile +FROM fedora:27 +MAINTAINER Daniele ViganĂ² + +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Ă² " > info/admin && \ + echo "Docker running Fedora 26 (x86_64)" > info/host + +ENTRYPOINT ["/usr/bin/buildbot-worker"] +CMD ["start", "--nodaemon"]