mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
updating readme and target change
This commit is contained in:
@@ -2,10 +2,10 @@ FROM python:3
|
|||||||
ENV APP_PATH=/srv/python-teos
|
ENV APP_PATH=/srv/python-teos
|
||||||
VOLUME ["~/.teos"]
|
VOLUME ["~/.teos"]
|
||||||
WORKDIR /srv
|
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
|
ENV PYTHONPATH=$APP_PATH
|
||||||
WORKDIR /srv/python-teos
|
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
|
RUN chmod +x /srv/python-teos/entrypoint.sh
|
||||||
ENTRYPOINT [ "/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"]
|
|
||||||
|
|||||||
@@ -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.
|
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=<rpc username> -e BTC_RPC_PASSWD=<rpc password> -e BTC_RPC_HOST=<hostname> -e BTC_RPC_PORT=<port> teos
|
||||||
|
|
||||||
## Running `teos` as a Module
|
## 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:
|
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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user