Giter Site home page Giter Site logo

node-red-private-catalogue-builder's Introduction

node-red-private-catalogue-builder

A minimal web app to host a catalogue.json file for a private repository of Node-RED nodes.

Intended to be run in it's own container as part of either multi-tenant-node-red or multi-tenant-node-red-k8s

Configure

The container takes the following Environment variables:

  • PORT - Which port to listen on (defaults to 3000)
  • HOST - Which local IP Address to bind to (defaults to 0.0.0.0)
  • REGISTRY - A host and optional port number to connect to the NPM registry (defaults to http://registry:4873)
  • KEYWORD - The npm keyword to filter on (defaults to node-red)

It presents 2 HTTP endpoints

  • /update - a POST to this endpoint will trigger a rebuild of the catalogue
  • /catalogue.json - a GET request returns the current catalogue

The /update endpoint is intended to be used with the verdaccio private registry configured to send notifications when packages are uploaded/updated. e.g.

notify:
  method: POST
  headers: [{'Content-Type': 'application/json'}]
  endpoint: http://catalogue/update
  content: '{"name": "{{name}}", "versions": "{{versions}}", "dist-tags": "{{dist-tags}}"}'

Build

Build and push the container to the private container repository.

$ docker build . -t catalogue
$ docker tag catalogue private.example.com/catalogue
$ docker push private.example.com/catalogue

Deploy

Docker-compose

  catalogue:
    image: catalogue
    networks:
      - internal
     environment:
      - "REGISTRY=registry:4873"
    depends_on:
      - registry
    expose:
      - "3000"

Kubernetes

      - name: catalogue
        image: private.example.com/catalogue
        ports:
        - containerPort: 3000
        env:
        - name: REGISTRY
          value: 'registry:4873'

node-red-private-catalogue-builder's People

Contributors

hardillb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.