TirSystem/git-workflows: Validate / validate (pull_request) Successful in 39s
TirSystem/git-workflows: OpenGrep / opengrep (pull_request) Successful in 4m27s
TirSystem/git-workflows: Release / release (pull_request) Successful in 20s
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Successful in 14s
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Successful in 1m4s
TirSystem/git-workflows: Validate / validate (push) Successful in 36s
TirSystem/git-workflows: Publish accepted milestones / publish (push) Successful in 38s
TirSystem/git-workflows: OpenGrep / opengrep (push) Successful in 5m50s
Task: MIL-004#1
15 lines
606 B
Bash
15 lines
606 B
Bash
#!/usr/bin/env bash
|
|
# Captures the lecture screenshots in a Docker container (Linux, headless
|
|
# Chromium), never on the host desktop. Run from the project root:
|
|
# bash tools/capture_screenshots.sh
|
|
# The PNG files are written to docs/screenshots/ through the mounted folder.
|
|
set -euo pipefail
|
|
|
|
IMAGE="mcr.microsoft.com/playwright/python:v1.49.1-noble"
|
|
|
|
MSYS_NO_PATHCONV=1 docker run --rm \
|
|
-v "$PWD:/work" -w /work \
|
|
-e PYTHONPATH=/work/src \
|
|
"$IMAGE" \
|
|
bash -c "python -m pip install --quiet --root-user-action=ignore flask playwright==1.49.1 && python tools/capture_screenshots.py docs/screenshots"
|