misc settings, ymls and cmds
This commit is contained in:
parent
fb96c68f6f
commit
36a8c5a0c3
@ -13,10 +13,19 @@ conda activate devika
|
||||
rename sample.config.toml
|
||||
fill out config.toml
|
||||
|
||||
|
||||
/ui#>
|
||||
bun run preview --host --port 3000
|
||||
SET VITE_API_BASE_URL=https://api.dev.d-popov.com
|
||||
bun run dev --host
|
||||
|
||||
/#>python3 devika.py --debug
|
||||
# RUN:
|
||||
/#>conda activate devika && python3 devika.py --debug
|
||||
/#>conda activate node && npx bun run dev --host
|
||||
|
||||
|
||||
|
||||
TOML:
|
||||
|
||||
google search:
|
||||
https://developers.google.com/custom-search/v1/introduction
|
||||
https://programmablesearchengine.google.com/controlpanel/overview?cx=0382a4a0cfd6745b7
|
@ -1,5 +1,5 @@
|
||||
#FROM ollama/ollama
|
||||
FROM ubuntu:20.04
|
||||
FROM ollama/ollama
|
||||
# FROM ubuntu:20.04
|
||||
|
||||
# Avoid prompts from apt during build
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
39
_containers/opendevin/dockerfile
Normal file
39
_containers/opendevin/dockerfile
Normal file
@ -0,0 +1,39 @@
|
||||
# docker build -t opendevin . && docker run -d --name OpenDevin-1 -p 3050:3000 -p 3051:3001 opendevin
|
||||
|
||||
# docker run --name OpenDevin-dev -it opendevin
|
||||
|
||||
# Start with a base image that has both Python and Node.js
|
||||
FROM nikolaik/python-nodejs:python3.11-nodejs14
|
||||
|
||||
# Install system dependencies required for the project
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Clone the latest version of OpenDevin
|
||||
WORKDIR /opendevin
|
||||
RUN git clone https://github.com/OpenDevin/OpenDevin.git .
|
||||
|
||||
# Install Python dependencies
|
||||
WORKDIR /opendevin/backend
|
||||
RUN python -m pipenv requirements > requirements.txt && python -m pip install -r requirements.txt
|
||||
RUN python -m pip install -r requirements.txt
|
||||
|
||||
# Install Node.js dependencies
|
||||
WORKDIR /opendevin/frontend
|
||||
RUN npm install monaco-editor
|
||||
RUN npm install
|
||||
|
||||
# Build the frontend
|
||||
RUN npm run build
|
||||
|
||||
# Expose backend and frontend ports
|
||||
EXPOSE 3000 3001
|
||||
|
||||
# Add a script to start both backend and frontend services
|
||||
WORKDIR /opendevin
|
||||
COPY start-services.sh /opendevin/start-services.sh
|
||||
RUN chmod +x /opendevin/start-services.sh
|
||||
|
||||
CMD ["/opendevin/start-services.sh"]
|
12
_containers/opendevin/start-services.sh
Normal file
12
_containers/opendevin/start-services.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Navigate to the backend directory and start the backend server in the background
|
||||
cd /opendevin/backend
|
||||
uvicorn opendevin.server.listen:app --port 3000 &
|
||||
|
||||
# Serve the frontend from the build directory
|
||||
cd /opendevin/frontend/build
|
||||
npx serve -l 3001 &
|
||||
|
||||
# Keep the container running
|
||||
wait
|
@ -30,4 +30,7 @@ in python, create an app that will search for a news about a specific topic on t
|
||||
|
||||
|
||||
|
||||
# devika
|
||||
create new homepage for memecoin. look at https://donk.meme/ for inspiration about functionality. but the design should be novel.
|
||||
|
||||
|
||||
|
15
config.json
Normal file
15
config.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Tab Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "stable-code:code",
|
||||
"apiBase": "https://ollama.d-popov.com"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// original: "tabAutocompleteModel": {
|
||||
// "title": "Starcoder 3b",
|
||||
// "provider": "ollama",
|
||||
// "model": "starcoder-3b"
|
||||
// },
|
@ -30,9 +30,6 @@ class Neo4jConnection:
|
||||
|
||||
@staticmethod
|
||||
def _create_constraints_and_indexes(tx):
|
||||
# Constraints and indexes for Person
|
||||
tx.run("CREATE CONSTRAINT ON (p:Person) ASSERT p.person_id IS UNIQUE;")
|
||||
|
||||
# Constraints and indexes for Memory
|
||||
tx.run("CREATE CONSTRAINT ON (m:Memory) ASSERT m.memory_id IS UNIQUE;")
|
||||
tx.run("CREATE INDEX ON :Memory(content);")
|
||||
|
Loading…
x
Reference in New Issue
Block a user