Skip to content

Instantly share code, notes, and snippets.

View crosbymichael's full-sized avatar

Michael Crosby crosbymichael

View GitHub Profile
docker|master ⇒ make binary
docker build -rm -t "docker:master" .
Uploading context 64.7 MB
Uploading context
# Skipping unknown instruction DOCKER-VERSION
Step 1 : FROM stackbrew/ubuntu:13.10
---> 24ba2ee5d982
Step 2 : MAINTAINER Tianon Gravi <admwiggin@gmail.com> (@tianon)
---> Running in 7c05fb145871
---> cb39278fb903
creack https://github.com/creack/docker.git (fetch)
creack https://github.com/creack/docker.git (push)
fork git@github.com:crosbymichael/docker.git (fetch)
fork git@github.com:crosbymichael/docker.git (push)
origin https://github.com/dotcloud/docker (fetch)
origin https://github.com/dotcloud/docker (push)
shykes https://github.com/shykes/docker.git (fetch)
shykes https://github.com/shykes/docker.git (push)
package main
import (
"flag"
"fmt"
"github.com/docker/libcontainer"
"os"
"path/filepath"
"syscall"
)
{
"capabilities": [
"SETPCAP",
"SYS_MODULE",
"SYS_RAWIO",
"SYS_PACCT",
"SYS_ADMIN",
"SYS_NICE",
"SYS_RESOURCE",
"SYS_TIME",
#!/bin/bash
source docker_builder.sh
FROM='ubuntu'
RUN apt-get update
RUN apt-get install vim
ENTRYPOINT '["vim"]'
TAG myvim
package main
import (
"github.com/dotcloud/docker/pkg/netlink"
)
func main() {
if err := netlink.NetworkChangeName("veth0", "vethdone"); err != nil {
panic(err)
}
# inherit from the parent image
FROM sameersbn/redmine
# add the local file where I have my specific config changes
ADD redmine.conf /etc/apache2/conf.d/redmine.conf
# now you are all done, easy and consistent
https://www.dropbox.com/s/2pb41i9kce63bd6/docker-0.8.1-native
package main
import (
"fmt"
)
type NameAndUrl interface {
Name() string
Url() string
}
package main
import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
"github.com/codegangsta/cli"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/s3"
"io"