Skip to content

Commit

Permalink
Merge pull request #8 from unity-sds/ogc-processes-api-register
Browse files Browse the repository at this point in the history
OGC API Processes - Deploy and Undeploy Processes
  • Loading branch information
drewm-swe authored May 14, 2024
2 parents 83e52e1 + 84cdee2 commit 47b4236
Show file tree
Hide file tree
Showing 8 changed files with 635 additions and 494 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM python:3.12-slim

# Install PostgreSQL development packages
RUN apt-get update && apt-get install -y gcc libpq-dev
RUN apt-get update && apt-get install -y git gcc libpq-dev

# Copy the current directory contents into the container at /app
COPY ./app /app
Expand Down
14 changes: 9 additions & 5 deletions app/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from pydantic import HttpUrl
from pydantic import HttpUrl, SecretStr
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
db_url: str = "sqlite:///:memory:"
ems_api_url: HttpUrl = "http://localhost:8080/api/v1"
ems_api_auth_username: str = "username"
ems_api_auth_password: str = "password"
DB_URL: str = "sqlite:///:memory:"
REDIS_HOST: str = "http://localhost"
REDIS_PORT: int = 6379
EMS_API_URL: HttpUrl = "http://localhost:8080/api/v1"
EMS_API_AUTH_USERNAME: str = "username"
EMS_API_AUTH_PASSWORD: SecretStr = "password"
DAG_CATALOG_DIRECTORY: str = "/dag-catalog"
DEPLOYED_DAGS_DIRECTORY: str = "/deployed-dags"
2 changes: 1 addition & 1 deletion app/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

settings = config.Settings()

SQLALCHEMY_DATABASE_URL = settings.db_url
SQLALCHEMY_DATABASE_URL = settings.DB_URL

engine = create_engine(SQLALCHEMY_DATABASE_URL)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Expand Down
Loading

0 comments on commit 47b4236

Please sign in to comment.