Page MenuHomeSoftware Heritage

docker/conf/swh-web: Ensure to use a new empty database in dev mode
ClosedPublic

Authored by anlambert on Jun 15 2021, 11:47 AM.

Details

Summary

When overriding swh-web sources, default development database will be
used but it corresponds to the local swh-web development database on
the host sytem using sqlite3 backend.

So ensure to use a newly created sqlite3 database located in the
swh-web service container instead to not persist data across docker
environment sessions.

Diff Detail

Repository
rDENV Development environment
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21997
Build 34221: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.

An alternative would be to use a postgres db in docker instead.

But fine, let's see how it goes.

This revision is now accepted and ready to land.Jun 15 2021, 11:59 AM

An alternative would be to use a postgres db in docker instead.

But fine, let's see how it goes.

swh-web django development settings can only use sqlite3 dbs at the moment, meaning some adaptations are required in the settings if we want to use any db backend,

swh-web django development settings can only use sqlite3 dbs at the moment, meaning some adaptations are required in the settings if we want to use any db backend,

indeed, i had forgotten about that part.