Skip to content

Commit

Permalink
fix docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Oct 14, 2023
1 parent 0466e13 commit 63a20f0
Show file tree
Hide file tree
Showing 10 changed files with 2,068 additions and 1,821 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /code
RUN pip3 install poetry

COPY pyproject.toml poetry.lock ./
COPY sdk/ ./sdk
COPY beaver_sdk ./beaver_sdk
RUN poetry config virtualenvs.create false
RUN poetry install --with ui --no-interaction --no-ansi
RUN pip install river
4 changes: 3 additions & 1 deletion beaver/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

import fastapi
from starlette.middleware.cors import CORSMiddleware

from .settings import settings
from beaver import api, db


import beaver_sdk


app = fastapi.FastAPI(
title=settings.PROJECT_NAME, openapi_url=f"{settings.API_PREFIX}/openapi.json"
)
Expand Down
2 changes: 1 addition & 1 deletion sdk/README.md → beaver_sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Let's say Beaver is running somewhere in the cloud. You are on your laptop. The first thing to do is install the SDK on your laptop:

```sh
pip install "git+https://github.com/online-ml/beaver/#egg=beaver_sdk&subdirectory=sdk"
pip install "git+https://github.com/online-ml/beaver/#egg=beaver_sdk&subdirectory=beaver_sdk"
```
File renamed without changes.
165 changes: 165 additions & 0 deletions beaver_sdk/poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions sdk/pyproject.toml → beaver_sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ authors = ["Max Halford <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.26.0"

[tool.ruff]
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ services:
ports:
- 8501:8501
volumes:
- ./ui:/code
command: streamlit run Home.py
- ./:/code
command: poetry run streamlit run ui/Home.py
depends_on:
- api

Expand Down
Loading

0 comments on commit 63a20f0

Please sign in to comment.