Skip to content

Commit 630084e

Browse files
committed
current progress
1 parent 1f00ff5 commit 630084e

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
out
55
storybook-static
66
.gitsecret
7-
.git
7+
.git

firebase.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"runtimeConfig": ".runtimeconfig.json"
1414
},
1515
{
16+
"predeploy": ["source /app/llm/venv/bin/activate && python3.10 -m pip install -r /app/llm/requirements.txt"],
1617
"source": "llm",
1718
"codebase": "maple-llm",
1819
"runtime": "python310"

infra/Dockerfile.firebase

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ RUN apt update && apt install -y curl
55

66
WORKDIR /app
77
RUN chown -R node:node .
8-
USER node
8+
USER node

infra/firebase.compose.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,20 @@
44
"cleanUrls": true,
55
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
66
},
7-
"functions": {
8-
"predeploy": ["yarn build:functions"],
9-
"source": "functions",
10-
"runtime": "nodejs18"
11-
},
7+
"functions": [
8+
{
9+
"predeploy": ["yarn build:functions"],
10+
"source": "functions",
11+
"codebase": "maple",
12+
"runtime": "nodejs18"
13+
},
14+
{
15+
"predeploy": ["source /app/llm/venv/bin/activate && python3.10 -m pip install -r /app/llm/requirements.txt"],
16+
"source": "llm",
17+
"codebase": "maple-llm",
18+
"runtime": "python310"
19+
}
20+
],
1221
"firestore": {
1322
"rules": "firestore.rules",
1423
"indexes": "firestore.indexes.json"

llm/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ python3 -m flask --app main run
137137
TODO:
138138
139139
- [x] Get an OpenAPI key `firebase functions:secrets:access OPENAI_DEV`
140+
- [ ] Need to get docker running locally `yarn compose up --build`
140141
- [ ] Try to deploy the function `firebase deploy --only functions:maple-llm`
141142
- [ ] Alphabetize the requirements.txt file

0 commit comments

Comments
 (0)