From bb8eb9ef989678a48740ed7283f8c2ba577a37e0 Mon Sep 17 00:00:00 2001 From: Prashant Varanasi Date: Tue, 12 Apr 2016 09:46:08 -0700 Subject: [PATCH 1/2] Add perl to the Docker image The flamegraph scripts are written in perl, so the image requires perl to work. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2ec3534..39997b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM golang:1.6-alpine ENV PATH $PATH:/opt/flamegraph RUN apk --update add git && \ + apk add perl && \ 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 && \ From 328ffc18c60307bac8605f060242998ca59f80a7 Mon Sep 17 00:00:00 2001 From: Prashant Varanasi Date: Tue, 12 Apr 2016 09:55:50 -0700 Subject: [PATCH 2/2] Update README for docker run --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d33a974..72e772b 100644 --- a/README.md +++ b/README.md @@ -86,9 +86,12 @@ $ go get github.com/uber/go-torch You can also use go-torch using docker: ``` -$ docker run uber/go-torch -h +$ docker run uber/go-torch -u http://[address-of-host] -p > torch.svg ``` +Using `-p` will print the SVG to standard out, which can then be redirected +to a file. This avoids mounting volumes to a container. + ### Install the Go dependencies: ```