Skip to content

Commit

Permalink
readme: describe usage via container
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Oct 29, 2021
1 parent 52c8269 commit d797046
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,36 @@ npm install --ignore-scripts
cp .env.example .env
```

### Usage via container

Build the container once.

```bash
git clone https://github.com/jibon57/bbb-recorder
cd bbb-recorder
docker build -t bbb-recorder .
```

Then prefix the docker run command before the following examples.

```bash
docker run --detach -v ~/local-output-dir:/output bbb-recorder
```

In this case we specify `--detach` which means the container will run in background until it finishes.

For the [recording export](#recording-export) example this would be:

```bash
docker run --detach -v ~/local-output-dir:/output bbb-recorder node export.js "https://BBB_HOST/playback/presentation/2.0/playback.html?meetingId=MEETING_ID" meeting.webm 10 true
```

You can simplify this task with an alias:
```bash
alias bbb='docker run --detach -v ~/local-output-dir:/output bbb-recorder node export.js'
bbb "https://BBB_HOST/playback/presentation/2.0/playback.html?meetingId=MEETING_ID" meeting.webm 10 true
```

### Recording export

```sh
Expand Down

0 comments on commit d797046

Please sign in to comment.