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 e4611f1 commit 0398563
Show file tree
Hide file tree
Showing 7 changed files with 34 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"]
25 changes: 25 additions & 0 deletions examples/hotrod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,28 @@ 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-compose up
```

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 0398563

Please sign in to comment.