You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,31 @@ print(configuration)
50
50
// ...
51
51
```
52
52
53
+
## developing swift-mongodb
54
+
55
+
Development environments for MongoDB drivers can be challenging to set up. The easiest way to work on swift-mongodb is to use Docker. This repository contains some configurations to help you get started.
56
+
57
+
```bash
58
+
# launch a cluster of Docker containers, each hosting a `mongod` instance
59
+
docker compose -f .github/mongonet/docker-compose.yml up -d
Importantly, your *own* devcontainer must be connected to the cluster’s Docker network (`mongonet`).
64
+
65
+
```yaml
66
+
services:
67
+
your-vscode-container:
68
+
image: your-devcontainer-image
69
+
hostname: vscode
70
+
networks:
71
+
- mongonet
72
+
73
+
networks:
74
+
mongonet:
75
+
external: true
76
+
```
77
+
53
78
## license and acknowledgements
54
79
55
80
This library is Apache 2.0 licensed. It originally began as a re-write of [*MongoKitten*](https://github.com/orlandos-nl/MongoKitten) by [Joannis Orlandos](https://github.com/Joannis) and [Robbert Brandsma](https://github.com/Obbut).
0 commit comments