Follow-up to #232 / #233.
Problem
The Dockerfile builder stage runs:
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile
The lockfile resolves @percolatorct/sdk as file:../../percolator-sdk, which is not in the build context, so this will hit the same ENOENT ... scandir failure that #233 fixes for build-and-test.
Why it is not visible today
The docker job is gated behind needs: build-and-test and if: github.ref == 'refs/heads/main'. Since build-and-test has never passed, docker has never run.
#233 makes it reachable, so main is expected to go red here until this is fixed.
Likely fix
Mirror dcccrypto/percolator-indexer#175: check the SDK out into the build context (not as a sibling, as build-and-test needs), then COPY it to the path the lockfile expects. Note that inside the container WORKDIR /app, ../../percolator-sdk resolves to /percolator-sdk, so the destination differs from the indexer's.
Why it is not in #233
The Docker daemon was unavailable on the machine where #233 was verified, and I would rather not ship an unverified image-build change. Splitting it keeps #233 to something proven end-to-end.
Follow-up to #232 / #233.
Problem
The
Dockerfilebuilder stage runs:The lockfile resolves
@percolatorct/sdkasfile:../../percolator-sdk, which is not in the build context, so this will hit the sameENOENT ... scandirfailure that #233 fixes forbuild-and-test.Why it is not visible today
The
dockerjob is gated behindneeds: build-and-testandif: github.ref == 'refs/heads/main'. Sincebuild-and-testhas never passed,dockerhas never run.#233 makes it reachable, so
mainis expected to go red here until this is fixed.Likely fix
Mirror dcccrypto/percolator-indexer#175: check the SDK out into the build context (not as a sibling, as
build-and-testneeds), thenCOPYit to the path the lockfile expects. Note that inside the containerWORKDIR /app,../../percolator-sdkresolves to/percolator-sdk, so the destination differs from the indexer's.Why it is not in #233
The Docker daemon was unavailable on the machine where #233 was verified, and I would rather not ship an unverified image-build change. Splitting it keeps #233 to something proven end-to-end.