fix(quic): merge static MsQuic support with latest main [CI]
This commit is contained in:
commit
b9ec6d80b0
24 files changed
+485
-94
No files matched your search
@@ -1,5 +1,6 @@
|
||||
# AotAnywhere cross-links both Alpine architectures on the native amd64 runner.
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:10.0-noble-aot AS build
|
||||
ARG NATIVEAOT_BUILDER_IMAGE=localhost/moshiro-dotnet10-nativeaot-aotanywhere:ci
|
||||
FROM --platform=linux/amd64 ${NATIVEAOT_BUILDER_IMAGE} AS build
|
||||
|
||||
WORKDIR /src/backend
|
||||
COPY restore/backend/ ./
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# Shared .NET 10 NativeAOT build environment for MoShiro's Linux node images.
|
||||
# The SDK image includes the Linux NativeAOT compiler prerequisites. Warm the
|
||||
# repository-pinned AotAnywhere MSBuild SDK into this image so builds do not
|
||||
# depend on a writable host-mounted NuGet cache.
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:10.0-noble-aot
|
||||
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
|
||||
DOTNET_NOLOGO=1 \
|
||||
NUGET_PACKAGES=/root/.nuget/packages
|
||||
|
||||
WORKDIR /opt/aotanywhere
|
||||
COPY global.json ./global.json
|
||||
ARG AOTANYWHERE_VERSION=1.0.5
|
||||
ARG ZIG_TOOLSET_VERSION=0.16.0.2
|
||||
# Only SDK/tool versions affect this layer. Application versions and sources
|
||||
# must not invalidate the expensive toolchain downloads on every pipeline.
|
||||
RUN printf '%s\n' \
|
||||
'<Project Sdk="Microsoft.NET.Sdk">' \
|
||||
" <Sdk Name=\"StuDev.AotAnywhere\" Version=\"$AOTANYWHERE_VERSION\" />" \
|
||||
' <PropertyGroup>' \
|
||||
' <TargetFramework>net10.0</TargetFramework>' \
|
||||
' <OutputType>Exe</OutputType>' \
|
||||
' <PublishAot>true</PublishAot>' \
|
||||
' <UseAotAnywhere>true</UseAotAnywhere>' \
|
||||
' <NuGetAudit>false</NuGetAudit>' \
|
||||
' </PropertyGroup>' \
|
||||
' <ItemGroup>' \
|
||||
" <PackageReference Include=\"Vezel.Zig.Toolsets.linux-x64\" Version=\"$ZIG_TOOLSET_VERSION\" GeneratePathProperty=\"true\" />" \
|
||||
' </ItemGroup>' \
|
||||
'</Project>' > Warmup.csproj \
|
||||
&& dotnet restore Warmup.csproj -p:PublishAot=true -p:UseAotAnywhere=true -r linux-musl-x64 \
|
||||
&& dotnet restore Warmup.csproj -p:PublishAot=true -p:UseAotAnywhere=true -r linux-musl-arm64 \
|
||||
&& dotnet restore Warmup.csproj -p:PublishAot=true -p:UseAotAnywhere=true -r linux-x64 \
|
||||
&& dotnet restore Warmup.csproj -p:PublishAot=true -p:UseAotAnywhere=true -r linux-arm64 \
|
||||
&& rm Warmup.csproj \
|
||||
&& rm -rf bin obj
|
||||
|
||||
WORKDIR /src/backend
|
||||
@@ -1,5 +1,6 @@
|
||||
# AotAnywhere cross-links both Alpine architectures on the native amd64 runner.
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:10.0-noble-aot AS build
|
||||
ARG NATIVEAOT_BUILDER_IMAGE=localhost/moshiro-dotnet10-nativeaot-aotanywhere:ci
|
||||
FROM --platform=linux/amd64 ${NATIVEAOT_BUILDER_IMAGE} AS build
|
||||
|
||||
WORKDIR /src/backend
|
||||
COPY restore/backend/ ./
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
ARG NATIVEAOT_BUILDER_IMAGE=localhost/moshiro-dotnet10-nativeaot-aotanywhere:ci
|
||||
FROM docker.io/library/node:24-bookworm-slim AS node
|
||||
FROM quay.io/woodpeckerci/woodpecker-agent:v3.18.1 AS agent
|
||||
FROM docker.io/woodpeckerci/plugin-git:2.6.0 AS clone
|
||||
FROM ${NATIVEAOT_BUILDER_IMAGE}
|
||||
|
||||
# Installed once when this image changes, never in a pipeline step.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
buildah netavark aardvark-dns fuse-overlayfs uidmap runc python3 git git-lfs openssh-client \
|
||||
curl ca-certificates openssl util-linux binutils xz-utils unzip make \
|
||||
clang lld zlib1g-dev libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=node /usr/local/ /usr/local/
|
||||
COPY --from=agent /bin/woodpecker-agent /usr/local/bin/woodpecker-agent
|
||||
COPY --from=clone /bin/plugin-git /usr/local/bin/plugin-git
|
||||
|
||||
# Test sidecars are also downloaded into a reusable image layer.
|
||||
COPY ci/fetch-quic-test-runtime.sh /opt/moshiro/fetch-quic-test-runtime.sh
|
||||
RUN bash /opt/moshiro/fetch-quic-test-runtime.sh /opt/moshiro/quic
|
||||
COPY ci/woodpecker-agent-entrypoint.sh /usr/local/bin/moshiro-ci-entrypoint
|
||||
RUN chmod 0755 /usr/local/bin/moshiro-ci-entrypoint
|
||||
|
||||
ENV WOODPECKER_IN_CONTAINER=true \
|
||||
WOODPECKER_BACKEND=local \
|
||||
WOODPECKER_AGENT_LABELS=ci=domain-linux-native \
|
||||
WOODPECKER_BACKEND_LOCAL_TEMP_DIR=/home/justme/woodpecker/work \
|
||||
MOSHIRO_QUIC_TEST_RUNTIME=/opt/moshiro/quic/runtime \
|
||||
NUGET_SCRATCH=/home/justme/woodpecker/cache/nuget/scratch \
|
||||
NUGET_PACKAGES=/home/justme/woodpecker/cache/nuget/packages \
|
||||
BUILDAH_ISOLATION=chroot
|
||||
WORKDIR /home/justme/woodpecker
|
||||
ENTRYPOINT ["/usr/local/bin/moshiro-ci-entrypoint"]
|
||||
Reference in new issue
Block a user