1616 - [ Exporters] ( #config-exporters )
1717 - [ Diagnostics] ( #config-diagnostics )
1818- [ OpenCensus Agent] ( #opencensus-agent )
19- - [ Building binaries] ( #agent-building-binaries )
2019 - [ Usage] ( #agent-usage )
2120- [ OpenCensus Collector] ( #opencensus-collector )
2221 - [ Global Tags] ( #global-tags )
@@ -208,38 +207,12 @@ zpages:
208207
209208# # OpenCensus Agent
210209
211- # ## <a name="agent-building-binaries"></a>Building binaries
212-
213- > It is recommended that you use the latest [release](https://github.com/census-instrumentation/opencensus-service/releases).
214-
215- Please run file `build_binaries.sh` in the root of this repository, with argument `binaries` or any of :
216- * linux
217- * darwin
218- * windows
219-
220- which will then place the binaries in the directory `bin` which is in your current working directory
221- ` ` ` shell
222- $ ./build_binaries.sh binaries
223-
224- GOOS=darwin go build -ldflags "-X github.com/census-instrumentation/opencensus-service/internal/version.GitHash=8e102b4" -o bin/ocagent_darwin ./cmd/ocagent
225- GOOS=linux go build -ldflags "-X github.com/census-instrumentation/opencensus-service/internal/version.GitHash=8e102b4" -o bin/ocagent_linux ./cmd/ocagent
226- GOOS=windows go build -ldflags "-X github.com/census-instrumentation/opencensus-service/internal/version.GitHash=8e102b4" -o bin/ocagent_windows ./cmd/ocagent
227- ` ` `
228- which should then create binaries inside `bin/` that have a version command attached to them such as
229- ` ` ` shell
230- $ ./bin/ocagent_darwin version
231-
232- Version 0.0.1
233- GitHash 8e102b4
234- Goversion devel +7f3313133e Mon Oct 15 22:11:26 2018 +0000
235- OS darwin
236- Architecture amd64
237- ` ` `
238-
239210# ## <a name="agent-usage"></a>Usage
240211
241212The ocagent can be run directly from sources, binary, or a Docker image.
242213
214+ It is recommended that you use the latest [release](https://github.com/census-instrumentation/opencensus-service/releases).
215+
243216The minimum Go version required for this project is Go 1.11.4.
244217
2452181. Run from sources :
@@ -257,25 +230,16 @@ $ make agent
2572303. Build a Docker scratch image and use the appropriate Docker command for your scenario
258231(note : additional ports may be required depending on your receiver configuration):
259232
260- ` ` ` shell
261- ./build_binaries.sh docker <image_version>
262- ` ` `
263-
264- For example, to create a Docker image of the agent, tagged `v1.0.0` :
265- ` ` ` shell
266- ./build_binaries.sh docker v1.0.0
267- ` ` `
233+ A Docker scratch image can be built with make by targeting `docker-agent`.
268234
269- and then the Docker image `v1.0.0` of the agent can be started by
270235` ` ` shell
271- docker run --rm -it -p 55678:55678 -p 55679:55679 \
236+ $ make docker-agent
237+ $ docker run --rm -it -p 55678:55678 -p 55679:55679 \
272238 -v $(pwd)/ocagent-config.yaml:/conf/ocagent-config.yaml \
273239 --config=/conf/ocagent-config.yaml \
274- ocagent:v1.0.0
240+ ocagent
275241` ` `
276242
277- A Docker scratch image can be built with make by targeting `docker-agent`.
278-
279243# # OpenCensus Collector
280244
281245The OpenCensus Collector is a component that runs “nearby” (e.g. in the same
0 commit comments