@hyperframes/gcp-cloud-run 0.9.29 → 0.9.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +32 -9
- package/package.json +2 -2
package/Dockerfile
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Unlike the AWS Lambda adapter there is no ZIP-size ceiling and no runtime
|
|
22
22
|
# Chrome decompression step — the binary lives in the image at a fixed path.
|
|
23
23
|
|
|
24
|
-
FROM node:22.23.4-bookworm-slim AS beginframe-contract
|
|
24
|
+
FROM node:22.23.4-bookworm-slim@sha256:5ec23b7c622b00547753bc6ffd78085dd868a68aeb41c8e0a1418f033e13d96d AS beginframe-contract
|
|
25
25
|
|
|
26
26
|
# ── System dependencies (identical set to the producer's render image) ───────
|
|
27
27
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
@@ -79,13 +79,22 @@ RUN case "$TARGETARCH" in \
|
|
|
79
79
|
# ── chrome-headless-shell (deterministic BeginFrame capture) ─────────────────
|
|
80
80
|
# Pinned deliberately. The build-stage contract probe below launches this
|
|
81
81
|
# exact executable and requires a renderer-ready warm-up plus a PNG-returning
|
|
82
|
-
# HeadlessExperimental.beginFrame before the image can build.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
# HeadlessExperimental.beginFrame before the image can build. Chrome for Testing
|
|
83
|
+
# publishes no linux arm64 headless shell and no checksums, so the sha256 below
|
|
84
|
+
# was taken from the archive itself; bump the version and hash together.
|
|
85
|
+
ARG CHROME_HEADLESS_SHELL_VERSION=152.0.7977.30
|
|
86
|
+
ARG CHROME_HEADLESS_SHELL_SHA256_AMD64=1b150320178ecabe39726bcf3198ebb896ba2b7a07d870db1710914c42d55221
|
|
87
|
+
RUN case "$TARGETARCH" in \
|
|
88
|
+
amd64) CHS_SHA256="$CHROME_HEADLESS_SHELL_SHA256_AMD64" ;; \
|
|
89
|
+
*) echo "no pinned chrome-headless-shell for TARGETARCH '$TARGETARCH'" >&2; exit 1 ;; \
|
|
90
|
+
esac \
|
|
91
|
+
&& curl -fsSL -o /tmp/chs.zip "https://storage.googleapis.com/chrome-for-testing-public/$CHROME_HEADLESS_SHELL_VERSION/linux64/chrome-headless-shell-linux64.zip" \
|
|
92
|
+
&& echo "$CHS_SHA256 /tmp/chs.zip" | sha256sum -c - \
|
|
93
|
+
&& unzip -q /tmp/chs.zip -d /opt \
|
|
94
|
+
&& rm /tmp/chs.zip \
|
|
86
95
|
&& mkdir -p /opt/chrome \
|
|
87
|
-
&& ln -s
|
|
88
|
-
&& /opt/chrome/chrome-headless-shell --version
|
|
96
|
+
&& ln -s /opt/chrome-headless-shell-linux64/chrome-headless-shell /opt/chrome/chrome-headless-shell \
|
|
97
|
+
&& /opt/chrome/chrome-headless-shell --version | grep -F "$CHROME_HEADLESS_SHELL_VERSION"
|
|
89
98
|
|
|
90
99
|
# The chromium.ts resolver reads this first; pointing the engine straight at
|
|
91
100
|
# the symlinked binary avoids the runtime cache scan.
|
|
@@ -99,8 +108,22 @@ WORKDIR /app
|
|
|
99
108
|
# Install bun (the repo's package manager / build driver). Pin the version:
|
|
100
109
|
# the container runs `bun dist/server.js` and relies on bun's ESM `require`
|
|
101
110
|
# interop to load the producer bundle, so a future bun release changing that
|
|
102
|
-
# behaviour shouldn't silently break the next image rebuild.
|
|
103
|
-
|
|
111
|
+
# behaviour shouldn't silently break the next image rebuild. The sha256s are
|
|
112
|
+
# from the release's SHASUMS256.txt; bump the version and both hashes together.
|
|
113
|
+
ARG BUN_VERSION=1.4.4
|
|
114
|
+
ARG BUN_SHA256_AMD64=bf8ccbfb2b0b80159e0f9a6d15c55317add8077534dbc6130a3edb52fccb395c
|
|
115
|
+
ARG BUN_SHA256_ARM64=baa6bb36f51d6e58561e02bbea825038a9df454f673d6d776e8bbf86f8c7850e
|
|
116
|
+
RUN case "$TARGETARCH" in \
|
|
117
|
+
amd64) BUN_ARCH=x64; BUN_SHA256="$BUN_SHA256_AMD64" ;; \
|
|
118
|
+
arm64) BUN_ARCH=aarch64; BUN_SHA256="$BUN_SHA256_ARM64" ;; \
|
|
119
|
+
*) echo "unsupported TARGETARCH '$TARGETARCH'" >&2; exit 1 ;; \
|
|
120
|
+
esac \
|
|
121
|
+
&& curl -fsSL -o /tmp/bun.zip "https://github.com/oven-sh/bun/releases/download/bun-v$BUN_VERSION/bun-linux-$BUN_ARCH.zip" \
|
|
122
|
+
&& echo "$BUN_SHA256 /tmp/bun.zip" | sha256sum -c - \
|
|
123
|
+
&& mkdir -p /root/.bun/bin \
|
|
124
|
+
&& unzip -q -j /tmp/bun.zip "bun-linux-$BUN_ARCH/bun" -d /root/.bun/bin \
|
|
125
|
+
&& rm /tmp/bun.zip \
|
|
126
|
+
&& /root/.bun/bin/bun --version | grep -Fx "$BUN_VERSION"
|
|
104
127
|
ENV PATH="/root/.bun/bin:$PATH"
|
|
105
128
|
|
|
106
129
|
# Install workspace dependencies. Copy manifests first for layer caching.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/gcp-cloud-run",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.31",
|
|
4
4
|
"description": "Google Cloud Run + Workflows adapter for HyperFrames distributed rendering — request handler, client-side SDK, and Terraform module.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"hono": "^4.6.0",
|
|
46
46
|
"puppeteer-core": "^25.8.0",
|
|
47
47
|
"tar": "^7.4.3",
|
|
48
|
-
"@hyperframes/producer": "^0.9.
|
|
48
|
+
"@hyperframes/producer": "^0.9.31"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^25.0.10",
|