Install gVisor using a subshell.

If the user copy-and-pastes the commands to install gVisor in one go,
the commands should stop early if there is an error. Particularly, if
the runsc sha does not match.
This commit is contained in:
Ian Lewis
2019-04-15 13:19:00 -07:00
committed by Ian Lewis
parent 0e00a7d2da
commit 80036845c1
+8 -5
View File
@@ -14,11 +14,14 @@ as user `nobody` to avoid unnecessary privileges. The `/usr/local/bin` directory
a good place to put the `runsc` binary.
```bash
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512
sha512sum -c runsc.sha512
chmod a+x runsc
sudo mv runsc /usr/local/bin
(
set -e
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512
sha512sum -c runsc.sha512
chmod a+x runsc
sudo mv runsc /usr/local/bin
)
```
[latest-nightly]: https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc