OpenBMB / ProAgent

An LLM-based Agent for the New Automation Paradigm - Agentic Process Automation
Apache License 2.0
779 stars 87 forks source link

Docker n8n instruction support #6

Open ruifengma opened 11 months ago

ruifengma commented 11 months ago

Do you support to interact with n8n inside docker file, where can I find the doc related to it? Thanks in advance.

BlitherBoom812 commented 10 months ago

The execution code of the n8n (inside node npm) is here (only one line):

result = subprocess.run(["n8n", "execute", "--file", temp_file_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

If you want to use n8n inside a docker, you can replace the command line with your docker container. the temp_file_path gives directly the temp json file of workflow path in your host file system. You may have to bind a volume or copy the temp json into the docker container.

Sorry for delayed response and thanks for your support for our project!