-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (26 loc) · 1.02 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
FROM python:2.7.12-slim
ENV PYTHONUNBUFFERED 1
# Setup the locales in the Dockerfile
RUN set -x &&\
apt-get -qq update &&\
apt-get install -qq locales &&\
locale-gen en_US.UTF-8
# Install ooniprobe dependencies
RUN set -x && \
apt-get install -qq build-essential libdumbnet-dev libpcap-dev tor git \
libgeoip-dev libffi-dev python-dev python-pip libssl-dev
RUN pip install ooniprobe
RUN git clone https://github.com/hack66/bet2512.git /tmp/bet2512
RUN touch /var/lib/ooni/initialized
RUN ooniprobe --info
WORKDIR /tmp/bet2512/
RUN set -x && \
cp ooniprobe/bet2512.list /var/lib/ooni/resources/ && \
cp ooniprobe/tr.list /var/lib/ooni/resources/ && \
cp ooniprobe/eeep-v4.list /var/lib/ooni/resources/ && \
cp ooniprobe/bet2512.yaml /usr/local/share/ooni/decks-available/
RUN ln -s /usr/local/share/ooni/decks-available/bet2512.yaml \
/var/lib/ooni/decks-enabled/bet2512.yaml
COPY ooniprobe/ooniprobe.conf /etc/ooniprobe.conf
EXPOSE 8842
CMD ["ooniprobe-agent", "run"]