forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqns.Dockerfile
More file actions
37 lines (35 loc) · 1.5 KB
/
Copy pathqns.Dockerfile
File metadata and controls
37 lines (35 loc) · 1.5 KB
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@sha256:ff6ab6273c22d0609e2c0a123a15310da8bcd27052e8aaf10a6cc799a0218a4c as source
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
build-essential \
cmake \
liblttng-ust-dev \
libnuma-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_TOOLS=on -DQUIC_ENABLE_LOGGING=on ..
RUN cmake --build .
FROM martenseemann/quic-network-simulator-endpoint@sha256:ff6ab6273c22d0609e2c0a123a15310da8bcd27052e8aaf10a6cc799a0218a4c
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" ]