Skip to content

Instantly share code, notes, and snippets.

View erikh's full-sized avatar

Erik Hollensbe erikh

View GitHub Profile
from "ubuntu"
packages = %w[
ack-grep
zsh
tmux
build-essential
vim-nox
git
mercurial
from "golang"
packages = %w[
zsh
tmux
build-essential
vim-nox
git
mercurial
]
package main
import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
from "golang"
env "GOPATH" => "/go"
run "apt-get update"
run "apt-get install -y build-essential g++ git wget curl ruby bison flex"
run "mkdir -p /go/src/github.com/mitchellh"
gopaths = [
"github.com/docker/engine-api",
"github.com/docker/distribution/reference",
from "debian"
3.times do
run "echo hi >>root-test"
end
run "mkdir /test"
run "chown nobody /test"
user "nobody" do
workdir "/test" do
from "debian"
3.times do
run "echo hi >>root-test"
end
run "mkdir /test"
run "chown nobody /test"
user "nobody" do
workdir "/test" do
package main
import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
from "debian"
3.times do
run "echo hi >>root-test"
end
run "mkdir /test"
run "chown nobody /test"
user "nobody" do
workdir "/test" do
package main
import (
"context"
"fmt"
"io"
"os"
"github.com/docker/engine-api/client"
"github.com/docker/engine-api/types"
package main
import (
"fmt"
mruby "github.com/mitchellh/go-mruby"
)
func main() {
mrb := mruby.NewMrb()