Commit 729f983b authored by Carit Zhu's avatar Carit Zhu 🎱

Update Dockerfile

parent 51f72f0f
Pipeline #33 passed with stage
in 0 seconds
# java
# Version: 0.0.1
# Version: 1.8.191
FROM registry.cn-hangzhou.aliyuncs.com/witcloud/docker-java:0.0.1
FROM registry.cn-hangzhou.aliyuncs.com/witcloud/docker-cjava:1.8.191
# Maintainers
MAINTAINER Carit Zhu "carit.zhu@witium.com"
COPY tdlcloud.jar /root/tdlcloud.jar
COPY ca.crt /root/ca.crt
COPY witcd.pem /root/witcd.pem
COPY witcd.crt /root/witcd.crt
ARG WITIUM_INFLUXDB_HOST
ENV WITIUM_INFLUXDB_HOST ${WITIUM_INFLUXDB_HOST:-http://witcloud-influxdb:8086}
ARG WITIUM_MQTT_URL
ENV WITIUM_MQTT_URL ${WITIUM_MQTT_URL:-tcp://witcloud-emq}
ARG WITIUM_MQTT_PORT
ENV WITIUM_MQTT_PORT ${WITIUM_MQTT_PORT:-1883}
ARG WITIUM_MQTT_CACRT
ENV WITIUM_MQTT_CACRT ${WITIUM_MQTT_CACRT:-/root/ca.crt}
ARG WITIUM_MQTT_CLIENTKEY
ENV WITIUM_MQTT_CLIENTKEY ${WITIUM_MQTT_CLIENTKEY:-/root/witcd.pem}
ARG WITIUM_MQTT_CLIENTCRT
ENV WITIUM_MQTT_CLIENTCRT ${WITIUM_MQTT_CLIENTCRT:-/root/witcd.crt}
COPY app.jar /root/jar/app.jar
COPY ca.crt /root/jar/ca.crt
COPY witcd.pem /root/jar/witcd.pem
COPY witcd.crt /root/jar/witcd.crt
EXPOSE 8092
ENTRYPOINT [ "java", "-jar","/root/tdlcloud.jar" ]
CMD ["--witium.influxdb.host ${WITIUM_INFLUXDB_HOST}","--witium.mqtt.url ${WITIUM_MQTT_URL}","--witium.mqtt.port ${WITIUM_MQTT_PORT}","--witium.mqtt.cacrt ${WITIUM_MQTT_CACRT}","--witium.mqtt.clientkey ${WITIUM_MQTT_CLIENTKEY}","--witium.mqtt.clientcrt ${WITIUM_MQTT_CLIENTCRT}"]
\ No newline at end of file
ENTRYPOINT [ "/bin/bash", "/root/start-jar.sh" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment