From cfe15727725350909e8d72a487588cdf759bc463 Mon Sep 17 00:00:00 2001 From: kkalev Date: Mon, 27 Nov 2023 11:39:24 +0200 Subject: [PATCH] updates to docs --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 2294f34..ad14fea 100644 --- a/README.md +++ b/README.md @@ -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 :/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`)