diff --git a/examples/hotrod/Dockerfile b/examples/hotrod/Dockerfile index 1abe7acc8d33..a7d90acfa37e 100644 --- a/examples/hotrod/Dockerfile +++ b/examples/hotrod/Dockerfile @@ -1,4 +1,4 @@ FROM scratch -EXPOSE 8080 -COPY . / -CMD ["./collector-linux", "all"] +EXPOSE 8080 8081 8082 8083 +COPY hotrod-linux / +CMD ["./hotrod-linux", "all"] diff --git a/examples/hotrod/README.md b/examples/hotrod/README.md index 0f488800e49e..d24e3b0f6f56 100644 --- a/examples/hotrod/README.md +++ b/examples/hotrod/README.md @@ -48,20 +48,9 @@ Then open http://127.0.0.1:8080 # HotROD on Containerized Version -## Requirements -- go -- docker-compose -- docker -### Creating the images - -``` -chmod +x ./create-image.sh -./create-image.sh -``` - -### Run Everyting +## Running on Docker ``` -docker run -p 8080:8080 -p 8082:8082 -p 8083:8083 jaegertracing/hotrod +docker run -d -p 8080:8080 -p 8082:8082 -p 8083:8083 jaegertracing/hotrod && docker run -d -p6831:6831/udp -p16686:16686 jaegertracing/all-in-one:latest ``` diff --git a/examples/hotrod/create-image.sh b/examples/hotrod/create-image.sh index b358cfbb4691..44db7b0ccd92 100755 --- a/examples/hotrod/create-image.sh +++ b/examples/hotrod/create-image.sh @@ -1,5 +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 +CGO_ENABLED=0 GOOS=linux installsuffix=cgo go build -o hotrod-linux main.go docker build -t jaegertracing/hotrod -f Dockerfile .