2019-04-12 12:14:51 -05:00
|
|
|
FROM docker-config-engine-stretch
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2018-08-13 00:23:58 -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-05-08 17:43:31 -05:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2018-11-09 19:06:09 -06:00
|
|
|
RUN apt-get install -f -y libdbus-1-3 libdaemon0 libjansson4 libpython2.7
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-03-02 20:07:43 -06:00
|
|
|
## Install redis-tools dependencies
|
|
|
|
## TODO: implicitly install dependencies
|
|
|
|
RUN apt-get -y install libjemalloc1
|
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_teamd_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN dpkg -i \
|
2016-12-30 15:34:38 -06:00
|
|
|
{% for deb in docker_teamd_debs.split(' ') -%}
|
2016-12-23 17:22:06 -06:00
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2018-10-19 05:41:53 -05:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
2017-11-16 12:30:41 -06:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN rm -rf /debs
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-11-16 12:30:41 -06:00
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|