I hereby claim:
- I am blockloop on github.
- I am blockloop (https://keybase.io/blockloop) on keybase.
- I have a public key ASDZ77BAmvKbMKD0d0cKTgYpuyJAcbPCgAWcGAj3vIeFCQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.
You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.
$ docker --version
Docker version 1.12.0, build 8eab29e
You also need Docker machine installed.
| My sync settings. Managed by atom-sync-settings package. |
| package main | |
| import ( | |
| "bufio" | |
| "os" | |
| "reflect" | |
| "strconv" | |
| "strings" | |
| log "github.com/Sirupsen/logrus" |
| 0 3 1 * * /var/www/_utils/update_certs.sh > /dev/null |
| upsearch() { | |
| origdir=${2-$(pwd)} | |
| test / == "$PWD" && cd "$origdir" && return || \ | |
| test -e "$1" && echo "$PWD" && cd "$origdir" && return || \ | |
| cd .. && upsearch "$1" "$origdir" | |
| } |
| package main | |
| import ( | |
| "errors" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "net/rpc" | |
| ) |
| #!/usr/bin/env bash | |
| if [ ! -f package.json ]; then | |
| echo "This script must be run from the ghost blog directory" | |
| exit 1 | |
| fi | |
| ZIP_URL=https://ghost.org/zip/ghost-latest.zip | |
| PROJ_DIR=$(pwd) | |
| TMP_DIR=$(mktemp -d -t ghost) |
| #!/usr/bin/env ruby | |
| args='' | |
| filepath='' | |
| files=ARGV[0..-1] | |
| if files | |
| for file in files do | |
| if File.exist? file | |
| fp=`cygpath -w '#{file}'`.strip.gsub '\\', '/' |
| #!/usr/bin/python | |
| import json | |
| import bottle | |
| from bottle import static_file, route, run, request, abort, response | |
| import simplejson | |
| import pymongo | |
| from pymongo import Connection | |
| import datetime |