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.

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

  • Re: Deploying via Docker

    Hi,

    Same use case. I would like to deploy Mango using Docker. I'm referencing a thread from a couple years ago. An IAS employee shared a script he was using for testing. Has there been any progress, or official support added for Docker since then?

    Thanks!


  • Hi nallenscott, welcome to the forum!

    Docker support was not taken too much father than Jared was indicating in that thread. Here's a script we use to deploy our nightly build to our test server, but with the URL for the nightly build swapped for a URL to grab the current core (would require updating with core updating) from our store:

    FROM openjdk:8-jdk
    MAINTAINER Jared Wiltshire <jared@infiniteautomation.com>
    
    RUN mkdir -p /opt/mango \
        && wget -O /tmp/m2m2-core.zip https://store.infiniteautomation.com/downloads/fullCores/enterprise-m2m2-core-3.5.6.zip \
        && unzip /tmp/m2m2-core.zip -d /opt/mango \
        && rm  /tmp/m2m2-core.zip
    
    ENV 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 8080
    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
    

    From:
    https://github.com/infiniteautomation/misc-files/blob/master/Dockerfile


  • Thanks, @phildunlap. Works perfectly.