From ea65962fe4ad410e46b3f006e1d1dd28a807a1c3 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Fri, 20 Jan 2017 23:55:42 +0200 Subject: [PATCH] Fix compilation issue. (#198) Fix docker-platform-monitor compilation issue. Update .gitignore file --- .gitignore | 1 + dockers/docker-platform-monitor/Dockerfile.j2 | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 372634cfb0..1e87c52e6f 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ dockers/docker-lldp-sv2/Dockerfile dockers/docker-orchagent/Dockerfile dockers/docker-snmp-sv2/Dockerfile dockers/docker-team/Dockerfile +dockers/docker-platform-monitor/Dockerfile diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index 83463acf48..c6020d113b 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -7,10 +7,15 @@ RUN apt-get install -y smartmontools sensord # Dependencies for sonic-cfggen RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml -COPY debs/ debs +COPY \ +{% for deb in docker_platform_monitor_debs.split(' ') -%} +debs/{{ deb }}{{' '}} +{%- endfor -%} +debs/ + RUN dpkg -i \ -{% for deb in docker_fpm_debs.split(' ') -%} +{% for deb in docker_platform_monitor_debs.split(' ') -%} debs/{{ deb }}{{' '}} {%- endfor %}