-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- exposing more ports on Dockerfile and copy only binary to Dockerfile Signed-off-by: Guilherme Baufaker Rêgo <gbaufake@redhat.com>
- Loading branch information
Guilherme Baufaker Rêgo
committed
Feb 16, 2018
1 parent
13599f1
commit ab25c02
Showing
3 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 . |