• Recent
    • Tags
    • Popular
    • Register
    • Login

    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 Mango 5 Documentation Website

    Docker Support

    Mango Automation Installation
    2
    3
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nallenscottN
      nallenscott
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • nallenscottN
          nallenscott
          last edited by

          Thanks, @phildunlap. Works perfectly.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post