mirror of
https://github.com/daniviga/qgis3-cd-copr.git
synced 2024-11-23 01:46:13 +01:00
Update to Buildbot 1.2.0 and F28
This commit is contained in:
parent
9ec8cdabcd
commit
f8cd71d680
|
@ -19,14 +19,14 @@ c = BuildmasterConfig = {}
|
||||||
# worker name and password must be configured on the worker.
|
# worker name and password must be configured on the worker.
|
||||||
#c['workers'] = [worker.Worker("worker", "work3rP@ss!")]
|
#c['workers'] = [worker.Worker("worker", "work3rP@ss!")]
|
||||||
c['workers'] = [
|
c['workers'] = [
|
||||||
worker.DockerLatentWorker('f26', 'work3rP@ss!',
|
|
||||||
docker_host='unix:///var/run/docker.sock',
|
|
||||||
image='buildbot-worker:26',
|
|
||||||
hostconfig={'cap_add': ['SYS_ADMIN']}),
|
|
||||||
worker.DockerLatentWorker('f27', 'work3rP@ss!',
|
worker.DockerLatentWorker('f27', 'work3rP@ss!',
|
||||||
docker_host='unix:///var/run/docker.sock',
|
docker_host='unix:///var/run/docker.sock',
|
||||||
image='buildbot-worker:27',
|
image='buildbot-worker:27',
|
||||||
hostconfig={'cap_add': ['SYS_ADMIN'], 'security_opt': ['apparmor=unconfined']}),
|
hostconfig={'cap_add': ['SYS_ADMIN'], 'security_opt': ['apparmor=unconfined']}),
|
||||||
|
worker.DockerLatentWorker('f28', 'work3rP@ss!',
|
||||||
|
docker_host='unix:///var/run/docker.sock',
|
||||||
|
image='buildbot-worker:28',
|
||||||
|
hostconfig={'cap_add': ['SYS_ADMIN'], 'security_opt': ['apparmor=unconfined']}),
|
||||||
]
|
]
|
||||||
# 'protocols' contains information about protocols which master will use for
|
# 'protocols' contains information about protocols which master will use for
|
||||||
# communicating with workers. You must define at least 'port' option that workers
|
# communicating with workers. You must define at least 'port' option that workers
|
||||||
|
@ -62,12 +62,12 @@ c['schedulers'] = []
|
||||||
c['schedulers'].append(schedulers.ForceScheduler(
|
c['schedulers'].append(schedulers.ForceScheduler(
|
||||||
name="Force_QGIS",
|
name="Force_QGIS",
|
||||||
builderNames=["qgis"]))
|
builderNames=["qgis"]))
|
||||||
c['schedulers'].append(schedulers.ForceScheduler(
|
|
||||||
name="Force_QGIS_DNF_F26",
|
|
||||||
builderNames=["qgis_dnf_f26"]))
|
|
||||||
c['schedulers'].append(schedulers.ForceScheduler(
|
c['schedulers'].append(schedulers.ForceScheduler(
|
||||||
name="Force_QGIS_DNF_F27",
|
name="Force_QGIS_DNF_F27",
|
||||||
builderNames=["qgis_dnf_f27"]))
|
builderNames=["qgis_dnf_f27"]))
|
||||||
|
c['schedulers'].append(schedulers.ForceScheduler(
|
||||||
|
name="Force_QGIS_DNF_F28",
|
||||||
|
builderNames=["qgis_dnf_f28"]))
|
||||||
|
|
||||||
####### BUILDERS
|
####### BUILDERS
|
||||||
|
|
||||||
|
@ -103,11 +103,11 @@ qgis_install_factory.addStep(steps.ShellCommand(command=["/usr/bin/qgis", "--hel
|
||||||
c['builders'] = []
|
c['builders'] = []
|
||||||
c['builders'].append(
|
c['builders'].append(
|
||||||
util.BuilderConfig(name="qgis",
|
util.BuilderConfig(name="qgis",
|
||||||
workernames=["f27"],
|
workernames=["f28"],
|
||||||
factory=qgis_factory))
|
factory=qgis_factory))
|
||||||
c['builders'].append(
|
c['builders'].append(
|
||||||
util.BuilderConfig(name="qgis_dnf_f26",
|
util.BuilderConfig(name="qgis_dnf_f28",
|
||||||
workernames=["f26"],
|
workernames=["f28"],
|
||||||
factory=qgis_install_factory))
|
factory=qgis_install_factory))
|
||||||
c['builders'].append(
|
c['builders'].append(
|
||||||
util.BuilderConfig(name="qgis_dnf_f27",
|
util.BuilderConfig(name="qgis_dnf_f27",
|
||||||
|
|
|
@ -4,15 +4,15 @@ MAINTAINER Daniele Viganò <daniele@vigano.me>
|
||||||
|
|
||||||
RUN dnf install -y sudo findutils tar bzip2 git python3-pip mock copr-cli && \
|
RUN dnf install -y sudo findutils tar bzip2 git python3-pip mock copr-cli && \
|
||||||
dnf clean all && \
|
dnf clean all && \
|
||||||
find /var/cache/dnf -type d -delete
|
find /var/cache/dnf -type f -delete
|
||||||
# Use a Twisted binary wheel to avoid too many dependencies
|
# 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-manylinux1_x86_64.whl \
|
RUN pip3 install https://daniele.vigano.me/files/pypi/Twisted-17.9.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||||
buildbot-worker
|
buildbot-worker==1.2.0
|
||||||
|
|
||||||
RUN useradd -u 1000 builder && \
|
RUN useradd -u 1000 builder && \
|
||||||
usermod -a -G mock builder
|
usermod -a -G mock builder
|
||||||
|
|
||||||
RUN echo "builder ALL=(ALL) NOPASSWD: /usr/bin/dnf" >> /etc/sudoers
|
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
||||||
USER builder
|
USER builder
|
||||||
ENV HOME /home/builder
|
ENV HOME /home/builder
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
# vi:syntax=dockerfile
|
# vi:syntax=dockerfile
|
||||||
FROM registry.fedoraproject.org/fedora:26
|
FROM registry.fedoraproject.org/fedora:28
|
||||||
MAINTAINER Daniele Viganò <daniele@vigano.me>
|
MAINTAINER Daniele Viganò <daniele@vigano.me>
|
||||||
|
|
||||||
RUN dnf install -y sudo findutils tar bzip2 git python3-pip mock copr-cli && \
|
RUN dnf install -y sudo findutils tar bzip2 git python3-pip mock copr-cli && \
|
||||||
dnf clean all && \
|
dnf clean all && \
|
||||||
find /var/cache/dnf -type d -delete
|
find /var/cache/dnf -type f -delete
|
||||||
# Use a Twisted binary wheel to avoid too many dependencies
|
# 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-manylinux1_x86_64.whl \
|
RUN pip3 install https://daniele.vigano.me/files/pypi/Twisted-17.9.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||||
buildbot-worker
|
buildbot-worker==1.2.0
|
||||||
|
|
||||||
RUN useradd -u 1000 builder && \
|
RUN useradd -u 1000 builder && \
|
||||||
usermod -a -G mock builder
|
usermod -a -G mock builder
|
||||||
|
|
||||||
RUN echo "builder ALL=(ALL) NOPASSWD: /usr/bin/dnf" >> /etc/sudoers
|
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
||||||
USER builder
|
USER builder
|
||||||
ENV HOME /home/builder
|
ENV HOME /home/builder
|
||||||
WORKDIR ${HOME}
|
WORKDIR ${HOME}
|
||||||
|
|
||||||
RUN buildbot-worker create-worker $HOME 172.17.0.1 f26 work3rP@ss! && \
|
RUN buildbot-worker create-worker $HOME 172.17.0.1 f28 work3rP@ss! && \
|
||||||
echo "Daniele Viganò <daniel@vigano.me>" > info/admin && \
|
echo "Daniele Viganò <daniel@vigano.me>" > info/admin && \
|
||||||
echo "Docker running Fedora 26 (x86_64)" > info/host
|
echo "Docker running Fedora 28 (x86_64)" > info/host
|
||||||
|
|
||||||
COPY copr $HOME/.config/copr
|
COPY copr $HOME/.config/copr
|
||||||
ENTRYPOINT ["/usr/bin/buildbot-worker"]
|
ENTRYPOINT ["/usr/local/bin/buildbot-worker"]
|
||||||
CMD ["start", "--nodaemon"]
|
CMD ["start", "--nodaemon"]
|
Loading…
Reference in New Issue
Block a user