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

Install GNMI client for mgmt container #16081

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ RUN dpkg -i \
debs/{{ deb }}{{' '}}
{%- endfor %}

# Install GNMI client
RUN mkdir -p /tmp/gnmi \
&& cd /tmp/gnmi \
&& wget "https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName=master&definitionId=142&artifactName=sonic-buildimage.vs&target=target/debs/bullseye/sonic-gnmi_0.1_amd64.deb" -O sonic-gnmi_0.1_amd64.deb \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sonic-gnmi_0.1_amd64.deb

docker-ptf is using https://github.com/lguohan/gnxi.git.
Please check if you can reuse that client.
We intend to reduce using sonic binary in the test controller.

&& dpkg --force-depends --path-exclude "*telemetry" --install sonic-gnmi_0.1_amd64.deb \
&& rm -rf /tmp/gnmi

# Install protobuf 3.21.12
RUN mkdir -p /tmp/protobuf \
&& cd /tmp/protobuf \
Expand Down