Commit graph

46 commits

Author SHA1 Message Date
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
Jonathan Zernik
30034d35ab
Use config file in docker (#38)
* Use config file mounted in docker container to run squeakserver

* Fix test script to shut down at end

* Expose port in dockerfile

* Update main docker-compose to use config file
2020-06-08 00:10:04 -07:00
yzernik
26586792ba Use port number that doesn't conflict with android emulator 2020-06-05 18:37:53 -07:00
Jonathan Zernik
cecaeec08f
Expose the squeakserver port to the host machine (#34) 2020-06-04 22:30:07 -07:00
Jonathan Zernik
0157d50064
Fix main docker file (#33)
* Shut down itest after complete, and fix docker compose

* Change squeak server listen port
2020-06-04 22:22:49 -07:00
Jonathan Zernik
907f535d91
Delete frontend (#29) 2020-06-04 17:51:47 -07:00
Jonathan Zernik
6851466aed
Itest for squeaknodeclient (#3)
* Add itest for squeaknode client, not passing yet

* Got working itest with get wallet balance

* Change name of squeak node client class.
2020-03-01 00:15:24 -08:00