• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ianwalter/puppeteer-container: A GitHub Action / Docker image for Puppeteer, t ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ianwalter/puppeteer-container

开源软件地址:

https://github.com/ianwalter/puppeteer-container

开源编程语言:

Dockerfile 85.1%

开源软件介绍:

ianwalter/puppeteer-container

A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API

DEPRECATED

Sorry, I've switched to Playwright and no longer use Puppeteer. You should be able to use ianwalter/playwright-container instead by setting environment variables like:

  • PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
  • PUPPETEER_EXECUTABLE_PATH=/opt/playwright-browsers/chromium-857950/chrome-linux/chrome

So that Puppeteer doesn't download Chromium and uses the existig binary in the image.

About

Forked from buildkite/puppeteer and based on this troubleshooting guide.

Usage

Puppeteer will need to be launched with:

browser.launch({ args: ['--no-sandbox'] })

This is done by default in @ianwalter/bff-puppeteer.

As a GitHub Action:

name: CI
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install
        # NOTE: this pins the action to a specific commit sha for security
        # reasons but you can also use a version tag if desired. For example:
        # ianwalter/[email protected]
        uses: ianwalter/puppeteer-container@acc52cd2334ad9eaf6e1974562d263e0a711b7e8
        with:
          args: pnpm i
      - name: Test
        uses: ianwalter/puppeteer-container@acc52cd2334ad9eaf6e1974562d263e0a711b7e8
        with:
          args: pnpm t

As a Docker container:

docker pull ianwalter/puppeteer:v4.0.0

Related

License

Apache 2.0 with Commons Clause - See LICENSE

 

Created by Ian Walter




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap