Nexmo / nexmo-nodered

Node Red Nodes for The Nexmo APIs
MIT License
5 stars 6 forks source link

Consider Using Docker Compose for Testing/Development #42

Open adamgoose opened 4 years ago

adamgoose commented 4 years ago

This is only an idea, so feel free to close this issue right away. After reading your testing.md file, I realized that you're doing the same thing I am with docker-compose. The added benefit of using docker-compose is that the docker commands can be easily shared via a docker-compose.yml file, and you can easily mount your local dev copy into the container. This allows you to both test and develop the nodes at the same time from your host.

version: '3'
services:
  nodered:
    image: nodered/node-red-docker:0.19.5-v8
    ports:
    - 1880:1880
    volumes:
    - .:/local # Your local working copy
    - ./data:/data # Persist configuration between sessions

The following commands accompany this setup:

/data should probably be added to .gitignore, since its just your local NodeRED installation.

Edit: Corrected "install local copy" command.

sammachin commented 4 years ago

interesting, I need to think about this a little more so parking for now but I'll come back to it when I have some more brain capacity