Skip to content

Instantly share code, notes, and snippets.

@Aukhan
Aukhan / docker_ubuntu_setup.sh
Last active December 4, 2018 07:49
Quick docker installation on ubuntu
# !/bin/bash
# update package lists
sudo apt-get update
# install required packages for installation
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common -y
# Add Docker’s official GPG key
@Aukhan
Aukhan / docker-git-post-receive.sh
Last active October 15, 2020 10:18
A sample git post-receive hook to deploy with docker. Use the latest commit hash as image tags to make sure the latest gets pulled always, assumes services were deployed using docker stack deploy.
#!/bin/bash
PREFIX="MY CLIENT -"
REPO_PATH='/home/ubuntu/server/client'
ACCEPTABLE_BRANCH="DEV"
COMPOSE_FILE="docker-compose.production.yml"
CLIENT_IMAGE="127.0.0.1:5000/mpc_nginx_client"