2016-02-05 21:48:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-03-19 05:18:59 +00:00
|
|
|
RKT_VERSION="v1.2.0"
|
2016-02-05 21:48:27 +00:00
|
|
|
DEST_DIR="/usr/local/bin"
|
|
|
|
|
2016-02-17 02:57:12 +00:00
|
|
|
sudo mkdir -p /etc/rkt/net.d
|
|
|
|
echo '{"name": "default", "type": "ptp", "ipMasq": false, "ipam": { "type": "host-local", "subnet": "172.16.28.0/24", "routes": [ { "dst": "0.0.0.0/0" } ] } }' | sudo tee -a /etc/rkt/net.d/99-network.conf
|
|
|
|
|
2016-02-05 21:48:27 +00:00
|
|
|
wget https://github.com/coreos/rkt/releases/download/$RKT_VERSION/rkt-$RKT_VERSION.tar.gz
|
|
|
|
tar xzvf rkt-$RKT_VERSION.tar.gz
|
|
|
|
sudo cp rkt-$RKT_VERSION/rkt $DEST_DIR
|
|
|
|
sudo cp rkt-$RKT_VERSION/*.aci $DEST_DIR
|
2016-02-05 23:08:33 +00:00
|
|
|
|
|
|
|
rkt version
|