Created
June 6, 2018 12:49
-
-
Save AdrianLsk/70b04e2317e3e62ceeb52836421a3848 to your computer and use it in GitHub Desktop.
installing seldon on arch linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# references: | |
# https://github.com/kubernetes/minikube/blob/master/docs/drivers.md | |
# http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
# https://github.com/SeldonIO/seldon-core/blob/master/notebooks/ksonnet_ambassador_minikube.ipynb | |
# Install and activate Python 3.6 venv | |
# Install KVM driver | |
# Ubuntu | |
# sudo apt install libvirt-bin qemu-kvm | |
# Arch Linux | |
sudo pacman -Sy libvirt qemu-headless ebtables dnsmasq | |
# Add yourself to the libvirtd group | |
# Ubuntu < 17.xx | |
sudo usermod -a -G libvirtd $(whoami) | |
# Arch Linux / Ubuntu >= 17.xx | |
sudo usermod -a -G libvirt $(whoami) | |
# Update your current session for the group change to take effect | |
# newgrp libvirtd | |
newgrp libvirt | |
# Arch Linux | |
sudo systemctl enable libvirtd.service | |
# might need to start it | |
# sudo systemctl start libvirtd.service | |
sudo systemctl enable virtlogd.service | |
# Install docker-machine | |
sudo pacman -Sy docker-machine | |
# clone seldon-core | |
git clone https://github.com/SeldonIO/seldon-core | |
# install minikube kubectl ksonnet | |
# ubuntu | |
# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | |
# wget https://github.com/ksonnet/ksonnet/releases/download/v0.11.0/ks_0.11.0_linux_amd64.tar.gz | |
yaourt -Sy minikube-bin kubectl-bin | |
# Install the driver | |
# Ubuntu | |
# curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 && chmod +x docker-machine-driver-kvm2 && sudo mv docker-machine-driver-kvm2 /usr/local/bin/ | |
yaourt -Sy docker-machine-driver-kvm2 | |
# Install Python packages for Seldon | |
pip install grpcio | |
pip install grpcio-tools | |
# Install ksonnet | |
yaourt -Sy ksonnet-bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment