Skip to content

Commit

Permalink
Queue Based Deriver (#57)
Browse files Browse the repository at this point in the history
* Initial Queue Design

* Update Contributing docs and docker-compose

* Remove old test action
  • Loading branch information
VVoruganti authored May 15, 2024
1 parent bc6afcc commit b569fd2
Show file tree
Hide file tree
Showing 11 changed files with 297 additions and 271 deletions.
5 changes: 3 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DATABASE_TYPE=postgres
CONNECTION_URI=postgresql+psycopg://testuser:testpwd@localhost:5432/honcho
CONNECTION_URI=postgresql+psycopg://testuser:testpwd@localhost:5432/honcho # sample for local database

# CONNECTION_URI=postgresql+psycopg://testuser:testpwd@database:5432/honcho # sample for docker-compose database

OPENAI_API_KEY=

Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/run_tests.yml

This file was deleted.

6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ As mentioned earlier a `docker-compose` template is included for running Honcho.
As an alternative to running Honcho locally it can also be run with the compose
template.

The docker-compose template is set to use an environment file called `.env`.
You can also copy the `.env.template` and fill with the appropriate values.

Copy the template and update the appropriate environment variables before
launching the service.

```bash
cd honcho/api
cp .env.template .env
# update the file with openai key and other wanted environment variables
cp docker-compose.yml.example docker-compose.yml
[ update the file with openai key and other wanted environment variables ]
docker compose up
```

Expand Down
32 changes: 14 additions & 18 deletions docker-compose.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@ services:
- 8000:8000
volumes:
- .:/app
environment:
- DATABASE_TYPE=postgres
- CONNECTION_URI=postgresql+psycopg://testuser:testpwd@database:5432/honcho
- OPENAI_API_KEY=[YOUR_OPENAI_API_KEY]
- OPENTELEMETRY_ENABLED=false
- SENTRY_ENABLED=false
- SENTRY_DSN=
- OTEL_SERVICE_NAME=honcho
- OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
- OTEL_PYTHON_LOG_CORRELATION=true
- OTEL_PYTHON_LOG_LEVEL=
- OTEL_EXPORTER_OTLP_PROTOCOL=
- OTEL_EXPORTER_OTLP_ENDPOINT=
- OTEL_EXPORTER_OTLP_HEADERS=
- OTEL_RESOURCE_ATTRIBUTES=
- DEBUG_LOG_OTEL_TO_PROVIDER=false
- DEBUG_LOG_OTEL_TO_CONSOLE=true
- USE_AUTH_SERVICE=false
env_file:
- .env
deriver:
build:
context: .
dockerfile: Dockerfile
entrypoint: ["python", "-m", "src.deriver"]
depends_on:
database:
condition: service_healthy
volumes:
- .:/app
env_file:
- .env
database:
image: ankane/pgvector
restart: always
Expand Down
Loading

0 comments on commit b569fd2

Please sign in to comment.