Update README.md
This commit is contained in:
parent
3a831a5194
commit
a7c640048a
|
@ -25,7 +25,7 @@ Options:
|
||||||
-L, --list-rates <currency> List exchange rate for currency
|
-L, --list-rates <currency> List exchange rate for currency
|
||||||
-h, --help Print help
|
-h, --help Print help
|
||||||
```
|
```
|
||||||
Cache and api key is stored by default in `<TMPDIR>/currencyCache.db`. This location and filename can be overriden by setting up `CURRENCY_CACHE` env variable.
|
Cache and api key is stored by default in `<XDG_CACHE_HOME>/currencyCache.db` or `<TMPDIR>/currencyCache.db` if `XDG_CACHE_HOME` is not set. This location and filename can be overriden by setting up `CURRENCY_CACHE` env variable.
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
Needs rust and cargo, build tested on rust v1.76.0\
|
Needs rust and cargo, build tested on rust v1.76.0\
|
||||||
|
@ -42,4 +42,6 @@ To run with docker use:
|
||||||
docker run -it --rm -v /tmp:/tmp:rw materus/currency-exchange:latest <ARGUMENTS>
|
docker run -it --rm -v /tmp:/tmp:rw materus/currency-exchange:latest <ARGUMENTS>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Dockerfile sets up `CURRENCY_CACHE` to `/tmp/docker_currency_cache.db`, to keep cache u should mount this file or tmp directory for example with `-v /tmp:/tmp:rw` in docker run cmdline.
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue