-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
22 lines (18 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM fedora:22
# dpkg-dev is required for dpkg-scanpackages
# /usr/bin/find /usr/bin/tar is required by dpkg-scanpackages (https://bugzilla.redhat.com/show_bug.cgi?id=1240352)
RUN dnf upgrade -y && \
dnf install -y python-devel python-pip gcc libffi-devel openssl-devel gmp-devel git s3cmd dpkg-dev /usr/bin/find /usr/bin/tar createrepo_c && \
dnf clean all
ADD requirements.txt /srv/buildmaster/
RUN ["pip", "install", "-r", "/srv/buildmaster/requirements.txt"]
ADD buildbot.tac /srv/buildmaster/
ADD public_html /srv/buildmaster/public_html
ADD templates /srv/buildmaster/templates/
ADD flocker_bb /srv/buildmaster/flocker_bb
ADD slave/cloud-init.sh /srv/buildmaster/slave/cloud-init.sh
ADD config.py /srv/buildmaster/
EXPOSE 80 9989
CMD ["twistd", "--syslog", "--prefix", "buildmaster", "--pidfile", "/var/run/buildbot.pid", "-ny", "/srv/buildmaster/buildbot.tac"]
WORKDIR /srv/buildmaster/data
VOLUME ["/srv/buildmaster/data"]