Deployment/Installation Tools
install-docker.sh
# Docker
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-docker.sh | bash
# Docker-Compose
sudo apt-get update && sudo apt install -qy python-pip && pip install docker-compose
# or as root
apt-get update && apt install -qy python-pip && pip install docker-compose
# alternative
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Minikube (assumes docker is installed)
export IP=192.168.0.1
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-minikube.sh | bash
# Kubernetes
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-kube.sh | bash
# helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
# Arkade from Alex Ellis
curl -sLS https://dl.get-arkade.dev | sudo sh
# k3sup (ketchup)
curl -SLsf https://get.k3sup.dev/ | sudo sh
Cloudflared
# Cloudflared
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-cloudflared.sh | bash
Inlets
# Inlets
curl -sLS https://get.inlets.dev | sudo sh
# Inlet Server
echo $(head -c 16 /dev/urandom | shasum | cut -d" " -f1) >> .inlettoken
export INLETSPORT=8090
# This assumes you have already generated token is in the .inlettoken file
export INLETSTOKEN=$(cat .inlettoken)
export SERVICENAME=inletsserver
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/inlets/inlets_service.sh | bash
# Inlet Client
# This assumes you have already generated token is in the .inlettoken file
export INLETSTOKEN=$(cat .inlettoken)
export REMOTE="THE_SERVER_ADDRESS:8090"
export UPSTREAM=http://127.0.0.1:8888
export SERVICENAME=inletsclient
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/inlets/inletsclient_service.sh | bash
Misc
# Homebrew
sudo apt-get install build-essential curl file git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
# Then, configure PATH: https://docs.brew.sh/Homebrew-on-Linux
# For getting the size of folders in servers, we can use ncdu
sudo apt-get update && sudo apt install -qy ncdu