#!/bin/bash function docker_installation() { if ! type "docker" > /dev/null; then apt-get update && \ apt-get install -y docker.io fi } function install_pkgs() { apt-get update && \ apt-get install -y git-core \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common \ docker.io } function install_compose() { curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \ chmod +x /usr/local/bin/docker-compose } function deploy_vpn() { git clone https://github.com/jmarhee/dockvpn.git && \ cd dockvpn && \ docker-compose up -d } install_pkgs && docker_installation && install_compose && deploy_vpn