Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ go-torch
*.tmp

Godeps/_workspace
vendor
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming /go/bin is already in the PATH?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, /go/bin is in the path:

➜  go-torch git:(dockerfile) docker run uber/go-torch -h
Usage:
  go-torch [OPTIONS]

Application Options:

18 changes: 18 additions & 0 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package: github.com/uber/go-torch
import:
- package: github.com/fatih/color
- package: github.com/jessevdk/go-flags