Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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