зеркало из https://github.com/microsoft/msquic.git
38 строки
1.5 KiB
Docker
38 строки
1.5 KiB
Docker
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 \
|
|
&& 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 \
|
|
-DQUIC_DISABLE_POSIX_GSO=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" ]
|