2021-01-09 00:26:52 -06:00
|
|
|
FROM python:3.9
|
|
|
|
LABEL maintainer="neurocis <neurocis@neurocis.me>"
|
|
|
|
|
|
|
|
RUN true && \
|
|
|
|
\
|
|
|
|
# Install python prerequisites
|
2021-03-23 20:32:00 -05:00
|
|
|
pip3 install \
|
|
|
|
grpcio==1.36.1 \
|
|
|
|
paho-mqtt==1.5.1 \
|
|
|
|
influxdb==5.3.1 python-dateutil==2.8.1 pytz==2021.1 requests==2.25.1 \
|
|
|
|
certifi==2020.12.5 chardet==4.0.0 idna==2.10 urllib3==1.26.4 \
|
|
|
|
six==1.15.0 msgpack==1.0.2 \
|
|
|
|
yagrc==1.1.0 grpcio-reflection==1.36.1 protobuf==3.15.6
|
2021-01-09 00:26:52 -06:00
|
|
|
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# run crond as main process of container
|
2021-01-11 01:41:44 -06:00
|
|
|
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
|
2021-01-30 15:17:42 -06:00
|
|
|
CMD ["dish_grpc_influx.py status alert_detail"]
|
2021-01-09 00:26:52 -06:00
|
|
|
|
2021-01-11 01:41:44 -06:00
|
|
|
# docker run -d --name='starlink-grpc-tools' -e INFLUXDB_HOST=192.168.1.34 -e INFLUXDB_PORT=8086 -e INFLUXDB_DB=starlink
|
2021-01-30 15:17:42 -06:00
|
|
|
# --net='br0' --ip='192.168.1.39' neurocis/starlink-grpc-tools dish_grpc_influx.py status alert_detail
|