File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed
Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 11FROM scratch
2- EXPOSE 8080
3- COPY . /
4- CMD ["./collector -linux" , "all" ]
2+ EXPOSE 8080 8081 8082 8083
3+ COPY hotrod-linux /
4+ CMD ["./hotrod -linux" , "all" ]
Original file line number Diff line number Diff line change @@ -48,20 +48,9 @@ Then open http://127.0.0.1:8080
4848
4949
5050# HotROD on Containerized Version
51- ## Requirements
52- - go
53- - docker-compose
54- - docker
55- ### Creating the images
56-
57- ```
58- chmod +x ./create-image.sh
59- ./create-image.sh
60- ```
61-
62- ### Run Everyting
51+ ## Running on Docker
6352```
64- docker run -p 8080:8080 -p 8082:8082 -p 8083:8083 jaegertracing/hotrod
53+ docker run -d - p 8080:8080 -p 8082:8082 -p 8083:8083 jaegertracing/hotrod &&
6554docker run -d -p6831:6831/udp -p16686:16686 jaegertracing/all-in-one:latest
6655```
6756
Original file line number Diff line number Diff line change 11cd $GOPATH /src/github.com/jaegertracing/jaeger
22make install
33cd $GOPATH /src/github.com/jaegertracing/jaeger/examples/hotrod
4- CGO_ENABLED=0 GOOS=linux installsuffix=cgo go build -o collector -linux main.go
4+ CGO_ENABLED=0 GOOS=linux installsuffix=cgo go build -o hotrod -linux main.go
55docker build -t jaegertracing/hotrod -f Dockerfile .
You can’t perform that action at this time.
0 commit comments