tor_multipath_voip/Dockerfile

80 lines
1.9 KiB
Text
Raw Normal View History

2020-01-28 09:05:16 +00:00
FROM fedora:31 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 \
2020-01-28 09:05:16 +00:00
git \
2020-01-29 16:17:44 +00:00
gstreamer1-devel \
gstreamer1-plugins-base-devel
2019-09-02 09:22:59 +00:00
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
2020-01-23 09:48:36 +00:00
RUN git clone --single-branch --branch patch/relay_2 https://gitlab.inria.fr/qdufour/wide-tor.git tor2 && \
2019-09-02 09:22:59 +00:00
cd ./tor2 && \
./autogen.sh && \
./configure --disable-asciidoc || cat config.log && \
make -j`nproc`
2020-01-23 09:48:36 +00:00
RUN git clone --single-branch --branch master https://gitlab.inria.fr/qdufour/wide-tor.git tor3 && \
2019-09-02 09:22:59 +00:00
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
#####
2020-01-28 09:05:16 +00:00
FROM fedora:31
2019-09-02 09:22:59 +00:00
RUN dnf install -y \
glib2 \
2020-01-23 17:39:47 +00:00
procps-ng \
2019-09-02 09:22:59 +00:00
valgrind \
nmap-ncat \
psmisc \
libevent \
zlib \
2020-01-23 17:18:58 +00:00
strace \
2019-09-02 09:22:59 +00:00
openssl \
libzstd \
2019-10-22 16:09:48 +00:00
xz-libs \
2020-01-23 10:34:18 +00:00
moreutils \
2019-10-22 16:09:48 +00:00
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
2020-01-31 09:50:53 +00:00
USER 1000
2019-02-22 14:22:06 +00:00
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
2020-01-28 09:05:16 +00:00
COPY --from=builder /home/donar-build/out/dcall /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/
2020-01-31 09:50:53 +00:00
COPY ./assets /assets