2019-04-29 20:25:40 -05:00
|
|
|
FROM docker-config-engine-stretch
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2018-09-11 16:57:29 -05:00
|
|
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
2018-06-25 12:48:42 -05:00
|
|
|
|
2017-12-22 12:04:29 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_nephos_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2019-04-29 20:25:40 -05:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_nephos_pydebs.split(' ') -%}
|
|
|
|
python-debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
RUN apt-get install -y libxml2
|
|
|
|
|
2017-12-22 12:04:29 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_nephos_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2019-04-29 20:25:40 -05:00
|
|
|
##RUN dpkg -i \
|
|
|
|
##{% for deb in docker_syncd_nephos_pydebs.split(' ') -%}
|
|
|
|
##debs/{{ deb }}{{' '}}
|
|
|
|
##{%- endfor %}
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2019-04-29 20:25:40 -05:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
2017-12-22 12:04:29 -06:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /debs
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|