-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Nokia] Add protobuf and grpc C++ and python lib to support Nokia IXR7250E platform #8366
Conversation
@lguohan @judyjoseph @minionatwork Could you please review this PR |
2e5632a
to
b4bac75
Compare
@judyjoseph @abdosi Can you please review this one as well? |
b4bac75
to
212a478
Compare
@lguohan @judyjoseph @abdosi @minionatwork Please help to review this PR |
@lguohan @judyjoseph @abdosi @minionatwork Please help to review this PR |
@judyjoseph @lguohan Please help to review this PR. Thanks |
@lguohan @Blueve @judyjoseph @minionatwork Please help to review this PR. Thanks |
@abdosi Song has approved this PR. Could you please review it and help to merge it to master branch? |
LGTM, Adding @qiluo-msft to take a look into this PR as well. |
@@ -319,6 +319,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in | |||
python3-distutils \ | |||
python3-pip \ | |||
cron \ | |||
libprotobuf-dev \ | |||
libgrpc++ \ |
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.
Do we truly need dev packages in sonic image? #Closed
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.
I feel you install them because pip
need them to build wheel from source code. Then is it possible to prebuilt and minimize the sonic image disk usage?
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.
I have updated the commit to change the libprotobuf-dev to the buster libprotobuf17.
@@ -42,7 +42,12 @@ RUN pip2 install 'setuptools==40.8.0' | |||
# NOTE: Only install enum34 for Python 2, as our version of Python 3 is 3.7, which | |||
# contains 'enum' as part of the standard library. Installing enum34 there will | |||
# cause conflicts. | |||
RUN pip2 install enum34 | |||
RUN pip2 install enum34 \ | |||
grpcio==1.26.0 \ |
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.
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.
We cannot use the default version because upstream is always changing and current version 1.41.0 doesn't build for python2
I have updated to commit to change the grpcio version from 1.26.0 to the 1.39.0 for both pip2 and pip3.
grpcio-tools==1.26.0 | ||
|
||
RUN pip3 install grpcio==1.26.0 \ | ||
grpcio-tools==1.26.0 |
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.
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.
See previous comment.
…platform build Signed-off-by: mlok <[email protected]>
-- Changed the libbrotbuf-dev to buster lightly version libprotobuf17 -- Change the grpcio 1.26.0 to 1.39.0
212a478
to
c61d380
Compare
@ysmanman Please help to review this PR. |
@qiluo-msft Could you please help to merge this PR? or need other people's review |
@mlok-nokia , do you know how to support to install grpcio in armhf? /# uname -m
|
Hi xumia, This grpc installation is introduced for the amd64 image build. Other platform_arch build may not need it. Please try the following. It should address this build issue. Modify the the docker/docker-platform-monitor/Dockerfile.j2. {% if CONFIGURED_ARCH == "amd64" %} |
…7250E platform (#8366) Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container. Image running success.
…7250E platform (#8366) Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container. Image running success.
…7250E platform (#8366) Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container. Image running success.
…7250E platform (#8366) Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container. Image running success.
…7250E platform (#8366) Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container. Image running success.
Why I did it
Nokia IXR7250E platform requires grpcio, grpcio-tools python library, and libprotobuf-dev, libgrpc++ library
How I did it
Modified the build_debian.sh install libprotobuf-dev and libgrpc++ to support nokia ndk
Modified the sonic_debian_extension.j2 to install the grpcio and grpcio-tools in the host
Modified the docker-platform-monitor/Dockerfile.js to install grpcio and grpcio-tools for the pmon container.
How to verify it
Image running success.
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)