Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurrriq/nix-puppeteer
Nix-based Docker image with Puppeteer
https://github.com/yurrriq/nix-puppeteer
docker headless-chrome nix puppeteer-screenshot
Last synced: 18 days ago
JSON representation
Nix-based Docker image with Puppeteer
- Host: GitHub
- URL: https://github.com/yurrriq/nix-puppeteer
- Owner: yurrriq
- License: mit
- Created: 2018-05-26T07:20:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T14:49:43.000Z (over 4 years ago)
- Last Synced: 2024-11-17T07:29:22.609Z (3 months ago)
- Topics: docker, headless-chrome, nix, puppeteer-screenshot
- Language: Nix
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix-puppeteer
[![Build Status][Travis badge]][Travis link]
*[Nix][1]-based [Docker][2] image with [Puppeteer][3]*
## Build Docker Image
```fish
docker load <(nix-build -A docker --no-out-link)
```## Example
### Nix Shell
```fish
nix-shell -A drv --pure --run 'mkdir -p docs; cd $_; example'
```### Docker
Create the `docs` directory and make sure the `pptuser` can write to it.
```fish
mkdir -p docs
chmod a+w docs
```Run the example to generate [the screenshot][4].
```fish
docker run --rm \
-v "$PWD/docs":/docs \
-w /docs \
yurrriq/nix-puppeteer:0.0.1
```[Travis badge]: https://travis-ci.org/yurrriq/nix-puppeteer.svg?branch=master
[Travis link]: https://travis-ci.org/yurrriq/nix-puppeteer
[1]: https://nixos.org/nix/
[2]: https://www.docker.com/
[3]: https://github.com/GoogleChrome/puppeteer/
[4]: ./docs/example.png