Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pionl/docker-node-puppeteer-ready
🐳 Docker image based on official node with with GoogleChrome/puppeteer support
https://github.com/pionl/docker-node-puppeteer-ready
chrome docker docker-image nodejs puppeteer
Last synced: about 1 month ago
JSON representation
🐳 Docker image based on official node with with GoogleChrome/puppeteer support
- Host: GitHub
- URL: https://github.com/pionl/docker-node-puppeteer-ready
- Owner: pionl
- Created: 2018-03-27T15:21:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T11:38:54.000Z (about 3 years ago)
- Last Synced: 2024-11-11T16:46:42.264Z (3 months ago)
- Topics: chrome, docker, docker-image, nodejs, puppeteer
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker image based on official node image with with GoogleChrome/puppeteer support
## Pre-installed packages:
- Chrome requirements for running [puppeteer](https://github.com/GoogleChrome/puppeteer)
- git and openssh-server for cloning support. Extends [docker-node-clone-ready](https://github.com/pionl/docker-node-clone-ready)## Usage
> This image should not be used running production services. It is designed mainly for a CI.
```
docker run pionl/node-puppeteer-ready:17 google-chrome-stable --version
```### Gitlab CI usage
Gitlab CI usage
```shell
test:review:
image: pionl/node-puppeteer-ready:17
stage: acceptance
variables:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PUPPETEER_EXECUTABLE_PATH: "/usr/bin/google-chrome-stable"
tags:
- docker
script:
- npm install
- ./node_modules/.bin/codeceptjs run
only:
refs:
- merge_requests```
### Puppeteer
Use already installed chromium by providing a path:
```
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
...
browser.launch({executablePath: 'google-chrome-stable'})
```### Tags
![https://github.com/pionl/node-puppeteer-ready](https://img.shields.io/github/license/pionl/node-puppeteer-ready?style=flat-square)
![](https://img.shields.io/docker/pulls/pionl/node-puppeteer-ready?style=flat-square) ![](https://img.shields.io/docker/stars/pionl/node-puppeteer-ready?style=flat-square)Image | Badges
--- | ---
**pionl/node-puppeteer-ready:17** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/17?style=flat-square)
**pionl/node-puppeteer-ready:16** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/16?style=flat-square)
**pionl/node-puppeteer-ready:14** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/14?style=flat-square)
**pionl/node-puppeteer-ready:12** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/12?style=flat-square)
**pionl/node-puppeteer-ready:9** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/9?style=flat-square)
**pionl/node-puppeteer-ready:8** | ![](https://img.shields.io/docker/image-size/pionl/node-puppeteer-ready/8?style=flat-square)## Built With
> This package is powered by docker work flow cli tool [wf-docker](https://github.com/wrk-flow/wf-docker).
* NodeJS (multiple versions)
## Find Us
* [GitHub](https://github.com/pionl/node-puppeteer-ready)
* [Docker Hub](https://cloud.docker.com/repository/docker/pionl/node-puppeteer-ready)## Contributions
1. Run `npm install -g wf-docker`
2. Change the `Dockerfile.template`
3. For new php versions edit `wfdocker.json` and `tags` property
4. Use `wf-docker build` to build image, `wf-docker push`, `wf-docker build-push`> See [wf-docker](https://github.com/wrk-flow/wf-docker) how to use
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.