diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..22d0d82 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +vendor diff --git a/.gitignore b/.gitignore index 7b8d54e..a424b8d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ go-torch *.tmp Godeps/_workspace +vendor diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2ec3534 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:1.6-alpine + +ENV PATH $PATH:/opt/flamegraph + +RUN apk --update add git && \ + curl -OL https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz && \ + tar -xzf glide-0.10.1-linux-amd64.tar.gz && \ + mv linux-amd64/glide /usr/bin && \ + git clone --depth=1 https://github.com/brendangregg/FlameGraph.git /opt/flamegraph + +COPY . /go/src/github.com/uber/go-torch + +RUN cd /go/src/github.com/uber/go-torch && glide install && go install ./... + +ENTRYPOINT ["go-torch"] diff --git a/glide.lock b/glide.lock new file mode 100644 index 0000000..330c930 --- /dev/null +++ b/glide.lock @@ -0,0 +1,18 @@ +hash: f20d8c32baab3162ebad5e357e6877b99ebeb8730b03e78aaa6f41d5b1f22057 +updated: 2016-03-28T19:39:38.035209228-04:00 +imports: +- name: github.com/fatih/color + version: 533cd7fd8a85905f67a1753afb4deddc85ea174f +- name: github.com/jessevdk/go-flags + version: 6b9493b3cb60367edd942144879646604089e3f7 +- name: github.com/mattn/go-colorable + version: 9cbef7c35391cca05f15f8181dc0b18bc9736dbb + repo: https://github.com/mattn/go-colorable +- name: github.com/mattn/go-isatty + version: 56b76bdf51f7708750eac80fa38b952bb9f32639 + repo: https://github.com/mattn/go-isatty +- name: golang.org/x/sys + version: 320cb01ddbbf0473674c2585f9b6e245721de355 + subpackages: + - unix +devImports: [] diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..d2e8e55 --- /dev/null +++ b/glide.yaml @@ -0,0 +1,4 @@ +package: github.com/uber/go-torch +import: +- package: github.com/fatih/color +- package: github.com/jessevdk/go-flags