Skip to content

Instantly share code, notes, and snippets.

@klrkdekira
Created April 19, 2019 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klrkdekira/37d7cff35a99495b83c91eb0e7dca551 to your computer and use it in GitHub Desktop.
Save klrkdekira/37d7cff35a99495b83c91eb0e7dca551 to your computer and use it in GitHub Desktop.
# go-measurement-kit
git clone https://github.com/measurement-kit/go-measurement-kit.git
docker run -ti --rm \
-v $PWD/go-measurement-kit:/go/src/github.com/measurement-kit/go-measurement-kit \
-w /go/src/github.com/measurement-kit/go-measurement-kit \
-e CGO_ENABLED='1' \
golang:1.12 bash
./download-libs.sh linux
go build -x .
go build -x _examples/ndt/ndt.go
go build -x _examples/web_connectivity/web_connectivity.go
# end
# probe
git clone https://github.com/ooni/probe-cli.git
docker run -ti --rm \
-v $PWD/probe-cli:/go/src/github.com/ooni/probe-cli \
-w /go/src/github.com/ooni/probe-cli \
-e CGO_ENABLED='1' \
golang:1.12 bash
go get -u github.com/golang/dep/cmd/dep
dep ensure
# bug? download-mk-libs will download macos on a linux host
cd vendor/github.com/measurement-kit/go-measurement-kit && ./download-libs.sh linux
cd /go/src/github.com/ooni/probe-cli
make build
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment