Skip to content

Commit

Permalink
updates to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalev committed Nov 27, 2023
1 parent 220a6c7 commit cfe1572
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ console.log(url[0]);
- Example: ```await gunet.casLogin(page, url[0], `${process.env.CAS_USER}`,`${process.env.CAS_PASSWORD}`,`${process.env.CAS_TYPE}`);```

## Usage
### Customization
* If you just want to use `docker run` you can volume mount the `scenarios` folder as `-v <your scenarios folder>:/home/puppeteer/scenarios`
- Your JS script will have to include a `const gunet = require('../gunet.js');` in order to use the GUNet libraries
* You can also extend the base image as (your scenarios are assumed to be in the folder `scenarios`):
```
FROM gunet/puppeteer:latest
COPY scenarios/ ${PUPPETEER_ROOT}/scenarios/
```
### General usage
* Environment variables
- `CAS_USER`: Username (default `gunetdemo`)
- `CAS_PASSWORD`: Password (default `gunetdemo`)
Expand Down

0 comments on commit cfe1572

Please sign in to comment.