No description
Find a file
Jonathan Zernik 34ec5deee8
Use python slim docker base image (#516)
* Use python slim image for both squeaknode and test

* Clean up dockerfiles

* Reorder dockerfile for squeaknode

* Load alembic config file from packaged module

* Alembic directory is now loaded from packaged module

* Got multi-stage docker build working

* Removed old app directory from docker config

* Remove commented package data arg from setup.py

* Remove unused alembic graft from manifest

* Fix extra space in alembic revision
2020-12-27 04:59:59 -08:00
docker Use python slim docker base image (#516) 2020-12-27 04:59:59 -08:00
docs Add alembic (#418) 2020-11-08 21:23:19 -05:00
frontend Remove channel item expand btn (#496) 2020-11-30 23:11:52 -05:00
itests Use python slim docker base image (#516) 2020-12-27 04:59:59 -08:00
proto Use squeaklib with ptlc (#502) 2020-12-25 20:17:54 -08:00
squeaknode Use python slim docker base image (#516) 2020-12-27 04:59:59 -08:00
tests Got all flake8 checks passing (#514) 2020-12-26 04:56:46 -08:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.gitignore Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
createdb.sql Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Makefile test target works now with protos (#515) 2020-12-26 05:29:02 -08:00
MANIFEST.in Use python slim docker base image (#516) 2020-12-27 04:59:59 -08:00
README.md Use docker compose overrides for testnet mainnet (#482) 2020-11-23 20:43:19 -05:00
requirements-itest.txt Use squeaklib with ptlc (#502) 2020-12-25 20:17:54 -08:00
requirements.txt Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
setup.cfg Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
setup.py Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
tox.ini Makefile test target works now with protos (#515) 2020-12-26 05:29:02 -08:00
wait-for-it.sh Make docker compose run (#45) 2020-06-11 20:09:02 -07:00

squeaknode

Node for Squeak protocol

Run with docker:

Requirements
  • docker
  • docker-compose
  • Enough disk space for the bitcoin blockchain
Steps
  • Build and start docker-compose:
    $ cd docker
    $ docker-compose build
    $ docker-compose up
    
  • If you want to use mainnet, run with the docker-compose.mainnet.yml override file:
    $ docker-compose -f docker-compose.yml -f docker-compose.mainnet.yml up
    
  • Go to http://localhost:12994/ and use the username/password in docker/config.ini to log in.

Run without docker:

Requirements
  • A running bitcoin node
  • A running lnd node
  • Python3.6
Steps
  • Create a config.ini file and fill in the relevant sections to connect to your bitcoin and lnd nodes:

    [squeaknode]
    network=testnet
    price_msat=1000000
    sync_interval_s=10
    
    [bitcoin]
    rpc_host=localhost
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [lnd]
    host=localhost
    port=9735
    rpc_port=10009
    tls_cert_path=~/.lnd/tls.cert
    macaroon_path=~/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [webadmin]
    enabled=true
    username=devuser
    password=devpass
    
  • Install squeaknode:

    $ pip install squeaknode
    

    or

    $ python setup.py install
    
  • Start the squeak server:

    $ runsqueaknode --config config.ini run-server
    
  • Go to http://localhost:12994/ and use the username/password in config.ini to log in.

Test

Run unit tests:

$ make test

Run integration tests:

$ make itest