Skip to content

Commit

Permalink
Moving HotRod Containerized to Hotrod folder
Browse files Browse the repository at this point in the history
and some minor adjustments on Dockerfile

Signed-off-by: Guilherme Baufaker Rêgo <gbaufake@redhat.com>
  • Loading branch information
Guilherme Baufaker Rêgo committed Feb 14, 2018
1 parent 30a6771 commit 13599f1
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 63 deletions.
4 changes: 0 additions & 4 deletions examples/Dockerfile

This file was deleted.

41 changes: 0 additions & 41 deletions examples/hotrod-containerized/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions examples/hotrod-containerized/create-image.sh

This file was deleted.

15 changes: 0 additions & 15 deletions examples/hotrod-containerized/docker-compose.yml

This file was deleted.

4 changes: 4 additions & 0 deletions examples/hotrod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM scratch
EXPOSE 8080
COPY . /
CMD ["./collector-linux", "all"]
26 changes: 26 additions & 0 deletions examples/hotrod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,29 @@ Then open http://127.0.0.1:8080

[hotrod-tutorial]: https://medium.com/@YuriShkuro/take-opentracing-for-a-hotrod-ride-f6e3141f7941
[hotrod-openshift]: https://blog.openshift.com/openshift-commons-briefing-82-distributed-tracing-with-jaeger-prometheus-on-kubernetes/



# HotROD on Containerized Version
## Requirements
- go
- docker-compose
- docker
### Creating the images

```
chmod +x ./create-image.sh
./create-image.sh
```

### Run Everyting
```
docker run -p 8080:8080 -p 8082:8082 -p 8083:8083 jaegertracing/hotrod
docker run -d -p6831:6831/udp -p16686:16686 jaegertracing/all-in-one:latest
```

Then open http://127.0.0.1:8080


[hotrod-tutorial]: https://medium.com/@YuriShkuro/take-opentracing-for-a-hotrod-ride-f6e3141f7941
[hotrod-openshift]: https://blog.openshift.com/openshift-commons-briefing-82-distributed-tracing-with-jaeger-prometheus-on-kubernetes
5 changes: 5 additions & 0 deletions examples/hotrod/create-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd $GOPATH/src/github.com/jaegertracing/jaeger
make install
cd $GOPATH/src/github.com/jaegertracing/jaeger/examples/hotrod
CGO_ENABLED=0 GOOS=linux installsuffix=cgo go build -o collector-linux main.go
docker build -t jaegertracing/hotrod -f Dockerfile .

0 comments on commit 13599f1

Please sign in to comment.