-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 814 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG TAG=latest
# (1)
FROM hivemq/hivemq-ce:${TAG}
COPY my-entrypoint.sh /opt/my-entrypoint.sh
RUN mkdir -p /opt/hivemq/extensions/tdengine-extension
COPY target/tdengine-extension /opt/hivemq-ce-2020.4/extensions/tdengine-extension
WORKDIR /root
COPY TDengine-server-2.x-latest-Linux-x64.tar.gz /root/
RUN tar -zxf TDengine-server-2.x-latest-Linux-x64.tar.gz
WORKDIR /root/TDengine-server/
RUN /root/TDengine-server/install.sh -e no
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib"
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
EXPOSE 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042
#CMD ["taosd"]
VOLUME [ "/var/lib/taos", "/var/log/taos","/etc/taos/" ]
# (5)
RUN chmod +x /opt/my-entrypoint.sh
# (6)
ENTRYPOINT ["/opt/my-entrypoint.sh"]
#CMD ["/opt/hivemq/bin/run.sh"]