Skip to content

Commit

Permalink
Merge pull request #28 from crankycoder/perpetua
Browse files Browse the repository at this point in the history
Updated the gvisor installation
  • Loading branch information
picatz authored Mar 19, 2021
2 parents 7ff2282 + 8fc78d8 commit 9ce0025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packer/scripts/install_gvisor.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

set -ex

curl -fsSL https://gvisor.dev/archive.key | sudo apt-key add -
sudo add-apt-repository "deb https://storage.googleapis.com/gvisor/releases release main"
sudo apt-get update && sudo apt-get install -y runsc
sudo runsc install
ARCH=$(uname -m)
URL=https://storage.googleapis.com/gvisor/releases/release/latest/${ARCH}
wget ${URL}/runsc ${URL}/runsc.sha512 ${URL}/containerd-shim-runsc-v1 ${URL}/containerd-shim-runsc-v1.sha512
sha512sum -c runsc.sha512 -c containerd-shim-runsc-v1.sha512
rm -f *.sha512
chmod a+rx runsc containerd-shim-runsc-v1
sudo mv runsc containerd-shim-runsc-v1 /usr/local/bin
Empty file modified setup_gcp.sh
100644 → 100755
Empty file.

0 comments on commit 9ce0025

Please sign in to comment.