Two CI fixes. The builder image lacked nodejs, so every job died at the first step with "exec: node: executable file not found in $PATH" (exit 127). actions/checkout and actions/cache are JavaScript actions: the runner execs node inside the job container to run them, so the image needs it even though the build itself does not. Verified by exec'ing node with no shell, which is how the runner invokes it, and by pulling the pushed image back from the registry. TwoExplicitLists_IntersectToTheCommonLibraries compared a sorted actual against an unsorted hardcoded expected, so it only passed when the randomly generated library GUIDs happened to sort that way - it failed about half of all runs and would have made CI intermittently red. The intersection is a set, so it now asserts on membership and count rather than ordering. Confirmed with 10 consecutive clean runs, up from ~50%.
25 lines
866 B
Docker
25 lines
866 B
Docker
# Watched Together builder image
|
|
# Pre-built image with the .NET 9 SDK and JPRM for building and testing the plugin.
|
|
# Build: docker build -f Dockerfile.builder -t gitea.tourolle.paris/dtourolle/watchedtogether-builder:latest .
|
|
# Push: docker push gitea.tourolle.paris/dtourolle/watchedtogether-builder:latest
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0
|
|
|
|
# nodejs is required by the runner itself, not by the build: actions/checkout and
|
|
# actions/cache are JavaScript actions, and the runner execs `node` inside this
|
|
# container to run them. Without it every job fails at the checkout step with
|
|
# "exec: node: executable file not found in $PATH".
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
git \
|
|
jq \
|
|
curl \
|
|
nodejs \
|
|
npm \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --break-system-packages jprm
|
|
|
|
WORKDIR /src
|