dockerfile: add port range and log level

This commit is contained in:
Jimmy Zelinskie 2016-01-07 14:28:31 -05:00
parent e2c40652ad
commit cb161daca1
2 changed files with 7 additions and 4 deletions

View file

@ -24,7 +24,10 @@ ADD udp /go/src/github.com/chihaya/chihaya/udp
# Install # Install
RUN go install github.com/chihaya/chihaya/cmd/chihaya RUN go install github.com/chihaya/chihaya/cmd/chihaya
# docker run -p 6881:6881 -v $PATH_TO_DIR_WITH_CONF_FILE:/config quay.io/jzelinskie/chihaya # Configuration/environment
VOLUME ["/config"] VOLUME ["/config"]
EXPOSE 6881 ENV CHIHAYA_LOG_LEVEL 5
CMD ["chihaya", "-config=/config/config.json", "-logtostderr=true"] EXPOSE 6880-6882
# docker run -p 6880-6882:6880-6882 -v $PATH_TO_DIR_WITH_CONF_FILE:/config:ro -e CHIHAYA_LOG_LEVEL=5 quay.io/jzelinskie/chihaya:latest
CMD ["sh", "-c", "chihaya", "-config=/config/config.json", "-logtostderr=true", "-v=$CHIHAYA_LOG_LEVEL"]

View file

@ -51,7 +51,7 @@ An explanation of the available keys can be found in [CONFIGURATION.md].
```sh ```sh
$ docker pull quay.io/jzelinskie/chihaya:latest $ docker pull quay.io/jzelinskie/chihaya:latest
$ docker run -p 6881:6881 -v $DIR_WITH_CONFIG:/config:ro quay.io/jzelinskie/chihaya:latest $ docker run -p 6880-6882:6880-6882 -v $PATH_TO_DIR_WITH_CONF_FILE:/config:ro -e CHIHAYA_LOG_LEVEL=5 quay.io/jzelinskie/chihaya:latest
``` ```
## Developing Chihaya ## Developing Chihaya