From 39cd50828706a86302b606025ccefa9a2426f722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kleinb=C3=B6lting?= Date: Tue, 2 Jul 2024 13:42:03 +0200 Subject: [PATCH] chore: Add sqlite to localdev setup --- .gitignore | 2 ++ docker-compose.yml | 5 +++-- sipi/db/.gitkeep | 0 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 sipi/db/.gitkeep diff --git a/.gitignore b/.gitignore index 3962f10233..8ad2b8c78d 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ sipi/tmp-dsp-ingest/ dependencies.txt /sipi/images/* +/sipi/db/* .idea/ .metals/ @@ -58,3 +59,4 @@ docs/03-endpoints/generated-openapi/* # exclude test reports generated by xunit-viewer /index.html + diff --git a/docker-compose.yml b/docker-compose.yml index 444ff451be..51b6c3d482 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,4 @@ services: - app: image: daschswiss/dsp-app:v11.11.0 ports: @@ -69,6 +68,7 @@ services: volumes: - ./sipi/images:/opt/images:delegated - ./sipi/tmp-dsp-ingest:/opt/temp:delegated + - ./sipi/db/:/opt/db:delegated networks: - knora-net environment: @@ -82,7 +82,8 @@ services: - JWT_SECRET=UP 4888, nice 4-8-4 steam engine - SIPI_USE_LOCAL_DEV=false - ALLOW_ERASE_PROJECTS=true -# - JWT_DISABLE_AUTH=true # Uncomment this line if you want to disable authentication for the ingest service + - DB_JDBC_URL=jdbc:sqlite:/opt/db/ingest.sqlite + # - JWT_DISABLE_AUTH=true # Uncomment this line if you want to disable authentication for the ingest service deploy: resources: limits: diff --git a/sipi/db/.gitkeep b/sipi/db/.gitkeep new file mode 100644 index 0000000000..e69de29bb2