Skip to content

Commit

Permalink
Merge pull request #486 from amorenoz/pager_in_container
Browse files Browse the repository at this point in the history
tools: retis_in_container: use PAGER and NOPAGER
  • Loading branch information
atenart authored Feb 4, 2025
2 parents 551e96c + f966e18 commit 402e0d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ used to point to an alternate image location.
$ RETIS_IMAGE=my-registry.example.com/retis ./retis_in_container.sh --help
```

`PAGER` and `NOPAGER` environment variables work the same way as with the Retis binary.

### From sources

Retis depends on the following (in addition to Git and Cargo):
Expand Down
2 changes: 1 addition & 1 deletion tools/retis_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi

# Run the Retis container.
exec $runtime run $extra_args $term_opts --privileged --rm --pid=host \
-e TERM -e LC_ALL="C.UTF-8" \
-e PAGER -e NOPAGER -e TERM -e LC_ALL="C.UTF-8" \
--cap-add SYS_ADMIN --cap-add BPF --cap-add SYSLOG \
-v /sys/kernel/btf:/sys/kernel/btf:ro \
-v /sys/kernel/debug:/sys/kernel/debug:ro \
Expand Down

0 comments on commit 402e0d5

Please sign in to comment.