Commit graph

56 commits

Author SHA1 Message Date
Jonathan Zernik
2cabb8197a
Use only named volumes in docker-compose (#2221)
* Use only named volumes in docker-compose

* Try fixing itest with new docker compose

* Update development doc
2022-06-09 17:58:18 -07:00
Jonathan Zernik
ed360ff3d1
Add clightning backend support (#2205)
* Add c-lightning support

* Got subscribe paid invoices working with c-lightning

* Remove log lines

* Use a single config section for all lightning configs

* Fix itest config

* Update configuration doc with new confis
2022-05-08 12:41:44 -07:00
Jonathan Zernik
b5b3b9f1f3
Rename entrypoint script (#2171) 2022-04-25 16:32:31 -07:00
Jonathan Zernik
ecf3d8cecb
Use docker tor simple (#1847)
* Got docker-compose working with tor-simple tor proxy

* Got itest working with simple-tor docker image

* Delete old commented containers for tor
2021-12-13 11:36:25 -08:00
Jonathan Zernik
12f7b62349
Add toggle for connect with tor (#1550)
* Added use_tor option to peer address class and grpc message

* Got itest passing without tor

* Got peer connection working in UI with tor toggle

* Able to connect to with and without tor

* Got save peer working with tor and without tor

* Add use_tor field to peer address everywhere.

* Fix usage of useMemo in peer address page
2021-10-09 22:26:54 -07:00
Jonathan Zernik
411f050c93
Got itest working with lnd using tor for both listen and connect (#1495)
* Got itest working with lnd using tor for both listen and connect

* Got itest working with configurable target address for lnd tor config

* Update development doc with tor service in background services
2021-10-04 18:33:16 -07:00
Jonathan Zernik
028b0b5ef1
Use separate lnd container in docker compose (#1479)
* Other lnd container in docker-compose seems to work

* Add new docker-compose using btcd

* Fix external host config for docker-compose

* Remove btcctl container from docker-compose in docker dir

* Mount btcd rpc certs dir to host dir

* Revert "Mount btcd rpc certs dir to host dir"

This reverts commit a79246fb3c.

* Use bitcoin-core instead of btcd in docker-compose.btcd

* Got squeaknode connection and buy working from host machine to container

* Got host to container connection working in main docker-compose

* Remove old comments from docker-compose

* Make squeaknode container use persistent volume

* Add tor proxy to dockerfile

* Update development doc with containerized squeaknode info

* Remove docker-compose.btcd.yml

* Remove unused configs from docker config.ini

* Add zmq hash block port to docker config.ini
2021-10-04 15:12:45 -07:00
Jonathan Zernik
10ec953084
Remove unused volumes section from docker-compose (#1446) 2021-09-30 13:56:03 -07:00
Jonathan Zernik
d797e76ed4
Run extra squeaknode instance in docker-compose (#1444) 2021-09-29 22:47:39 -07:00
Jonathan Zernik
51bc17ace2
Add waiting indicator for lnd node connect disconnect (#1343)
* Add waiting indicator for lnd node page click connect or disconnect

* Improved lightning page so page doesn't reload on list peers response

* Fix react warning by making listPeers function useCallback

* Run frontend lint

* Update frontend build
2021-09-18 19:00:04 -07:00
Jonathan Zernik
2f7ae0114d
Use v0.21.1 of bitcoin in local docker (#1315) 2021-09-16 15:44:22 -07:00
Jonathan Zernik
b9dad8ce0e
Remove envoy code (#1233) 2021-09-08 16:50:00 -07:00
Jonathan Zernik
a0129558d4
Implement block subscription client (#1141)
* Got block subscription working in background thread

* Use separate port for hashblock zeromq subscription

* Update subscription on new block

* Enable checking for block range in interest match function

* Remove unused zmq subscriptions

* Fix squeak interest match function
2021-09-01 06:06:11 -07:00
Jonathan Zernik
e60bcdef65
Remove ports config from envoy container (#979) 2021-08-19 16:00:41 -07:00
Jonathan Zernik
ebf08e7fe0
Use envoy proxy for rpc (#977)
* Got basic envoy proxy use working

* Got envoy proxy working with frontend dev mode and envoy v 1.16.0

* Change envoy proxy port to 15081
2021-08-19 15:14:14 -07:00
yzernik
6a7bd3804d Revert commit: 9ab6dba379 2021-08-19 00:11:06 -07:00
Jonathan Zernik
afd8787027
Use envoy frontend proxy (#971)
* Envoy requets seems to be working

* Use grpcweb with proxy for get timeline squeaks
2021-08-18 18:52:39 -07:00
Jonathan Zernik
e966f73db1
Update db to use Timestamp for times (#519) 2020-12-27 23:32:02 -08:00
Jonathan Zernik
5b22b25ad0
Run squeaknode directly on host without docker (#518) 2020-12-27 20:55:52 -08:00
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
Jonathan Zernik
c62d4229cf
Remove btcd cert shared volume (#486)
* Remove shared volume for btcd cert file

* Got ssl cert working as a config

* Remove old comment about adding ssl certificate in dockerfile
2020-11-24 01:18:53 -05:00
Jonathan Zernik
64643b25a8
Use docker compose overrides for testnet mainnet (#482)
* Use default override file for docker-compose testnet

* Add mainnet docker-compose override file

* Put common environment variables in main docker-compose file

* Update readme with instructions for mainnet override
2020-11-23 20:43:19 -05:00
Jonathan Zernik
a43576a10e
Use bitcoincore for bitcoin node (#481)
* Got docker-compose working with bitcoin-core

* Got itest working

* Add bitcoin use_ssl config

* Rename service to bitcoin-core in docker-compose
2020-11-23 14:43:17 -05:00
Jonathan Zernik
2a0e861fb2
Add sync_interval_s config (#424) 2020-11-09 22:39:06 -05:00
Jonathan Zernik
dbc99925cc
Make log level configurable (#394) 2020-11-05 18:37:32 -05:00
Jonathan Zernik
8c4db6f85a
Rename squeaknode docker container (#377) 2020-11-04 23:35:32 -05:00
Jonathan Zernik
724f72f1e5
Use more config defaults (#376)
* Use default configs for webadmin

* Remove sqlite config from config file

* Use default config for sqk dir

* Use derived default lnd tls cert path in config

* Use default config for macaroon path

* Remove macaroon path config from docker config.ini

* Got mainnet working in docker

* Update readme

* Remove unused network param in docker config.ini file

* Update readme
2020-11-04 23:18:04 -05:00
Jonathan Zernik
7f8b71841f
Use env var to set use_ssl, login_disabled and allow_cors configs (#355) 2020-11-01 13:25:12 -05:00
Jonathan Zernik
400d7faf5c
Use host machine volumes for lnd and sqk (#337) 2020-10-29 01:39:15 -04:00
Jonathan Zernik
bac8d27072
Fix external lnd host env (#332)
* Fix lnd external host env

* Open port 9735 on lnd host in docker
2020-10-28 15:58:19 -04:00
Jonathan Zernik
5292a15884
Remove other node from docker-compose (#323) 2020-10-25 15:35:17 -04:00
Jonathan Zernik
9ed4d79c78
Use host volume for btcd data (#318) 2020-10-24 14:12:32 -04:00
Jonathan Zernik
f321785d60
Change default web server port (#316) 2020-10-23 22:22:34 -04:00
Jonathan Zernik
6f8e556bcf
Make web server port configurable (#314)
* Make host and port for web server configurable

* Add webadmin host and port to config file

* Use current host and port in web frontend

* Remove envoy and frontend from docker compose

* Remove envoy

* Remove unused postgres docker volume
2020-10-23 21:16:50 -04:00
Jonathan Zernik
d3d7e6e604
Add admin web server (#310)
* Add basic flask web server

* Use ubuntu as docker base image for frontend docker build

* Got web frontend server running inside sqkserver

* Got client request throught flask working

* Refactor makerequest function in frontend

* Support sending request to flask server

* Use request and reply in flask for set profile sharing method

* Handle request object in flask for get followed squeaks route

* Use flask endpoint for lnd getinfo

* Use flask endpoint for walletbalance

* Use flask for gettransactions endpoint

* Use flask endpoint for lnd methods

* Add set profile properties methods to flask

* Move request, response protobuf to handler class

* Move request, reply inside handler for get signing profiles

* Move request, reply to handler for get contact profiles

* Move request, reply to handler for get squeak profile

* Move request reply for get profile by address to handler

* Move request reply to handler for set profile attributes

* Move request reply to handler for delete profile

* Move request reply for make squeak to handler

* Move request reply to handler for get squeak display

* Move request reply to get address squeak displays

* Move request reply to handler for ancestor squeaks

* Move request reply to handler for delete squeak

* Move request reply to handler for create peer and get peer

* Move request reply to handler for peer set attributes

* Move request reply to handler for more methods

* Move request reply to handler for another method

* Move request reply to handler for more methods

* Move more request reply to handler

* Move request reply to handler for all methods

* Remove message conversion helper methods from servicer class

* Remove duplicate protobuf conversion functions

* Fix flask handling of requests

* Remove old protobuf conversion methods in comments

* Use helper method to simplify web server routes functions
2020-10-22 22:52:40 -04:00
Jonathan Zernik
8b9f87990d
Show peer connection in lightning node (#280)
* Show peer connection status for lightning node

* Add connect peer button to lightning node page

* Add test for connect peer

* Add working test for list peers and connect peer

* Add test for disconnect peer

* Fix sqk dir config

* Fix sqk_dir config

* Successfully connect to sqkserver_other in docker-compose

* Remove unused dialog from lightning node page
2020-10-09 05:55:32 -07:00
Jonathan Zernik
377eaa62d5
Add receive bitcoin button (#262)
* Add receive bitcoin button

* Add new address rpc method

* Successfully show new address in dialog in wallet

* Make address field in new address dialog read only
2020-09-28 02:02:42 -07:00
Jonathan Zernik
9aef37bd71
Update docker compose yaml (#259)
* Use sqlite for squeak node in docker compose

* Include other sqkserver in docker docker-compose

* Use second instance of squeak node in docker compose

* Remove old log line
2020-09-27 14:54:34 -07:00
Jonathan Zernik
bb4e4d0c00
Add subscription page and go to it from click on subscription row in table (#195) 2020-08-01 15:30:19 -07:00
Jonathan Zernik
bac577b792
Use volume for postgres db (#122) 2020-07-23 01:02:57 -07:00
Jonathan Zernik
531550bac8
Fix main docker-compose to connect to btcd with cert (#121) 2020-07-23 01:01:25 -07:00
yzernik
86f96dbdb8 Add missing links and volumes to sqkserver docker-compose 2020-07-23 00:37:00 -07:00
Jonathan Zernik
3d8a77cdaa
Run in main docker (#113)
* Docker-compose in main docker folder working

* Fix rpc host in start lnd script

* Remove link alias for btcd in btcctl

* Remove docker-compose links alias for btcd in lnd container

* Remove unused open ports in itest docker-compose

* Remove unused environment variabls from itest docker-compose

* Fix port conflicts between itest and docker docker foler docker-compose containers
2020-07-21 20:48:52 -07:00
Jonathan Zernik
a45c3b62be
Add envoy proxy (#95)
* Add envoy proxy

* Add frontend, still not working

* Open port to frontend

* Fix static html page

* Fix url in client js code, but CORS is still blocked

* Successfully make request from browser to sqkserver through proxy

* Expose ports for sqkserver in docker

* Remove unused frontend files

* Remove duplicate envoy config file
2020-07-19 20:20:34 -07:00
Jonathan Zernik
6fd4940a0a
Use btcd btcctl test containers (#63)
* Use containers with test in name for btcd and btcctl

* Remove duplication of createdb script
2020-07-02 22:45:12 -07:00
Jonathan Zernik
2a88b51ec0
Simplify container names (#62)
* Rename docker lnd container

* Rename itest containers to avoid conflict with main containers
2020-07-02 22:28:26 -07:00
Jonathan Zernik
120befd511
Use persistent volume for db in docker-compose (#60) 2020-06-30 15:17:24 -07:00
Jonathan Zernik
1f19ab961b
Expose lnd port in docker compose (#54) 2020-06-26 03:07:00 -07:00
Jonathan Zernik
21f3569887
Added lnd to docker compose (#49) 2020-06-22 13:55:20 -07:00
Jonathan Zernik
e54de2b380
Make docker compose run (#45)
* Organize docker docker-compose file

* Got docker docker-compose working to start server with postgres db
2020-06-11 20:09:02 -07:00