8f348399f5
- Consolidate config.sh and start.sh scripts into one script (start.sh) - Solve issue #435 - All dockers now run supervisord as their ENTRYPOINT - All stdout/stderr output from processes managed by supervisord is now sent to syslog instead of their own files - Supervisord log messages are now also sent to syslog - Removed unused smartmontools package from docker-platform-monitor
32 lines
881 B
Docker
32 lines
881 B
Docker
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; }; \
|
|
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 \
|
|
&& dpkg_apt /root/deps/libnl-3-200_*.deb \
|
|
&& dpkg_apt /root/deps/libnl-genl-3-200_*.deb \
|
|
&& dpkg_apt /root/deps/libnl-route-3-200_*.deb
|
|
|
|
|
|
COPY ["deps/saiserver", "start.sh", "/usr/bin/"]
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
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
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|
|
|