Add Docker dev configuration for EMQX, Postgres, and supporting services#6855
Add Docker dev configuration for EMQX, Postgres, and supporting services#6855
Conversation
|
There already is a data and emqx at the dev-env level, why are we duplicating them? |
|
It's not perfect but it's a starting point. Dev's can spin up local docker containers and run throwaway remote instances in them and get their job done. Remote instances installed on other hardware that the local host will not work. |
I was not aware of it |
|
can we run it locally and use it when connecting devices? I used the emqx config you gave me a while back for this |
|
it seems they are the same files |
|
It was a nice try but the concept doesn't work on macs because, why would it? Docker for mac only supports bridge networking mode so I'll poke around with it over the weekend to attempt a workaround, marking it as draft in the meantime. |
Description
A standardized FlowFuse development setup designed for rapid onboarding.
This project provides a Dockerized environment that enables the full FlowFuse feature set locally. It's an attempt to bridge the gap for new hires by pre-configuring essential services like EMQX, Postgres, and SMTP, ensuring everyone has access to a complete development suite.
Configuration for the flowforge.local.yml:
Build a local sandbox docker image
Create a Dockerfile on your os
NB: you can add as many utility libraries as you need to your docker image
build the image locally and name it
sandboxby running:docker build -t sandbox .Aliasing and using throwaway containers
Define the following aliases in your CLI
Usage
With the current proposed setup, only the
sbox_halias will work for devices because both emqx and device agent need to be running on the same host for discovery. That means that the device agent will clash with other processes running on your host on the same ports.Once you exit a container, all data will be discarded.
Related Issue(s)
N/A
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel