2019-05-15 15:52:39 +02:00
|
|
|
FROM fedora:30 as builder
|
2019-09-02 11:22:59 +02:00
|
|
|
RUN dnf install -y \
|
|
|
|
coreutils \
|
|
|
|
cmake \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
gcc-c++ \
|
|
|
|
ninja-build \
|
|
|
|
glib2-devel \
|
|
|
|
libevent-devel \
|
|
|
|
zlib-devel \
|
|
|
|
openssl-devel \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
libzstd-devel \
|
|
|
|
xz-devel \
|
|
|
|
git
|
|
|
|
|
2019-02-21 14:45:54 +01:00
|
|
|
WORKDIR /home/donar-build
|
|
|
|
RUN chown -R 1000 /home/donar-build
|
|
|
|
USER 1000
|
2019-09-02 11:22:59 +02:00
|
|
|
|
2019-03-28 17:05:47 +01:00
|
|
|
COPY ./src ./src
|
|
|
|
COPY CMakeLists.txt .
|
2019-02-21 14:45:54 +01:00
|
|
|
RUN mkdir out && \
|
|
|
|
cd out && \
|
|
|
|
cmake -GNinja .. && \
|
|
|
|
ninja
|
|
|
|
|
2019-09-02 11:22:59 +02:00
|
|
|
RUN git clone --single-branch --branch patch/relay_2 https://gitlab.inria.fr/qdufour/wide-tor.git tor2 && \
|
|
|
|
cd ./tor2 && \
|
|
|
|
./autogen.sh && \
|
|
|
|
./configure --disable-asciidoc || cat config.log && \
|
|
|
|
make -j`nproc`
|
|
|
|
|
|
|
|
RUN git clone --single-branch --branch master https://gitlab.inria.fr/qdufour/wide-tor.git tor3 && \
|
|
|
|
cd ./tor3 && \
|
|
|
|
./autogen.sh && \
|
|
|
|
./configure --disable-asciidoc && \
|
|
|
|
make -j`nproc`
|
|
|
|
|
|
|
|
#####
|
|
|
|
|
2019-05-15 15:52:39 +02:00
|
|
|
FROM fedora:30
|
2019-09-02 11:22:59 +02:00
|
|
|
RUN dnf install -y \
|
|
|
|
glib2 \
|
|
|
|
valgrind \
|
|
|
|
nmap-ncat \
|
|
|
|
psmisc \
|
|
|
|
libevent \
|
|
|
|
zlib \
|
|
|
|
openssl \
|
|
|
|
libzstd \
|
|
|
|
xz-libs
|
|
|
|
|
2019-02-22 15:22:06 +01:00
|
|
|
WORKDIR /home/donar
|
2019-03-05 16:13:08 +01:00
|
|
|
RUN mkdir /home/donar/shared && mkdir /home/donar/res && chown -R 1000 /home/donar
|
2019-02-22 15:22:06 +01:00
|
|
|
USER 1000
|
|
|
|
ENV HOME /home/donar
|
2019-02-21 14:45:54 +01:00
|
|
|
COPY --from=builder /home/donar-build/out/donar /usr/local/bin
|
|
|
|
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
2019-02-22 17:45:48 +01:00
|
|
|
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
|
2019-03-11 15:41:42 +01:00
|
|
|
COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
|
2019-09-02 11:22:59 +02:00
|
|
|
COPY --from=builder /home/donar-build/tor2/src/app/tor /usr/local/bin/tor2
|
|
|
|
COPY --from=builder /home/donar-build/tor3/src/app/tor /usr/local/bin/tor3
|
2019-03-28 17:05:47 +01:00
|
|
|
COPY ./scripts/* /usr/local/bin/
|
2019-09-02 15:50:48 +02:00
|
|
|
COPY ./torrc_* /etc/
|