Created
February 22, 2025 06:17
-
-
Save MasonM/5302092f4f5914785d5c3b4198bae09e to your computer and use it in GitHub Desktop.
Create Argo Workflow status as an image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --network host --init --rm ghcr.io/puppeteer/puppeteer:latest node -e ' | |
import puppeteer from "puppeteer"; | |
const browser = await puppeteer.launch({ args: ["--no-sandbox"] }); | |
const page = await browser.newPage(); | |
await page.setViewport({ width: 200, height: 400 }); | |
await page.goto("http://127.0.0.1:8080/widgets/workflow-graphs/argo"); | |
await page.waitForSelector("svg"); | |
process.stdout.write(await page.screenshot()); | |
await browser.close(); | |
' > screenshot.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment