-
Notifications
You must be signed in to change notification settings - Fork 931
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
build: Add Rust to reprobuilds so we can bundle the cln-grpc plugin with it #5421
Changes from all commits
b2bb02b
4b07bac
354d8c3
25e39f1
1c04a1f
6725d02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,4 @@ tests/primitives_pb2_grpc.py | |
|
||
# Rust targets | ||
target | ||
Cargo.lock | ||
plugins/cln-grpc |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[profile.release] | ||
strip = "debuginfo" | ||
|
||
[workspace] | ||
members = [ | ||
"cln-rpc", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ The following table lists the codenames of distributions that we | |
currently support: | ||
|
||
| Distribution Version | Codename | | ||
|----------------------|----------| | ||
|:---------------------|:---------| | ||
| Ubuntu 18.04 | bionic | | ||
| Ubuntu 20.04 | focal | | ||
| Ubuntu 22.04 | jammy | | ||
|
@@ -116,7 +116,9 @@ We can then build the builder image by calling `docker build` and passing it | |
the `Dockerfile`: | ||
|
||
```bash | ||
sudo docker build -t cl-repro-bionic - < Dockerfile.bionic | ||
sudo docker build -t cl-repro-bionic - < contrib/reprobuild/Dockerfile.bionic | ||
sudo docker build -t cl-repro-focal - < contrib/reprobuild/Dockerfile.focal | ||
sudo docker build -t cl-repro-jammy - < contrib/reprobuild/Dockerfile.jammy | ||
``` | ||
|
||
Since we pass the `Dockerfile` through `stdin` the build command will not | ||
|
@@ -146,6 +148,8 @@ repository (remember to checkout the tag you are trying to build): | |
|
||
```bash | ||
sudo docker run --rm -v $(pwd):/repo -ti cl-repro-bionic | ||
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. maybe this is a change that need to be done inside the docker container, but during the the process that start in this line I need to ran Maybe can be done inside the docker container or at least documented it? |
||
sudo docker run --rm -v $(pwd):/repo -ti cl-repro-focal | ||
sudo docker run --rm -v $(pwd):/repo -ti cl-repro-jammy | ||
``` | ||
|
||
The last few lines of output also contain the `sha256sum` hashes of all | ||
|
Large diffs are not rendered by default.
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.
Mh! by following the what there is written in https://lightning.readthedocs.io/REPRODUCIBLE.html#builder-image-setup during the command exectution
sudo docker build -t cl-repro-bionic - < Dockerfile.bionic
i receive the following message
assuming that we need to update the build system? and you are not see this because you have the image already cloned?
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.
You need to also build the base image, a couple of lines above: https://lightning.readthedocs.io/REPRODUCIBLE.html#base-image-creation
That will build the ubuntu bionic image for example using solely the installation medium contents (fetched from the web), and then we build on top of that known good state.
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.
To get the tags you might have to
git fetch --tags
, but I thought it should work out of the box. If that doesn't work you can alwaysgit fetch cdecker refs/tags/v0.99.1:v0.99.1
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.
Mh! I do not find any tag with this name on your repository https://github.com/cdecker/lightning/tags
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.
Oops, my bad:
Please ignore my comments above, I forgot to push the tag 🤦
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.
Yeah, no problem :)
In addition, when I ran the following command
➜ lightning git:(repobuild/v0.99.1) ✗ sudo docker run --rm -v $(pwd):/repo -ti cl-repro-bionic
I receive the following error at the end
cp: target '/repo/release/' is not a directory
and I also noted that the docs contain a path different from what you posted in the PR
In particular, you posted
release/clightning-v0.99.1-Ubuntu-18.04.tar.xz
The doc contains
/repo/release/clightning-v0.9.0rc1-Ubuntu-18.04.tar.xz