Skip to content

Instantly share code, notes, and snippets.

@johnlegend
johnlegend / _secure_docker_connection.md
Created March 30, 2016 17:41 — forked from RomkeVdMeulen/secure_expose_docker.sh
Script for setting up secure public connection for a Docker daemon

Based on this Docker article.

Run this script to generate signed server and client keys to create a secure connection to the Docker daemon running on your server.

Usage: secure_expose_docker.sh [host] [password]

The password isn't really important as you'll have direct access to the key files, but if you want you can keep track of it in case you want to use the generated keyfiles for something else in the future.

For host, use the domain of your server. You'll be connecting to this domain once the Docker daemon is set up.

@johnlegend
johnlegend / dispatch.yaml
Created March 25, 2016 15:04 — forked from brianmhunt/dispatch.yaml
ACME + AppEngine
application: some-dummy-app-name # overridden by -A
dispatch:
# Let's Encrypt ACME challenge service
- url: "*/.well-known/acme-challenge/*"
module: acme
package main
import (
"fmt"
)
type Node struct {
Value int
}
# MongoDB
#
# VERSION 0.0.1
#
# requires mongodb.conf @ https://gist.github.com/ijonas/6844358
FROM ubuntu
MAINTAINER [email protected]
# make sure the package repository is up to date
# MySQL service
#
# Version 0.0.1
FROM ubuntu
MAINTAINER support@caseblocks
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl