Clean up Docker abx dependency install

This commit is contained in:
Nick Sweeting 2026-05-18 02:17:41 -07:00
parent be430b3979
commit bc321af980
No known key found for this signature in database
2 changed files with 11 additions and 10 deletions

View File

@ -333,30 +333,31 @@ RUN ( \
# Install ArchiveBox Python venv dependencies from pyproject.toml.
RUN --mount=type=bind,source=pyproject.toml,target=/tmp/archivebox-pyproject.toml \
RUN --mount=type=bind,source=pyproject.toml,target=/app/pyproject.toml \
--mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-$TARGETARCH$TARGETVARIANT \
--mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \
echo "[+] PIP Installing ArchiveBox dependencies from pyproject.toml..." \
&& apt-get update -qq \
&& apt-get install -qq -y --no-install-recommends build-essential gcc python3-dev \
&& mkdir -p /tmp/archivebox-deps \
&& cp /tmp/archivebox-pyproject.toml /tmp/archivebox-deps/pyproject.toml \
&& printf '\n[tool.uv.sources]\n"abx-plugins" = { git = "https://github.com/ArchiveBox/abx-plugins.git", rev = "%s" }\n"abx-dl" = { git = "https://github.com/ArchiveBox/abx-dl.git", rev = "%s" }\n' "$ABX_PLUGINS_REF" "$ABX_DL_REF" >> /tmp/archivebox-deps/pyproject.toml \
&& uv sync \
--project /tmp/archivebox-deps \
--inexact \
--all-extras \
--no-install-project \
--no-install-workspace \
--no-sources \
&& apt-get purge -y python3-dev build-essential gcc \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# installs the pip packages that archivebox depends on, defined in pyproject.toml dependencies
# Verify unreleased dev abx package revisions installed by uv sources above.
RUN ( \
echo "[+] Verifying dev abx package revisions..." \
&& pip show abx-plugins \
# Install unreleased dev abx package revisions used by the ArchiveBox dev branch.
RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \
echo "[+] Installing dev abx package revisions..." \
&& uv pip install --reinstall --no-deps \
"git+https://github.com/ArchiveBox/abx-plugins.git@${ABX_PLUGINS_REF}" \
"git+https://github.com/ArchiveBox/abx-dl.git@${ABX_DL_REF}" \
&& ( \
pip show abx-plugins \
&& pip show abx-dl \
&& echo -e '\n\n' \
) | tee -a /VERSION.txt

View File

@ -80,7 +80,7 @@ dependencies = [
### Binary/Package Management
"abxbus>=2.5.4", # EventBus API
"abxpkg>=1.10.7", # for: detecting, versioning, and installing binaries via apt/brew/pip/npm
"abx-plugins>=1.10.57", # shared ArchiveBox plugin package with Chrome/Puppeteer dependency wiring
"abx-plugins>=1.10.56", # shared ArchiveBox plugin package with Chrome/Puppeteer dependency wiring
"abx-dl>=1.10.56", # shared ArchiveBox downloader package with blocking install preflight
### UUID7 backport for Python <3.14
"uuid7>=0.1.0; python_version < '3.14'", # provides the uuid_extensions module on Python 3.13