forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (35 loc) · 1.4 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
FROM martenseemann/quic-network-simulator-endpoint as source
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
build-essential \
cmake \
liblttng-ust-dev \
&& apt-get clean
COPY . /src
FROM source as build
WORKDIR /src/Debug
RUN chmod +x /src/scripts/install-powershell-docker.sh
RUN /src/scripts/install-powershell-docker.sh
ENV PATH="/root/.dotnet/tools:${PATH}"
RUN cmake -DQUIC_BUILD_TEST=OFF -DQUIC_BUILD_PERF=OFF \
-DQUIC_ENABLE_LOGGING=on -DQUIC_TLS_SECRETS_SUPPORT=on ..
RUN cmake --build .
FROM martenseemann/quic-network-simulator-endpoint
RUN apt-get update -y \
&& apt-get install -y \
libatomic1 \
liblttng-ust-dev \
lttng-tools \
&& apt-get clean
COPY --from=build /src/Debug/bin/Release /bin
COPY --from=build /src/Debug/bin/Release/*.so /lib/x86_64-linux-gnu/
COPY --from=source /src/scripts/run_endpoint.sh /run_endpoint.sh
COPY --from=source /src/src/manifest/clog.sidecar /clog.sidecar
COPY --from=source /src/scripts/install-powershell-docker.sh \
/install-powershell-docker.sh
RUN chmod +x /install-powershell-docker.sh
RUN /install-powershell-docker.sh
ENV PATH="/root/.dotnet/tools:${PATH}"
RUN chmod +x /run_endpoint.sh
ENTRYPOINT [ "/run_endpoint.sh" ]