-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (33 loc) · 1.21 KB
/
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
38
FROM openjdk:7
MAINTAINER Guangwen Zhou <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
ENV BUILDMASTER localhost
ENV BUILDMASTER_PORT 9989
ENV WORKERNAME docker
COPY buildbot.tac /buildbot/buildbot.tac
RUN echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && \
apt-get update && \
apt-get -y upgrade && \
apt-get -y install -q \
sbt \
build-essential \
git \
python-dev \
libffi-dev \
libssl-dev \
python-pip \
curl && \
rm -rf /var/lib/apt/lists/* && \
curl -Lo /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 && \
chmod +x /usr/local/bin/dumb-init
RUN pip install -U pip virtualenv && \
pip install --upgrade cffi && \
pip install 'twisted[tls]' && \
pip install -U setuptools && \
pip install buildbot-worker && \
pip install ansible && \
useradd -ms /bin/bash buildbot && chown -R buildbot /buildbot
USER buildbot
WORKDIR /buildbot
CMD ["/usr/local/bin/dumb-init", "twistd", "-ny", "buildbot.tac"]