mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: update sandbox path (#11905)
This commit is contained in:
parent
9d3e76a0b9
commit
17634e9f2a
@ -221,13 +221,13 @@ sudo sysctl -w kernel.unprivileged_userns_clone=1
|
|||||||
### [alternative] Setup [setuid sandbox](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/suid_sandbox_development.md)
|
### [alternative] Setup [setuid sandbox](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/suid_sandbox_development.md)
|
||||||
|
|
||||||
The setuid sandbox comes as a standalone executable and is located next to the
|
The setuid sandbox comes as a standalone executable and is located next to the
|
||||||
Chromium that Puppeteer downloads. It is fine to re-use the same sandbox
|
Chrome that Puppeteer downloads. It is fine to re-use the same sandbox
|
||||||
executable for different Chromium versions, so the following could be done only
|
executable for different Chrome versions, so the following could be done only
|
||||||
once per host environment:
|
once per host environment:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# cd to the downloaded instance
|
# cd to Puppeteer cache directory (adjust the path if using a different cache directory).
|
||||||
cd <project-dir-path>/node_modules/puppeteer/.local-chromium/linux-<revision>/chrome-linux/
|
cd ~/.cache/puppeteer/chrome/linux-<version>/chrome-linux64/
|
||||||
sudo chown root:root chrome_sandbox
|
sudo chown root:root chrome_sandbox
|
||||||
sudo chmod 4755 chrome_sandbox
|
sudo chmod 4755 chrome_sandbox
|
||||||
# copy sandbox executable to a shared location
|
# copy sandbox executable to a shared location
|
||||||
@ -243,6 +243,12 @@ this case, add the following to the `~/.bashrc` or `.zshenv`:
|
|||||||
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
|
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or to your `Dockerfile`:
|
||||||
|
|
||||||
|
```
|
||||||
|
ENV CHROME_DEVEL_SANDBOX /usr/local/sbin/chrome-devel-sandbox
|
||||||
|
```
|
||||||
|
|
||||||
## Running Puppeteer on Travis CI
|
## Running Puppeteer on Travis CI
|
||||||
|
|
||||||
> 👋 We ran our tests for Puppeteer on Travis CI until v6.0.0 (when we've
|
> 👋 We ran our tests for Puppeteer on Travis CI until v6.0.0 (when we've
|
||||||
|
Loading…
Reference in New Issue
Block a user