tor_multipath_voip/Dockerfile

73 lines
1.7 KiB
Text
Raw Normal View History

2019-05-15 13:52:39 +00:00
FROM fedora:30 as builder
2019-09-02 09:22:59 +00: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 13:45:54 +00:00
WORKDIR /home/donar-build
RUN chown -R 1000 /home/donar-build
USER 1000
2019-09-02 09:22:59 +00: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-09-04 15:42:59 +00:00
COPY ./src ./src
COPY CMakeLists.txt .
RUN mkdir out && \
cd out && \
cmake -GNinja .. && \
ninja
2019-09-02 09:22:59 +00:00
#####
2019-05-15 13:52:39 +00:00
FROM fedora:30
2019-09-02 09:22:59 +00:00
RUN dnf install -y \
glib2 \
valgrind \
nmap-ncat \
psmisc \
libevent \
zlib \
openssl \
libzstd \
2019-10-22 16:09:48 +00:00
xz-libs \
gstreamer1 \
gstreamer1-plugins-base \
gstreamer1-plugins-good \
gstreamer1-plugins-bad-free \
gstreamer1-plugins-ugly-free
2019-09-02 09:22:59 +00:00
2019-02-22 14:22:06 +00:00
WORKDIR /home/donar
2019-03-05 15:13:08 +00:00
RUN mkdir /home/donar/shared && mkdir /home/donar/res && chown -R 1000 /home/donar
2019-02-22 14:22:06 +00:00
USER 1000
ENV HOME /home/donar
2019-02-21 13:45:54 +00: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 16:45:48 +00:00
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
2019-03-11 14:41:42 +00:00
COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
2019-09-02 09:22:59 +00: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-10-22 15:42:20 +00:00
COPY ./scripts/container/* /usr/local/bin/
2019-09-02 13:50:48 +00:00
COPY ./torrc_* /etc/