From 8781c83c235b03a170336e637c907ad88c6aedb3 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Sun, 7 Apr 2024 22:14:53 +0100 Subject: [PATCH] wip Fix #46 add_flowise_quickstart --- app.py | 13 +++++++++++++ .../applications/flowise-quickstart/src/Dockerfile | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 repo-template-files/quickstarts/applications/flowise-quickstart/src/Dockerfile diff --git a/app.py b/app.py index 7821325..913c6c0 100644 --- a/app.py +++ b/app.py @@ -601,6 +601,18 @@ def add_expressFramework_quickstart(): index.add([f"{BASE_PATH}tmp-cloned-repos/{APP_NAME}/src/Dockerfile"]) index.commit("Added express framework quickstart") + def add_flowise_quickstart(): + # add framework quickstart files + shutil.copytree( + f"{BASE_PATH}/repo-template-files/quickstarts/applications/flowise-quickstart/src", + f"./tmp-cloned-repos/{APP_NAME}/src", + dirs_exist_ok=True, + ) + # add/commit framework files to repo + index = repo.index + index.add([f"{BASE_PATH}tmp-cloned-repos/{APP_NAME}/src/Dockerfile"]) + index.commit("Added flowise application quickstart") + if "rails" in state: # add framework quickstart files shutil.copytree( @@ -653,6 +665,7 @@ def add_expressFramework_quickstart(): ) except requests.exceptions.ConnectTimeout as e: print(f"Ignoring ConnectTimeout because we fire and forget: {e}") + add_flowise_quickstart() if "---existing_repo-" in state: # In this case don't create a new repo, only diff --git a/repo-template-files/quickstarts/applications/flowise-quickstart/src/Dockerfile b/repo-template-files/quickstarts/applications/flowise-quickstart/src/Dockerfile new file mode 100644 index 0000000..d8440b8 --- /dev/null +++ b/repo-template-files/quickstarts/applications/flowise-quickstart/src/Dockerfile @@ -0,0 +1,5 @@ +FROM flowiseai/flowise:1.6.2 +# See https://github.com/FlowiseAI/Flowise/issues/2064 +CMD /usr/local/bin/npx flowise start + +EXPOSE 3000 \ No newline at end of file