Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianwalter/puppeteer
A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API
https://github.com/ianwalter/puppeteer
docker docker-image github-action puppeteer
Last synced: about 1 month ago
JSON representation
A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API
- Host: GitHub
- URL: https://github.com/ianwalter/puppeteer
- Owner: ianwalter
- License: other
- Archived: true
- Created: 2019-01-09T17:25:50.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-08-25T03:26:03.000Z (over 3 years ago)
- Last Synced: 2024-10-29T10:47:39.007Z (about 2 months ago)
- Topics: docker, docker-image, github-action, puppeteer
- Language: Dockerfile
- Homepage:
- Size: 1010 KB
- Stars: 93
- Watchers: 2
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-actions - Run Tests through Puppeteer, the Headless Chrome Node API
- awesome-actions - Run Tests through Puppeteer, the Headless Chrome Node API
- awesome-workflows - Run Tests through Puppeteer, the Headless Chrome Node API
README
# 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][playwrightUrl] 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][buildkiteUrl] and based on
[this troubleshooting guide][troubleshootingUrl].## Usage
Puppeteer will need to be launched with:
```js
browser.launch({ args: ['--no-sandbox'] })
```This is done by default in [@ianwalter/bff-puppeteer][bffUrl].
As a [GitHub Action][actionsUrl]:
```yml
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][dockerUrl]:
```console
docker pull ianwalter/puppeteer:v4.0.0
```## Related
* [`@ianwalter/bff`][bffUrl] - Your friendly test framework
* [`ianwalter/playwright-container`][playwrightUrl] - A GitHub Action / Docker
image for Playwright, the browser automation library## License
Apache 2.0 with Commons Clause - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://ianwalter.dev)
[buildkiteUrl]: https://github.com/buildkite/docker-puppeteer
[troubleshootingUrl]: https://github.com/GoogleChrome/puppeteer/blob/main/docs/troubleshooting.md
[actionsUrl]: https://github.com/features/actions
[dockerUrl]: https://hub.docker.com/r/ianwalter/puppeteer
[bffUrl]: https://github.com/ianwalter/bff
[playwrightUrl]: https://github.com/ianwalter/playwright-container
[licenseUrl]: https://github.com/ianwalter/puppeteer-container/blob/master/LICENSE