-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 956 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM i386/centos:6
RUN set -ex; \
echo i686 > /etc/yum/vars/arch; \
echo i386 > /etc/yum/vars/basearch; \
yum install -y util-linux-ng; \
yum clean all; \
set -ex; \
linux32 yum install -y \
https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/i386/ius-release-1.0-15.ius.centos6.noarch.rpm; \
linux32 yum clean all; \
set -ex; \
linux32 yum install -y \
gcc \
make \
python36u \
python36u-devel \
python36u-pip \
; \
linux32 yum clean all
RUN ln -s /usr/bin/pip3.6 /usr/bin/pip3
ENTRYPOINT ["/usr/bin/linux32"]
ENV BUILDBOT_VERSION 2.0.1
RUN pip3 install --upgrade pip && \
pip --no-cache-dir install twisted[tls] && \
pip --no-cache-dir install buildbot_worker==$BUILDBOT_VERSION
RUN useradd --create-home --home-dir=/var/lib/buildbot buildbot
WORKDIR /var/lib/buildbot
USER buildbot
COPY buildbot.tac .
CMD ["twistd", "--pidfile=", "--nodaemon", "--python=buildbot.tac"]