ci: publish the web CI image and run the domain browser lane
- Update ci/images/Dockerfile.web to build from Ubuntu 24.04 + Node/Playwright Chromium from the domestic npmmirror binary source (the MCR base pull was too slow) and use the full Chromium channel (headless-shell asset is absent from the mirror). - Pin the Web domain to marqdo-ci-web:3.0.0-rc.5 (digest 0cccda99...) and fix the ext-web gitlink to its domain CI commit; pipeline 1 passed all three cases and the production API/Chromium E2E. - Evidence records the image digest, pipeline result and the ghproxy/npmmirror mirror decision. Refs cflmy/marqdo#10
This commit was merged in pull request #26.
This commit is contained in:
1 parent
c5e9180404
commit
068f91cd31
4 files changed
+29
-25
No files matched your search
+24
-21
@@ -1,24 +1,27 @@
|
||||
# Shared Web-domain CI image: Playwright base (Node 20/Chromium, glibc 2.39),
|
||||
# the published CLI/Bundle and the packaged preview web Tool. The domain runs
|
||||
# its real browser acceptance without installing a Rust toolchain.
|
||||
FROM mcr.microsoft.com/playwright:v1.49.0-noble
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl git python3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY marqdo.tar.gz /tmp/marqdo.tar.gz
|
||||
COPY marqdo-web-preview.tgz /tmp/marqdo-web-preview.tgz
|
||||
|
||||
RUN mkdir -p /opt/marqdo /opt/web-tool \
|
||||
&& tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo \
|
||||
&& tar -xzf /tmp/marqdo-web-preview.tgz -C /opt/web-tool --strip-components=1 \
|
||||
&& rm /tmp/marqdo.tar.gz /tmp/marqdo-web-preview.tgz
|
||||
|
||||
ENV MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo \
|
||||
FROM ubuntu:24.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
||||
PLAYWRIGHT_DOWNLOAD_HOST=https://cdn.npmmirror.com/binaries/playwright \
|
||||
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com \
|
||||
MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo \
|
||||
MARQDO_STDLIB_DIR=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib \
|
||||
MARQDO_WEB_TOOL_JSON=/opt/web-tool/tool.json \
|
||||
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
||||
MARQDO_CLI_VERSION=3.0.0-rc.5
|
||||
|
||||
RUN test -x "$MARQDO_BIN" && "$MARQDO_BIN" --version && test -f "$MARQDO_WEB_TOOL_JSON"
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates curl git python3 nodejs npm xz-utils unzip fonts-noto-cjk \
|
||||
&& npm install -g playwright@1.49.0 \
|
||||
&& npx playwright install-deps chromium \
|
||||
&& curl -fsSL --retry 3 -o /tmp/chromium.zip "https://cdn.npmmirror.com/binaries/playwright/builds/chromium/1148/chromium-linux.zip" \
|
||||
&& mkdir -p /ms-playwright/chromium-1148 \
|
||||
&& unzip -q /tmp/chromium.zip -d /ms-playwright/chromium-1148 \
|
||||
&& touch /ms-playwright/chromium-1148/INSTALLATION_COMPLETE \
|
||||
&& rm /tmp/chromium.zip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY marqdo.tar.gz /tmp/marqdo.tar.gz
|
||||
COPY marqdo-web-preview.tgz /tmp/web.tgz
|
||||
RUN mkdir -p /opt/marqdo /opt/web-tool \
|
||||
&& tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo \
|
||||
&& tar -xzf /tmp/web.tgz -C /opt/web-tool --strip-components=1 \
|
||||
&& rm /tmp/marqdo.tar.gz /tmp/web.tgz \
|
||||
&& test -x "$MARQDO_BIN" && "$MARQDO_BIN" --version && test -f "$MARQDO_WEB_TOOL_JSON"
|
||||
+1
-1
@@ -7,7 +7,7 @@ container registry, per released CLI version:
|
||||
| --- | --- | --- |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | Ubuntu 24.04 (glibc 2.39), git/curl/python3/build tools, released CLI + Bundle (`MARQDO_BIN`/`MARQDO_STDLIB_DIR` preset) | standard library, extension, conformance and reconcile lanes |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | shell image + pinned Rust 1.100 toolchain (rustfmt/clippy) + warm cargo cache | Design/Preview and Rust tool lanes |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` (planned) | Playwright Chromium/Node + released CLI/Bundle + packaged preview web Tool | Web domain browser acceptance |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` (digest `0cccda995d77...`) | Ubuntu 24.04 + Node/Playwright Chromium(npmmirror 二进制源)+ released CLI/Bundle + packaged preview web Tool | Web domain browser acceptance |
|
||||
|
||||
Rules:
|
||||
|
||||
|
||||
Reference in new issue
Block a user