This commit is contained in:
2020-04-09 08:46:28 +02:00
parent ef83b8a3ef
commit e77f7ea200
3 changed files with 13 additions and 3 deletions

View File

@@ -5,4 +5,5 @@ WORKDIR /srv
RUN mkdir ~/.teos && git clone https://github.com/aljazceru/python-teos.git && cd python-teos && pip install -r requirements.txt && python generate_keys.py -d ~/.teos RUN mkdir ~/.teos && git clone https://github.com/aljazceru/python-teos.git && cd python-teos && pip install -r requirements.txt && python generate_keys.py -d ~/.teos
ENV PYTHONPATH=$APP_PATH ENV PYTHONPATH=$APP_PATH
WORKDIR /srv/python-teos WORKDIR /srv/python-teos
EXPOSE 9814/tcp
ENTRYPOINT [ "/srv/python-teos/entrypoint.sh" ] ENTRYPOINT [ "/srv/python-teos/entrypoint.sh" ]

View File

@@ -42,7 +42,7 @@ To run `teos` you need a set of keys (to sign appointments) stored in your data
git clone https://github.com/talaia-labs/python-teos git clone https://github.com/talaia-labs/python-teos
cd python-teos cd python-teos
docker build . -t teos docker build . -t teos
docker run -it -e BTC_RPC_USER=<rpc username> -e BTC_RPC_PASSWD=<rpc password> -e BTC_RPC_HOST=<hostname> -e BTC_RPC_PORT=<port> teos docker run -it -e BTC_RPC_USER=<rpc username> -e BTC_RPC_PASSWD=<rpc password> -e BTC_RPC_HOST=<hostname> -e BTC_RPC_PORT=<port> -p 9814:9814/tcp teos
### Configuration file and command line parameters ### Configuration file and command line parameters
@@ -129,4 +129,4 @@ cp ~/.teos/teos_pk.der ~/.teos_cli/teos_pk.der
``` ```
## Contributing ## Contributing
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) Refer to [CONTRIBUTING.md](CONTRIBUTING.md)

View File

@@ -18,4 +18,13 @@ if [[ ! -z ${BTC_NETWORK} ]]; then
START_COMMAND=$START_COMMAND" --btcnetwork=""$BTC_NETWORK" START_COMMAND=$START_COMMAND" --btcnetwork=""$BTC_NETWORK"
fi fi
$START_COMMAND if [[ ! -z ${API_CONNECT} ]]; then
START_COMMAND=$START_COMMAND" --apiconnect=""$API_CONNECT"
fi
if [[ ! -z ${API_PORT} ]]; then
START_COMMAND=$START_COMMAND" --apiport=""$API_PORT"
fi
$START_COMMAND