2017-10-24 00:01:42 -05:00
|
|
|
FROM docker-config-engine
|
|
|
|
|
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -y net-tools \
|
|
|
|
ethtool \
|
|
|
|
tcpdump \
|
|
|
|
ifupdown \
|
|
|
|
bridge-utils \
|
|
|
|
python-ply \
|
|
|
|
libqt5core5a \
|
|
|
|
libqt5network5 \
|
|
|
|
libboost-program-options1.55.0 \
|
|
|
|
libboost-system1.55.0 \
|
|
|
|
libboost-thread1.55.0 \
|
|
|
|
libgmp10 \
|
|
|
|
libjudydebian1 \
|
|
|
|
libnanomsg0 \
|
|
|
|
libdaemon0 \
|
|
|
|
libjansson4 \
|
|
|
|
libjemalloc1 \
|
|
|
|
openssh-client \
|
|
|
|
openssh-server \
|
|
|
|
libc-ares2 \
|
2017-11-03 19:13:39 -05:00
|
|
|
iproute \
|
|
|
|
libpython2.7
|
2017-10-24 00:01:42 -05:00
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_sonic_vs_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_sonic_vs_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /debs
|
|
|
|
|
|
|
|
RUN sed -ri 's/^daemonize yes$/daemonize no/; \
|
|
|
|
s/^logfile .*$/logfile ""/; \
|
|
|
|
s/^# syslog-enabled no$/syslog-enabled no/; \
|
|
|
|
s/^# unixsocket/unixsocket/ \
|
|
|
|
' /etc/redis/redis.conf
|
|
|
|
|
|
|
|
COPY ["50-default.conf", "/etc/rsyslog.d/"]
|
|
|
|
COPY ["start.sh", "orchagent.sh", "/usr/bin/"]
|
|
|
|
COPY ["brcm.profile.ini", "/usr/share/sonic/device/vswitch/"]
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|