sudo yum install epel-release
sudo yum -y install dnf dnf-plugins-core
dnf download cockpit-docker
sudo rpm -Uvh --nodeps cockpit-docker-138-6.el7.centos.x86_64.rpm
sudo service cockpit restart
Doesn't really work too well, assumes systemd which isn't present, installation steps are as follows:
sudo add-apt-repository ppa:jpsutton/cockpit
sudo apt-get update
sudo apt-get install cockpit
sudo apt-get install glib-networking
sudo apt-get install pcp
sudo /usr/sbin/remotectl certificate --ensure --user=root
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch registry
docker-machine ssh registry docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker-machine ls # get the ip address of the VM, in this case 10.10.10.197
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-1
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-2
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-3
docker-machine ssh swarm-1 docker swarm init # copy the swarm join command to run on each other hose
docker-machine ssh swarm-2 docker swarm join --token SWMTKN-1-mysecrettoken 10.10.10.198:2377
docker-machine ssh swarm-3 docker swarm join --token SWMTKN-1-mysecrettoken 10.10.10.198:2377
yum -y update
yum -y install yum-utils
yum-config-manager --add-repo https://yum.dockerproject.org/repo/main/centos/7
yum -y update
# yum search --showduplicates docker-engine
yum -y --nogpgcheck install docker-engine-1.12.6-1.el7.centos.x86_64
service docker start
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
#!/bin/bash | |
#Jason T. 2-6-2018 | |
# Check specifically for the run command | |
if [[ $# -ge 2 && $1 == "run" ]]; then | |
# Tell docker to share the following folders with the base system | |
# This allows the docker containers to find CUDA, cuDNN, TensorRT | |
LIB_MAPS="/usr/lib/aarch64-linux-gnu \ | |
/usr/local/cuda \ | |
/usr/local/cuda/lib64" |
If you need to install an old software release with brew
you can do so as follows.
- Install the latest version of
kubernetes-cli
brew install kubernetes-cli
This will install the latest release (currently 1.12.2
)
2. Unlink the installed release so you can install an old version:
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
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: kubernetes-dashboard | |
labels: | |
k8s-app: kubernetes-dashboard | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin |
Drop the above file, called git-getpr
into your PATH and you can then pull a PR (assuming you have set the source repo remote as upstream
):
git getpr <PR ID>
This will pull the PR into a local branch called pr/
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
import pyroute2 | |
from pyroute2 import IPRoute | |
from pyroute2.iproute import transform_handle | |
from pyroute2.netlink import NLM_F_ACK | |
from pyroute2.netlink import NLM_F_REQUEST | |
from pyroute2.netlink.rtnl.tcmsg import tcmsg | |
PLUG_CLASS = '1:4' | |
PLUG_QDISC = '40:' | |
NewerOlder