2017-03-04 03:56:41 -06:00
|
|
|
FROM docker-base
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libsensors4-dev \
|
|
|
|
python \
|
|
|
|
python-dev
|
|
|
|
|
|
|
|
COPY deps /root/deps
|
|
|
|
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
|
2017-05-08 17:43:31 -05:00
|
|
|
dpkg_apt /root/deps/xp-tools.deb \
|
|
|
|
&& dpkg_apt /root/deps/libsai.deb \
|
|
|
|
&& dpkg_apt /root/deps/sai.deb \
|
|
|
|
&& dpkg_apt /root/deps/libthrift-0.9.3_*.deb \
|
2017-03-04 03:56:41 -06:00
|
|
|
&& dpkg_apt /root/deps/libnl-3-200_*.deb \
|
2017-05-08 17:43:31 -05:00
|
|
|
&& dpkg_apt /root/deps/libnl-genl-3-200_*.deb \
|
|
|
|
&& dpkg_apt /root/deps/libnl-route-3-200_*.deb
|
2017-03-04 03:56:41 -06:00
|
|
|
|
|
|
|
|
|
|
|
COPY ["deps/saiserver", "start.sh", "/usr/bin/"]
|
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
2017-03-04 03:56:41 -06:00
|
|
|
COPY ["portmap.ini", "profile.ini", "/etc/sai/"]
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf deps
|
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|