dockerfile: change entrypoint to allow args
This commit is contained in:
parent
cb161daca1
commit
9825a69ac7
2 changed files with 5 additions and 4 deletions
|
@ -26,8 +26,8 @@ RUN go install github.com/chihaya/chihaya/cmd/chihaya
|
||||||
|
|
||||||
# Configuration/environment
|
# Configuration/environment
|
||||||
VOLUME ["/config"]
|
VOLUME ["/config"]
|
||||||
ENV CHIHAYA_LOG_LEVEL 5
|
|
||||||
EXPOSE 6880-6882
|
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
|
# docker run -p 6880-6882:6880-6882 -v $PATH_TO_DIR_WITH_CONF_FILE:/config:ro -e quay.io/jzelinskie/chihaya:latest -v=5
|
||||||
CMD ["sh", "-c", "chihaya", "-config=/config/config.json", "-logtostderr=true", "-v=$CHIHAYA_LOG_LEVEL"]
|
ENTRYPOINT ["chihaya", "-config=/config/config.json", "-logtostderr=true"]
|
||||||
|
CMD ["-v=5"]
|
||||||
|
|
|
@ -51,7 +51,8 @@ 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 6880-6882:6880-6882 -v $PATH_TO_DIR_WITH_CONF_FILE:/config:ro -e CHIHAYA_LOG_LEVEL=5 quay.io/jzelinskie/chihaya:latest
|
$ export CHIHAYA_LOG_LEVEL=5 # most verbose, and the default
|
||||||
|
$ docker run -p 6880-6882:6880-6882 -v $PATH_TO_DIR_WITH_CONF_FILE:/config:ro -e quay.io/jzelinskie/chihaya:latest -v=$CHIHAYA_LOG_LEVEL
|
||||||
```
|
```
|
||||||
|
|
||||||
## Developing Chihaya
|
## Developing Chihaya
|
||||||
|
|
Loading…
Add table
Reference in a new issue