Skip to content

Commit

Permalink
Update gvisor installation to fetch newest version (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalg9 authored Jan 12, 2022
1 parent c288d10 commit 18354fb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
12 changes: 8 additions & 4 deletions aws/scripts/04-gvisor.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# This script installs the gVisor.
set -e

URL=https://storage.googleapis.com/gvisor/releases/release/latest
ARCH=$(uname -m)
URL=https://storage.googleapis.com/gvisor/releases/release/latest/${ARCH}

wget ${URL}/runsc -P /tmp
sudo mv /tmp/runsc /usr/local/bin
sudo chmod a+rx /usr/local/bin/runsc
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

sudo /usr/local/bin/runsc install -- --fsgofer-host-uds
sudo systemctl restart docker
12 changes: 8 additions & 4 deletions azure/scripts/04-gvisor.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# This script installs the gVisor.
set -e

URL=https://storage.googleapis.com/gvisor/releases/release/latest
ARCH=$(uname -m)
URL=https://storage.googleapis.com/gvisor/releases/release/latest/${ARCH}

wget ${URL}/runsc -P /tmp
sudo mv /tmp/runsc /usr/local/bin
sudo chmod a+rx /usr/local/bin/runsc
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

sudo /usr/local/bin/runsc install -- --fsgofer-host-uds
sudo systemctl restart docker
12 changes: 8 additions & 4 deletions gcp/scripts/04-gvisor.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# This script installs the gVisor.
set -e

URL=https://storage.googleapis.com/gvisor/releases/release/latest
ARCH=$(uname -m)
URL=https://storage.googleapis.com/gvisor/releases/release/latest/${ARCH}

wget ${URL}/runsc -P /tmp
sudo mv /tmp/runsc /usr/local/bin
sudo chmod a+rx /usr/local/bin/runsc
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

sudo /usr/local/bin/runsc install -- --fsgofer-host-uds
sudo systemctl restart docker

0 comments on commit 18354fb

Please sign in to comment.