-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdevfile.yaml
41 lines (39 loc) · 1.06 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
schemaVersion: 2.1.0
metadata:
name: weaviate
projects:
- name: weaviate
git:
remotes:
origin: "https://github.com/redhat-na-ssa/demo-ai-weaviate.git"
checkoutFrom:
revision: main
components:
- name: tools
container:
image: quay.io/bkozdemb/udi-9
volumeMounts:
- name: venv
path: /home/user/.venv
memoryLimit: 4096Mi
mountSources: true
- name: venv
volume:
size: 10G
commands:
- id: run-application
exec:
label: "Create the Python virtual environment"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "python3 -m venv .venv && source .venv/bin/activate && pip install pip -Uq && pip install -r src/requirements.txt"
group:
kind: run
- id: install-ollama
exec:
label: "Install the Ollama binary"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "wget https://ollama.com/download/ollama-linux-amd64 -O $HOME/.local/bin/ollama && chmod 755 $HOME/.local/bin/ollama"
group:
kind: run