Skip to content

docker: poetry install before make#7387

Merged
rustyrussell merged 2 commits intoElementsProject:masterfrom
ShahanaFarooqui:docker-poetry-install
Jun 13, 2024
Merged

docker: poetry install before make#7387
rustyrussell merged 2 commits intoElementsProject:masterfrom
ShahanaFarooqui:docker-poetry-install

Conversation

@ShahanaFarooqui
Copy link
Collaborator

Issue: Docker images for v24.05 were built on clean lightning directory and the published image should be running on v24.05 but it is running as v24.05-modded.

Root cause: Dockerfile builder was running different versions of grpcio-tools and protobuf. It resulted in auto generated update of contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py and contrib/pyln-grpc-proto/pyln/grpc/primitive_pb2.py files.

Solution: Run poetry install before make in the dockerfile's builder stage to ensure that the grpcio-tools and protobuf versions are the same.

References:
#7370 (comment)
#7376 (comment)

Changelog-None.

@ShahanaFarooqui ShahanaFarooqui requested a review from cdecker June 12, 2024 01:25
@ShahanaFarooqui ShahanaFarooqui added this to the v24.08 milestone Jun 12, 2024
@ShahanaFarooqui ShahanaFarooqui force-pushed the docker-poetry-install branch 2 times, most recently from ea21033 to b2fbd32 Compare June 12, 2024 06:23
Issue: Docker images for v24.05 were built on clean lightning directory and the published image should be running on v24.05 but it is running as v24.05-modded.

Root cause: Dockerfile builder was running different versions of grpcio-tools and protobuf. It resulted in auto generated update of contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py and contrib/pyln-grpc-proto/pyln/grpc/primitive_pb2.py files.

Solution: Run `poetry install` before make in the dockerfile's builder stage to ensure that the grpcio-tools and protobuf versions are the same.

References:
ElementsProject#7370 (comment)
ElementsProject#7376 (comment)

Changelog-None.
@ShahanaFarooqui ShahanaFarooqui force-pushed the docker-poetry-install branch from b2fbd32 to aa785f8 Compare June 12, 2024 06:25
@rustyrussell rustyrussell merged commit a064b1a into ElementsProject:master Jun 13, 2024
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.

2 participants