From 102b89cb9d6768dfa672ed279967d9a6399dd1cc Mon Sep 17 00:00:00 2001 From: Aljaz Ceru Date: Sun, 5 Apr 2020 15:26:54 +0200 Subject: [PATCH] updating readme and target change --- Dockerfile | 6 +++--- INSTALL.md | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56be854..db1226a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,10 @@ FROM python:3 ENV APP_PATH=/srv/python-teos VOLUME ["~/.teos"] WORKDIR /srv -RUN mkdir ~/.teos && git clone https://github.com/talaia-labs/python-teos && 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 WORKDIR /srv/python-teos -COPY entrypoint.sh /srv/python-teos/entrypoint.sh +#COPY entrypoint.sh /srv/python-teos/entrypoint.sh RUN chmod +x /srv/python-teos/entrypoint.sh ENTRYPOINT [ "/srv/python-teos/entrypoint.sh" ] -#CMD ["sh","-c","/usr/local/bin/python3 -m teos.teosd --btcrpcuser=$BTC_RPC_USER --btcrpcpassword=$BTC_RPC_PASSWD --btcrpcconnect=$BTC_RPC_HOST"] + diff --git a/INSTALL.md b/INSTALL.md index c2b9adc..bb7946c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -4,6 +4,14 @@ There are two ways of running `teos`: running it as a module or adding the library to the `PYTHONPATH` env variable. +## Running `teos` as a docker container +`teos` container can be build from Dockerfile attached to the repo. ENV variables are optional, if not set defaults are used. + + git clone https://github.com/talaia-labs/python-teos + cd python-teos + docker build . -t teos + docker run -it -e BTC_RPC_USER= -e BTC_RPC_PASSWD= -e BTC_RPC_HOST= -e BTC_RPC_PORT= teos + ## Running `teos` as a Module The **easiest** way to run `teos` is as a module. To do so you need to use `python -m`. From the teos parent directory run: