Skip to content

Commit

Permalink
[build]: fix mgmt-framework build failure on ARM64 (#4674)
Browse files Browse the repository at this point in the history
PIP installs grpcio-tools via source code

Co-authored-by: taocy <taocy2@centecnetworks.com>
  • Loading branch information
taocy001 and taocy committed May 31, 2020
1 parent 8863a11 commit ccd08f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockers/docker-sonic-mgmt-framework/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%s
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get update && \
apt-get install -y g++ python-dev

RUN pip install connexion==1.1.15 \
setuptools==21.0.0 \
grpcio-tools==1.20.0 \
Expand All @@ -15,7 +17,6 @@ RUN pip install connexion==1.1.15 \
six==1.11.0 \
urllib3==1.21.1


COPY \
{% for deb in docker_sonic_mgmt_framework_debs.split(' ') -%}
debs/{{ deb }}{{' '}}
Expand All @@ -30,6 +31,7 @@ debs/{{ deb }}{{' '}}
COPY ["start.sh", "rest-server.sh", "/usr/bin/"]
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]

RUN apt-get remove -y g++ python-dev
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
RUN rm -rf /debs

Expand Down

0 comments on commit ccd08f1

Please sign in to comment.