From 4bd1e9c65e51e6966809f98f91b77d3b59b015ce Mon Sep 17 00:00:00 2001 From: Aljaz Ceru Date: Mon, 6 Apr 2020 08:46:25 +0200 Subject: [PATCH] updates --- Dockerfile | 3 --- INSTALL.md | 8 -------- README.md | 8 ++++++++ entrypoint.sh | 0 4 files changed, 8 insertions(+), 11 deletions(-) mode change 100644 => 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index db1226a..e7b0c2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,4 @@ 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 ENV PYTHONPATH=$APP_PATH WORKDIR /srv/python-teos -#COPY entrypoint.sh /srv/python-teos/entrypoint.sh -RUN chmod +x /srv/python-teos/entrypoint.sh ENTRYPOINT [ "/srv/python-teos/entrypoint.sh" ] - diff --git a/INSTALL.md b/INSTALL.md index bb7946c..c2b9adc 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -4,14 +4,6 @@ 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: diff --git a/README.md b/README.md index 0947250..58b9d9d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,14 @@ The configuration includes, amongst others, where your data folder is placed, wh To run `teos` you need a set of keys (to sign appointments) stored in your data directory. You can follow [generate keys](#generate-keys) to generate them. +## 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 + ### Configuration file and command line parameters To change the configuration defaults you can: diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755