Skip to content

Commit

Permalink
Set ENTRYPOINT to /cloudprober in Dockerfile.
Browse files Browse the repository at this point in the history
Set ENTRYPOINT to /cloudprober in Dockerfile so that we can specify command line flags without having to know the cloudprober's location in the docker image. For example, we'll be able to do:

docker run --publish=9313:9313 -v /tmp/cloudprober.cfg:/cloudprober.cfg  cloudprober/cloudprober --config_file=/cloudprober.cfg

This fixes the Github issue: google/cloudprober#88

ORIGINAL_AUTHOR=Manu Garg <[email protected]>
PiperOrigin-RevId: 191099390
  • Loading branch information
manugarg committed Mar 30, 2018
1 parent 0dc8791 commit 3095b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$VERSION \
com.microscaling.license="Apache-2.0"

CMD ["/cloudprober", "--logtostderr"]
ENTRYPOINT ["/cloudprober", "--logtostderr"]

0 comments on commit 3095b8f

Please sign in to comment.