Skip to content
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

Fix installing plugins in dockerfile #2451

Merged
merged 3 commits into from
Mar 11, 2019
Merged

Conversation

wailo
Copy link
Contributor

@wailo wailo commented Mar 6, 2019

Current state
In docker, the lightning installation is achieved by copying binaries one by one ‘manually’. As soon as a new binary is added, the dockerfile become outdated. See #2377

What has been done
Binaries are installed into a temporary directory using configure --prefix= and make install, then the installation directory is copied ‘as-it-is’ to the final image in the second phase of the build. This will guarantee that any new lib/binary/plugin generated from make install will be reflected in the docker images, and more important, the docker image configuration is closer to the normal build.

Note to the maintainers
Update the official docker image after the merge of this PR.

wailo added 3 commits March 5, 2019 12:14
- All files generated by 'make install' are copied
- Fixes issues with incomplete installation.
- Example: New executables created by build but are missing in docker.
@NicolasDorier
Copy link
Collaborator

Concept ACK. Will test it.

@NicolasDorier
Copy link
Collaborator

lightningd_1 | lightningd: SQLITE version mismatch: compiled 3025003, now 3021000

@NicolasDorier
Copy link
Collaborator

The error above seems unrelated to this PR.

@NicolasDorier
Copy link
Collaborator

NicolasDorier commented Mar 7, 2019

For me to test this PR we need to fix first the version mismatch issue. (--enable-static might do the trick)

@NicolasDorier
Copy link
Collaborator

So the problem came from my docker cache being old. That said, if I do enable-static, I can fix it for all... resuming my test for this PR.

@NicolasDorier
Copy link
Collaborator

Tested ACK.

@wailo
Copy link
Contributor Author

wailo commented Mar 7, 2019

Thanks!

@cdecker
Copy link
Member

cdecker commented Mar 11, 2019

ACK 24a5065

@cdecker cdecker merged commit e843e13 into ElementsProject:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants