Skip to content

Instantly share code, notes, and snippets.

@vpack
vpack / AWS-ECS-Docker.md
Last active June 25, 2022 19:02
Centos 7 / AWS ECS Docker
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
docker info

@vpack
vpack / Sublime Text.md
Created December 4, 2015 18:37
SublimeText
@vpack
vpack / 1ACLImportExport.md
Last active August 23, 2023 07:09
Consul ACL - Export/Import.

Use Consulate to export and import ACLs from Consul.

Setup your environment before you run these scripts:

export CONSUL_HOST="localhost"
export MASTER_TOKEN="myMasterToken"

Reference:

@vpack
vpack / dockerInstall.sh
Last active June 15, 2018 15:58
Docker Quick Install
yum -y install epel-release
yum -y install docker
systemctl enable docker
systemctl start docker
curl -L https://github.com/docker/machine/releases/download/v0.5.0/docker-machine_linux-amd64.zip >machine.zip
unzip machine.zip
rm machine.zip
mv docker-machine* /usr/local/bin
# Docker Jenkins
@vpack
vpack / OpenSSL.md
Last active October 16, 2017 19:28
Self Signed Certs - OpenSSL
@vpack
vpack / swarm.md
Last active October 30, 2015 20:48
DockerSwarm

SWARM:

docker run swarm create
# Copy the token and save it - af36e582ba1ab24de52c707d54b02547

docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://af36e582ba1ab24de52c707d54b02547 local-swarm-master

docker-machine create -d virtualbox --swarm --swarm-discovery token://af36e582ba1ab24de52c707d54b02547 swarm-agent-00 
docker-machine create -d virtualbox --swarm --swarm-discovery token://af36e582ba1ab24de52c707d54b02547 swarm-agent-01
@vpack
vpack / 01GenerateCert.md
Last active October 24, 2015 17:03
Consul HTTPS API Troubleshooting
$ cd consul/ssl
$ openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -out ca.cert
Generating a 2048 bit RSA private key
............+++
......................................................................+++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.