Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Docker and Mango v5.0.2
-
Hello, we are having issues with the installation of Mango 5 in a Docker container. When starting Mango, it doesn't proceed beyond the step "Loading Jetty web server SSL/TLS certificate from: /opt/mango/certificates/instance.p12." We are doing this using JDK-17.
This is a Dockerfile:
FROM openjdk:17-ea-17-jdk
COPY free-m2m2-core-5.0.2.zip /tmp
RUN mkdir -p /opt/mango
&& microdnf install unzip openssl
&& unzip /tmp/free-m2m2-core-5.0.2.zip -d /opt/mango
&& cd /opt/mangoENV MA_HOME /opt/mango
ENV MA_CP $MA_HOME/overrides/classes:$MA_HOME/classes:$MA_HOME/overrides/properties:$MA_HOME/overrides/lib/:$MA_HOME/lib/EXPOSE 5000
WORKDIR /opt/mango
ENTRYPOINT exec java -server -cp $MA_CP -Dma.home=$MA_HOME -Djava.library.path=$MA_HOME/overrides/lib:$MA_HOME/lib:/usr/lib/jni/:$PATH com.serotonin.m2m2.Main -
@Jdiaz-co mango starts with ssl on by default for fresh installs. I'd advise generating a mango.properties file with all of your preferred settings and loading that into your image.
Secondly, ensure you've exposed the ports needed to view mango on 8080 or 8443 if you do go with the SSL route...Let me know how you get on
Fox