-
Notifications
You must be signed in to change notification settings - Fork 999
doc: modernize Alpine build instructions #9204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
enaples
wants to merge
1
commit into
ElementsProject:master
Choose a base branch
from
enaples:test-alpine-installation-guide
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+31
−13
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -619,8 +619,27 @@ A working example that compiles both bitcoind and Core Lightning for Armbian can | |
| Get dependencies: | ||
| ```shell | ||
| apk update | ||
| apk add --virtual .build-deps ca-certificates alpine-sdk autoconf automake git libtool \ | ||
| sqlite-dev python3 py3-mako net-tools zlib-dev libsodium gettext | ||
| apk add --no-cache \ | ||
| alpine-sdk autoconf automake libtool gmp-dev sqlite-dev python3 python3-dev \ | ||
| py3-pip py3-mako net-tools zlib-dev libsodium libsodium-dev gettext gettext-dev \ | ||
| musl-dev gcc git jq curl wget bash ca-certificates protobuf protobuf-dev \ | ||
| postgresql-dev lowdown | ||
| ``` | ||
|
|
||
| Install Rust via rustup (required for Cargo: | ||
| ```shell | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
| . $HOME/.cargo/env | ||
| ``` | ||
|
|
||
| > 📘 | ||
| > | ||
| > The `rust`/`cargo` packages shipped by some Alpine releases can be older than Core Lightning's minimum supported Rust version (1.85.0), so installing the toolchain via rustup is recommended. | ||
|
|
||
| Install uv for Python dependency management: | ||
| ```shell | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| export PATH="$HOME/.local/bin:$PATH" | ||
| ``` | ||
|
|
||
| Clone lightning: | ||
|
|
@@ -630,23 +649,22 @@ cd lightning | |
| git submodule update --init --recursive | ||
| ``` | ||
|
|
||
| Build and install: | ||
| Checkout a release tag: | ||
| ```shell | ||
| ./configure | ||
| make | ||
| make install | ||
| git checkout v26.06.1 | ||
| ``` | ||
|
|
||
| Clean up: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've noticed you removed the clean-up steps. Isn't it desired for a minimal build like Alpine? |
||
| Build and install: | ||
| ```shell | ||
| cd .. && rm -rf lightning | ||
| apk del .build-deps | ||
| uv sync --all-extras --all-groups --frozen | ||
| ./configure | ||
| RUST_PROFILE=release uv run make -j$(nproc) | ||
| RUST_PROFILE=release make install | ||
| ``` | ||
|
|
||
| Install runtime dependencies: | ||
| ```shell | ||
| apk add libgcc libsodium sqlite-libs zlib | ||
| ``` | ||
| > 📘 | ||
| > | ||
| > If you want to disable Rust because you don't need it or its plugins (cln-grpc, clnrest, cln-bip353 or wss-proxy), you can use `./configure --disable-rust` and skip the rustup step above. | ||
|
|
||
| ## Python plugins | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.