Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
permissions:
contents: read

env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
OIDC_CONFIG_URL: ${{ vars.OIDC_CONFIG_URL }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ COPY . .
RUN pip install .

COPY ./app /code/app
COPY ./.env /code/.env

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "5000"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ pip install .
pip install -e ".[dev]"
```

4. To prepare your environment, add a file called `.env` to the `comet-api` directory. Copy and paste the template below and replace the placeholder values with your own:
4. To override default environment variables, add a file called `.env` to the `comet-api` directory and update as needed (optional):

```
DATABASE_URL=[SOME_URL] # Ex: 'sqlite:///./db.sqlite3'
DATABASE_URL=[SOME_URL] # Ex: 'postgresql://username:password@localhost:5432/database_name'
OIDC_CONFIG_URL=[SOME_URL] # Ex: 'https://token.actions.githubusercontent.com/.well-known/openid-configuration'
```

Expand Down
4 changes: 2 additions & 2 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env")

DATABASE_URL: str
OIDC_CONFIG_URL: str
DATABASE_URL: str = "sqlite:///./db.sqlite3"
OIDC_CONFIG_URL: str | None = None


settings = Settings()