Skip to content

Commit

Permalink
Use msquic from Alpine testing repository (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Aug 26, 2024
2 parents 94c05cc + f3359f3 commit c4da7a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 105 deletions.
37 changes: 2 additions & 35 deletions src/alpine/3.17/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
FROM library/alpine:3.17 AS msquic
ARG TARGETARCH

# build MsQuic as we don't have packages
RUN apk add --upgrade --no-cache \
cmake \
g++ \
gcc \
git \
numactl-dev \
linux-headers \
lttng-ust-dev \
make \
musl-dev \
openssl-dev \
perl

RUN git clone --depth 1 --single-branch --branch v2.4.3 --recursive https://github.com/microsoft/msquic /tmp/msquic

WORKDIR /tmp/msquic

RUN cmake -B build/linux/Release_openssl3 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TARGET_ARCHITECTURE=${TARGETARCH} \
-DQUIC_TLS=openssl3 \
-DQUIC_ENABLE_LOGGING=true \
-DQUIC_USE_SYSTEM_LIBCRYPTO=true \
-DQUIC_BUILD_TOOLS=off \
-DQUIC_BUILD_TEST=off \
-DQUIC_BUILD_PERF=off && \
cmake --build build/linux/Release_openssl3 --config Release && \
cmake --install build/linux/Release_openssl3 --prefix /msquic

FROM library/alpine:3.17 AS venv

RUN apk add --upgrade --no-cache \
Expand Down Expand Up @@ -72,8 +39,8 @@ RUN apk add --upgrade --no-cache \
sudo \
tzdata

# Copy msquic from the msquic image into our image that will run on Helix
COPY --from=msquic /msquic /usr
# Install libmsquic from testing repository
RUN apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ libmsquic

# Needed for runtime tests to pass
ENV LANG=en-US.UTF-8
Expand Down
37 changes: 2 additions & 35 deletions src/alpine/3.18/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
FROM library/alpine:3.18 AS msquic
ARG TARGETARCH

# build MsQuic as we don't have packages
RUN apk add --upgrade --no-cache \
cmake \
g++ \
gcc \
git \
numactl-dev \
linux-headers \
lttng-ust-dev \
make \
musl-dev \
openssl-dev \
perl

RUN git clone --depth 1 --single-branch --branch v2.4.3 --recursive https://github.com/microsoft/msquic /tmp/msquic

WORKDIR /tmp/msquic

RUN cmake -B build/linux/Release_openssl3 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TARGET_ARCHITECTURE=${TARGETARCH} \
-DQUIC_TLS=openssl3 \
-DQUIC_ENABLE_LOGGING=true \
-DQUIC_USE_SYSTEM_LIBCRYPTO=true \
-DQUIC_BUILD_TOOLS=off \
-DQUIC_BUILD_TEST=off \
-DQUIC_BUILD_PERF=off && \
cmake --build build/linux/Release_openssl3 --config Release && \
cmake --install build/linux/Release_openssl3 --prefix /msquic

FROM library/alpine:3.18 AS venv

RUN apk add --upgrade --no-cache \
Expand Down Expand Up @@ -67,8 +34,8 @@ RUN apk add --upgrade --no-cache \
sudo \
tzdata

# Copy msquic from the msquic image into our image that will run on Helix
COPY --from=msquic /msquic /usr
# Install libmsquic from testing repository
RUN apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ libmsquic

# Needed for runtime tests to pass
ENV LANG=en-US.UTF-8
Expand Down
37 changes: 2 additions & 35 deletions src/alpine/3.20/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
FROM library/alpine:3.20 AS msquic
ARG TARGETARCH

# build MsQuic as we don't have packages
RUN apk add --upgrade --no-cache \
cmake \
g++ \
gcc \
git \
numactl-dev \
linux-headers \
lttng-ust-dev \
make \
musl-dev \
openssl-dev \
perl

RUN git clone --depth 1 --single-branch --branch v2.4.3 --recursive https://github.com/microsoft/msquic /tmp/msquic

WORKDIR /tmp/msquic

RUN cmake -B build/linux/Release_openssl3 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TARGET_ARCHITECTURE=${TARGETARCH} \
-DQUIC_TLS=openssl3 \
-DQUIC_ENABLE_LOGGING=true \
-DQUIC_USE_SYSTEM_LIBCRYPTO=true \
-DQUIC_BUILD_TOOLS=off \
-DQUIC_BUILD_TEST=off \
-DQUIC_BUILD_PERF=off && \
cmake --build build/linux/Release_openssl3 --config Release && \
cmake --install build/linux/Release_openssl3 --prefix /msquic

FROM library/alpine:3.20 AS venv

RUN apk add --upgrade --no-cache \
Expand Down Expand Up @@ -70,8 +37,8 @@ RUN apk add --upgrade --no-cache \
sudo \
tzdata

# Copy msquic from the msquic image into our image that will run on Helix
COPY --from=msquic /msquic /usr
# Install libmsquic from testing repository
RUN apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ libmsquic

# Needed for runtime tests to pass
ENV LANG=en-US.UTF-8
Expand Down

0 comments on commit c4da7a7

Please sign in to comment.