Skip to content

Commit 3952efd

Browse files
committed
Document how to access the database for a homeserver after Complement runs
Spawned from #68
1 parent 91b0879 commit 3952efd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: ONBOARDING.md

+19
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,25 @@ For Goland:
188188
* Under "Run"->"Edit Configurations..."->"Templates"->"Go Test", add `COMPLEMENT_BASE_IMAGE=complement-dendrite:latest`
189189
* Then you can right-click on any test file or test case and "Run <test name>".
190190

191+
192+
193+
### Access database for homeserver after Complement test runs
194+
195+
196+
For Synapse:
197+
198+
```
199+
# You can use `docker ps -f name=complement_` to just filter to the Complement containers
200+
$ docker ps
201+
$ docker exec -it complement_1_hs_with_application_service.hs1_2 /bin/bash
202+
203+
$ apt-get update && apt-get install -y sqlite3
204+
205+
$ sqlite3
206+
> .open /conf/homeserver.db
207+
```
208+
209+
191210
### What do I need to know if I'm coming from sytest?
192211

193212
Sytest has a concept of a `fixture` to configure the homeserver or test in a particular way, these are replaced with a `Blueprint` in Complement.

0 commit comments

Comments
 (0)