misc settings, ymls and cmds

This commit is contained in:
Dobromir Popov 2024-04-07 20:20:36 +03:00
parent fb96c68f6f
commit 36a8c5a0c3
7 changed files with 82 additions and 7 deletions

View File

@ -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

View File

@ -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

View 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"]

View 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

View File

@ -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
View 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"
// },

View File

@ -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);")