A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| # Use an official centos7 image | |
| FROM centos:7 | |
| RUN yum update -y \ | |
| && yum install -y python2-pip | |
| # pipenv installation | |
| RUN pip install cassandra-migrate |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| # Bash completion script for k3d, because I couldn't find one. Do what you want with it. | |
| # If you're using zsh, this script should work as long as you have these lines in .zshrc: | |
| # | |
| # autoload bashcompinit | |
| # bashcompinit | |
| # source /path/to/your/bash_completion_file | |
| # | |
| # functions to grab k3d clusters info [would be nice if k3d list had a simple mode for grabbing names] |
| # Install K3S | |
| curl -sfL https://get.k3s.io | sh - | |
| # Copy k3s config | |
| mkdir $HOME/.kube | |
| sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | |
| sudo chmod 644 $HOME/.kube/config | |
| # Check K3S | |
| kubectl get pods -n kube-system |