Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.