Commit graph

370 commits

Author SHA1 Message Date
jamaljsr
130bd402ab chore: fix generated code being included in language stats 2020-12-11 18:00:16 -05:00
jamaljsr
01fa8e18aa docs: update compile doc with instructions to compile proto files 2020-12-11 16:31:32 -05:00
jamaljsr
decc501a04 protos: update proto files for lnd v0.11.1 and loop v0.11.2 2020-12-11 16:02:54 -05:00
jamaljsr
632b4c75b8 scripts: update build-protos script to download protos from github 2020-12-11 16:02:51 -05:00
jamaljsr
ca81d2dc19 ci: remove protoc setup from CI builds 2020-12-11 10:59:12 -05:00
Olaoluwa Osuntokun
e1e7855346
Merge pull request #158 from lightninglabs/docker-arm
docker: refactor build process to support building ARM images
2020-12-10 18:04:53 -08:00
Oliver Gugger
953b0cb698
GitHub: specify docker image platforms 2020-12-10 11:04:21 +01:00
Oliver Gugger
27a5e4ec1d
docker: fix yarn installation for ARM builds
This commit fixes multiple problems that seem to only appear when
building the docker images for ARM.
2020-12-10 11:04:21 +01:00
Oliver Gugger
a5ce60070c
docker: use stages for nodejs and golang parts
With this commit we split the build process into three stages: we start
with the JavaScript to static asset build process that requires NodeJS
then copy the result into the second stage that requires golang.
Finally, we just extract the final binaries in the third stage to keep
the shipped image as small as possible.
2020-12-10 11:04:21 +01:00
Oliver Gugger
378687b522
make: add independent statik-only goal
To separate the asset to golang conversion step from the node app build,
we add a new, independent goal for just the statik command. That way we
can cleanly separate between stuff that needs yarn/nodejs installed and
stuff that needs golang installed.
2020-12-10 11:04:20 +01:00
Oliver Gugger
35d5d6b462
multi: check compiled protos in GH actions
To make sure the compiled protos in the git repository are always up to
date, we add a GitHub action that checks them by compiling and diffing
the files.
2020-12-10 11:04:20 +01:00
Oliver Gugger
f6b16e49a3
app+docker: don't compile protos when building or installing
Because we now have the compiled protos in the git repository, we don't
need to compile them with each installation or build.
2020-12-10 10:56:59 +01:00
Oliver Gugger
47a435944d
types: add generated code from proto compilation to git
To remove the need for installing protoc for building the source from
scratch, we check in the generated JavaScript and TypeScript code that
is compiled from the *.proto files.
We will make sure the protos and generated files are in sync with the
help of a GitHub Action.
By adding a .gitattributes file we also make sure the committed
generated JS code does not count towards GitHub's language statistics of
the repo.
2020-12-10 10:56:10 +01:00
Olaoluwa Osuntokun
f0be051181
Merge pull request #157 from lightninglabs/pool-0.3.4
Update Pool to v0.3.4-alpha
2020-12-07 20:00:26 -08:00
Oliver Gugger
27b871052a
README: update version matrix 2020-12-08 00:06:14 +01:00
Oliver Gugger
02bc89ecae
dep: bump pool to v0.3.4-alpha 2020-12-08 00:05:10 +01:00
Olaoluwa Osuntokun
09b640c8f4
Merge pull request #153 from lightninglabs/prod-docker-file
docker+GitHub: add production Dockerfile and build automatically on tag push
2020-12-04 17:35:06 -08:00
Oliver Gugger
1b46786ce2
doc: document docker image build 2020-11-25 16:00:36 +01:00
Oliver Gugger
886d148ccb
GitHub: add workflow for building tagged docker images
We add a GitHub workflow that is triggered whenever a new version tag is
pushed. It will trigger a docker image build for that version and
automatically push it to the specified repo.
2020-11-25 16:00:35 +01:00
Oliver Gugger
64d53f700e
Dockerfile: add production docker image
We add a new standalone Dockerfile that checks out the code from GitHub
and goes through all necessary build steps from scratch. The git commit
or tag that should be checked out before building can be specified as a
build argument.
To still allow more rapid development, the old Dockerfile that builds
from the local source is renamed to dev.Dockerfile to make the
distinction clear.
2020-11-25 16:00:35 +01:00
Oliver Gugger
d18397fe2b
make: add go-install-cli target 2020-11-25 15:28:50 +01:00
Oliver Gugger
671556b20a
doc: specify required protoc version 2020-11-25 15:28:48 +01:00
Jamal James
b84ae0b722
Merge pull request #149 from lightninglabs/dependabot/npm_and_yarn/app/lodash-4.17.19
build(deps): bump lodash from 4.17.15 to 4.17.19 in /app
2020-11-20 15:09:56 -05:00
Oliver Gugger
7375ab9dba
Merge pull request #151 from stefanlsd/stefanlsd-docker-golang
Update golang to 1.15.5 for security update
2020-11-17 09:33:45 +00:00
stefanlsd
7840baa7d9
Update golang to 1.15.5 for security update
https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM/m/fLguyiM2CAAJ

Geth has made this change a high priority. Unsure if LND is affected. I have built LIT docker with 1.15.5 and it seems to run ok.  (havent tested lnd, pool, loop) - running to a remote lnd.
2020-11-17 09:20:35 +02:00
dependabot[bot]
00f055bc57
build(deps): bump lodash from 4.17.15 to 4.17.19 in /app
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-16 21:34:03 +00:00
Oliver Gugger
fe60eb4edd
Merge pull request #148 from lightninglabs/multi-fix
multi: update pool, fix docs, fix timeout issue
2020-11-16 21:33:27 +00:00
Oliver Gugger
5c6b893488
README: bump versions 2020-11-16 21:22:52 +01:00
Oliver Gugger
6c2b18e248
terminal: disable HTTP timeouts except header read
To make sure that long-running calls and indefinitely opened streaming
connections aren't terminated by the internal proxy, we need to disable
all timeouts except the one for reading the HTTP headers.
That timeout shouldn't be removed as we would otherwise be prone to the
slowloris attack where an attacker takes too long to send the headers
and uses up connections that way.
Once the headers are read, we either know it's a static resource and
can deliver that very cheaply or check the authentication for other
calls.

Fixes #140 and #144.
2020-11-16 21:18:15 +01:00
Oliver Gugger
815d533db7
doc: mention lnd-mode when upgrading from old version
Users updating from a pre-0.3.0 version need to add the lnd-mode flag
and set it to "integrated" if they want to continue running LiT the same
way as they did before. This was forgotten to be mentioned in the
upgrade doc.
2020-11-16 21:08:10 +01:00
Oliver Gugger
33a929fa45
mod: update pool to v0.3.3-alpha 2020-11-16 21:07:59 +01:00
Oliver Gugger
883c56027a
Merge pull request #138 from stefanlsd/dockerfile
Fix broken docker build by removing extra bash. Closes #137
2020-11-14 11:18:07 +00:00
Oliver Gugger
98e88eeb31
Merge pull request #141 from lightninglabs/loop-user-agent-initiator
Loop user agent initiator
2020-11-14 11:17:25 +00:00
Oliver Gugger
5fd55d9acd
make: compile in loop commit/version 2020-11-12 20:57:23 +01:00
Oliver Gugger
8ab97db04a
api/loop: add swap initiator string 2020-11-12 20:48:26 +01:00
Oliver Gugger
c1fbf416a1
mod: update loop dependency to v0.11.1-beta 2020-11-12 20:43:37 +01:00
Stefan Lesicnik
52bf1cd27e Fix broken docker build by removing extra bash. Closes #137 2020-11-07 17:14:35 +02:00
Oliver Gugger
70cfae5ad7
Merge pull request #135 from duck1123/patch-1
Update sample config to specify macaroondir option
2020-11-05 08:11:21 +00:00
Duck Nebuchadnezzar
447e943846
Update sample config to specify macaroondir option 2020-11-04 20:31:52 -05:00
Oliver Gugger
e802d87118
release: add pool binary to release package 2020-11-03 09:03:45 +01:00
Oliver Gugger
5d5b3d6d3f
Merge pull request #8 from guggero/pool-daemon-only
mod+terminal: add poold
2020-11-02 13:54:21 +00:00
Oliver Gugger
ef624d8e63
docs: add pool examples 2020-11-02 13:18:18 +01:00
Oliver Gugger
a48fcf44d3
make: use latest git tag for version in release 2020-11-02 13:18:17 +01:00
Oliver Gugger
4716659ad2
README: update versions 2020-11-02 13:18:13 +01:00
Oliver Gugger
26ac69a895
mod+terminal: add pool 2020-11-02 13:17:51 +01:00
Oliver Gugger
41e93f95af
mod: update loop, faraday and lndclient dependencies 2020-10-30 10:56:16 +01:00
Oliver Gugger
7487a2fdc0
Merge pull request #130 from lightninglabs/litd-user-agent
Update dependencies, set loopd user agent to "litd"
2020-10-14 12:29:25 +02:00
Oliver Gugger
1392239d5f
terminal: set loopd user agent 2020-10-13 21:51:31 +02:00
Oliver Gugger
c01d968b4b
mod+README: update dependencies 2020-10-13 21:51:28 +02:00
Justin O'Brien
0ce30d4a37
Simplified readme (#129)
Update README, simplify documentation

Simplified to focus on the happy path

* Connect to remote instance

Instructions for connecting Terminal to a remote LND instance.

* Add link to remote instance

Link to new instructions for connecting Terminal to a remote LND instance.

* Create build from source instructions

Parse out the building from source instructions into a separate doc to simplify main README file.

* Change configuration section

Update configuration section to acknowledge ability to upgrade an LND instance to Terminal

* Add upgrading section

Ensure that there is a clear upgrade path for existing users that have modified their lnd.conf files to be compatible with Terminal

* Reference integrated configuration doc

Change configuration section to point to the integrate mode configuration doc.

* Reference remote mode instructions

In case the user needs further information point them to the more comprehensive instructions

* Update configuration settings

Change configuration settings to be more accurate and specific

* Update compatibility

Changed to v0.11.0-beta

* Update README

Add list of features and Daemon Versions table

* Combine config links

Put remote and integrated modes together but separate.

* Create troubleshooting doc

Specific information for troubleshooting

* Add troubleshooting section

Link out to the troubleshooting guide

* Update configuration to interaction

Make it more explicit as to what problem is being solved

* Add quickstart section

Quickstart section for those wanting to connect LiT with a standalone process on a remote host

* Combine remote configs into one

Reference the single remote config doc instead of chained docs.

* Update doc/config-lnd-remote.md

* Remove commands for downloading

Sort of overkill in terms of info

* Update README

Add small changes to README to address comments

* Update compile

Address small nits

* Update uipassword

Make it clearer the password needs to be changed

* Update with build tags

Added build tags for LND since it is most likely the case that LND was built without tags.
2020-10-13 21:49:20 +02:00