From ffda37a885543c73507392df8d15826997bfb62a Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 23 Apr 2020 20:43:26 -0600 Subject: [PATCH] Add documentation for Alpine --- doc/INSTALL.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/doc/INSTALL.md b/doc/INSTALL.md index f0f921037294..7b83d0fca239 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -10,7 +10,8 @@ Install 7. [Android](#to-cross-compile-for-android) 8. [Raspberry Pi](#to-cross-compile-for-raspberry-pi) 9. [Armbian](#to-compile-for-armbian) -10. [Additional steps](#additional-steps) +10. [Alpine](#to-compile-for-alpine) +11. [Additional steps](#additional-steps) Library Requirements -------------------- @@ -328,6 +329,7 @@ Then, build c-lightning with the following commands: ./configure make + To compile for Armbian -------------------- For all the other Pi devices out there, consider using [Armbian](https://www.armbian.com). @@ -337,6 +339,33 @@ You can compile in `customize-image.sh` using the instructions for Ubuntu. A working example that compiles both bitcoind and c-lightning for Armbian can be found [here](https://github.com/Sjors/armbian-bitcoin-core). +To compile for Alpine +--------------------- +Get dependencies: +``` +apk update +apk add ca-certificates alpine-sdk autoconf automake git libtool \ + gmp-dev sqlite-dev python python3 py3-mako net-tools zlib-dev libsodium gettext +``` +Clone lightning: +``` +git clone https://github.com/ElementsProject/lightning.git +cd lightning +git submodule update --init +``` +Build and install: +``` +./configure +make +make install +``` +Clean up: +``` +cd .. && rm -rf lightning +apk del ca-certificates alpine-sdk autoconf automake git libtool \ + gmp-dev sqlite python3 py3-mako net-tools zlib-dev libsodium gettext +``` + Additional steps -------------------- Go to [README](https://github.com/ElementsProject/lightning/blob/master/README.md) for more information how to create an address, add funds, connect to a node, etc.