Giter VIP home page Giter VIP logo

max-node-red-docker-image's Introduction

MAX Node-RED Demo (Docker Version)

Sample Node-RED Flow for MAX Object Detector

Getting started

This repo is home to the containerized version of the Model Asset Exchange Node-RED nodes and sample flows, packaged together so it can be run with ZERO installation!

To begin, you will need one pre-requisite: Docker.

Once you have docker installed, one command is all it takes to get up and running.

$ docker run -p 5555:1880 codait/max-node-red-demo

This command will install Node-RED, the MAX nodes, and all other dependencies needed to get started. It will then load the Node-RED server, which will be available in your browser at:

http://localhost:5555

WARNING: Currently there is no persistent storage for flows or other files that may be saved or generated inside the container. When you terminate the container, all data inisde will be lost, and you will start with a fresh install when the container is restarted.

NOTE: In this example, the container's exposed port 1880 was mapped to port 5555. Feel free to change the value of the mapped port to anything currently available on your machine, which you would then use to access Node-RED in the second step.

Running the example flows

The node-red-contrib-model-asset-exchange module includes a couple of example flows to get you started. To import the flows into the workspace:

  1. In the Node-RED editor open โ˜ฐ > Import > Examples > model asset exchange.

  2. Select one of the sub-directories to choose between the basic flows in getting started, some more complex examples in beyond the basics, or some flows designed to run on the raspberry pi.

  3. Choose a flow.

    import sample flows

Note: The flows utilize nodes from the node-red-contrib-browser-util and node-red-contrib-image-output modules. See the flow description for more details on which nodes are used in a particular example.

You can deploy and run these flows as is. The deep learning nodes in these flows have been pre-configured (service: cloud) to connect to hosted evaluation instances of the deep learning microservices.

License

Apache-2.0

max-node-red-docker-image's People

Contributors

kastentx avatar ptitzler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

max-node-red-docker-image's Issues

Document how to run the Docker image on Red Hat OpenShift

Out of the box this demo image does not run on RHOS due to a permission issue:

 node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

fs.js:1918
  binding.copyFile(src, dest, flags);
          ^

Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'

This is caused by how the Node-RED Docker image is built: https://github.com/node-red/node-red-docker/blob/master/latest/Dockerfile#L12-L17. Note that the node-red user is configured to run the app, but this setting is ignored by default in ROHS:

When you deploy an application to OpenShift, by default it will be run with an assigned user ID unique to the project the application is running in. This user ID will override whatever user ID a Docker-formatted image may declare as the user it should be run as.

Refresh Docker image

  • Use node-red-contrib-model-asset-exchange @0.2.8
  • Fix version numbers for other dependencies
  • Upgrade Node-Red

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.