Skip to content

Commit

Permalink
Write logs to stderr and let Docker take care of these logs. With thi…
Browse files Browse the repository at this point in the history
…s, we'll

do away with the requirement of setting up /tmp volume. With this change logs
will be accessed as docker logs <containername>.

ORIGINAL_AUTHOR=Manu Garg <[email protected]>
PiperOrigin-RevId: 165622616
  • Loading branch information
manugarg committed Aug 17, 2017
1 parent b28dce8 commit e190ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
# Docker image built using this can executed in the following manner:
# docker run --net host -v $PWD/cloudprober.cfg:/etc/cloudprober.cfg \
# -v /tmp:/tmp cloudprober/cloudprober
# cloudprober/cloudprober
FROM busybox
ADD cloudprober /cloudprober
COPY ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
CMD ["/cloudprober"]
CMD ["/cloudprober", "--logtostderr"]

0 comments on commit e190ffd

Please sign in to comment.