Skip to content

Commit

Permalink
wip Fix #46 add_flowise_quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Apr 7, 2024
1 parent a91e87e commit cc8db9a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cc8db9a

Please sign in to comment.