Skip to main content

Dev Ops Overview

This page contains some of my recipes for common dev-ops activities. I develop exclusively in Ubuntu 18.04 on both my local developer machine and in production, so everything assumes that as the development environment.

Create Swap Space

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Install Node.js

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs build-essential

Install Docker

sudo apt-get install -y software-properties-common
curl -fsSL -o && sh
sudo usermod -aG docker ${USER}

This tutorial shows how to install Docker on a Ubuntu system. It's specifically targeted to Digital Ocean's cloud servers, but should work for any Ubuntnu system.

Install Docker Compose (x86 & amd64)

sudo curl -L`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Install Docker Compose on Raspberry Pi (arm64)

sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 -v install docker-compose

This tutorial shows how to install Docker Compose on an Ubuntu system.

Install IPFS
tar -xvf go-ipfs_v0.4.20_linux-amd64.tar.gz
rm go-ipfs_v0.4.20_linux-amd64.tar.gz
cd go-ipfs
sudo ./