Skip to content

Commit 3f1b7a2

Browse files
committed
Account for Wattsi switching to GHCR
Follows whatwg/wattsi@59c6e78.
1 parent d949a2b commit 3f1b7a2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apt-get update && \
33
apt-get install --yes --no-install-recommends ca-certificates curl git python3 python3-pip && \
44
rm -rf /var/lib/apt/lists/*
55

6-
COPY --from=whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
6+
COPY --from=ghcr.io/whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
77

88
RUN pip3 install bs-highlighter
99

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To build locally, you'll need the following commands installed on your system:
2222

2323
- `curl`, `grep`, `perl`, `unzip`
2424

25-
Optionally, for faster builds, you can install [Wattsi](https://github.com/whatwg/wattsi) and Python 3.7+ (necessary for applying syntax highlighting to `pre` contents). If you don't bother with that, the build will use [Wattsi Server](https://github.com/domenic/wattsi-server), which requires an internet connection.
25+
Optionally, for faster builds, you can install [Wattsi](https://github.com/whatwg/wattsi) and Python 3.7+ (necessary for applying syntax highlighting to `pre` contents). If you don't bother with that, the build will use [Wattsi Server](https://github.com/whatwg/build.whatwg.org), which requires an internet connection.
2626

2727
### Running the build
2828

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DIR=$(pwd)
1010
# The latest required version of Wattsi. Update this if you change how ./build.sh invokes Wattsi;
1111
# it will cause a warning if Wattsi's self-reported version is lower. Note that there's no need to
1212
# update this on every revision of Wattsi; only do so when a warning is justified.
13-
WATTSI_LATEST=108
13+
WATTSI_LATEST=136
1414

1515
# Shared state variables throughout this script
1616
LOCAL_WATTSI=true
@@ -439,12 +439,12 @@ function relativePath {
439439
# Arguments: none
440440
# Output: A web server with the build output will be running inside the Docker container
441441
function doDockerBuild {
442-
# Ensure whatwg/wattsi:latest is up to date. Without this, the locally cached copy would be used,
443-
# i.e. once Wattsi was downloaded once, it would never update. Note that this is fast
442+
# Ensure ghcr.io/whatwg/wattsi:latest is up to date. Without this, the locally cached copy would
443+
# be used, i.e. once Wattsi was downloaded once, it would never update. Note that this is fast
444444
# (zero-transfer) if the locally cached copy is already up to date.
445445
DOCKER_PULL_ARGS=()
446446
$QUIET && DOCKER_PULL_ARGS+=( --quiet )
447-
DOCKER_PULL_ARGS+=( whatwg/wattsi:latest )
447+
DOCKER_PULL_ARGS+=( ghcr.io/whatwg/wattsi:latest )
448448
docker pull "${DOCKER_PULL_ARGS[@]}"
449449

450450
DOCKER_BUILD_ARGS=( --tag whatwg-html )

ci-build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update && \
1515
# - Highlighter
1616
# - fonts, for when Prince renders to PDF
1717

18-
COPY --from=whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
18+
COPY --from=ghcr.io/whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
1919
RUN pip3 install bs-highlighter
2020

2121
# The DockerHub container for the validator only contains the server version, so we get the .jar

ci-build/docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function main {
2626

2727
# Build the Docker image, using Docker Hub as a cache. (This will be fast if nothing has changed
2828
# in html-build or its dependencies).
29-
docker pull whatwg/wattsi
29+
docker pull ghcr.io/whatwg/wattsi
3030
docker pull "$docker_hub_repo" || true
3131
docker build --cache-from "$docker_hub_repo" --tag "$docker_hub_repo" .
3232
}

0 commit comments

Comments
 (0)