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: docs/CONTRIBUTING.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,9 @@ prompt before creating a PR to the target branch.
51
51
52
52
The driver tests can be run against several database configurations. The most simple configuration is a standalone mongod with no auth, no ssl, and no compression. To run these basic driver tests, make sure a standalone MongoDB server instance is running at localhost:27017. To run the tests, you can run `make` (on Windows, run `nmake`). This will run coverage, run go-lint, run go-vet, and build the examples.
53
53
54
+
You can install `libmongocrypt` locally by running `bash etc/build-libmongocrypt.sh`, which will create an `install` directory
55
+
in the repository top level directory. On Windows you will also need to add `c:/libmongocrypt/` to your `PATH`.
56
+
54
57
### Testing Different Topologies
55
58
56
59
To test a **replica set** or **sharded cluster**, set `MONGODB_URI="<connection-string>"` for the `make` command.
@@ -129,6 +132,24 @@ The usage of host.docker.internal comes from the [Docker networking documentatio
129
132
130
133
There is currently no arm64 support for the go1.x runtime, see [here](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Known issues running on linux/arm64 include the inability to network with the localhost from the public.ecr.aws/lambda/go Docker image.
131
134
135
+
### Testing in Docker
136
+
137
+
We support local testing in Docker. Ensure ``docker`` is installed and running, and then run:
138
+
139
+
```bash
140
+
bash etc/run_docker.sh
141
+
```
142
+
143
+
The script takes an optional argument for the ``MAKEFILE_TARGET`` and allows for some environment variable overrides.
144
+
The docker container has the required binaries, including libmongocrypt.
145
+
The entry script starts a MongoDB topology, and then executes the desired ``MAKEFILE_TARGET``.
146
+
147
+
For example, to test against a sharded cluster, using enterprise auth, run:
If you want to work on the driver, write documentation, or have questions/complaints, please reach out to us either via [MongoDB Community Forums](https://community.mongodb.com/tags/c/drivers-odms-connectors/7/go-driver) or by creating a Question issue in [Jira](https://jira.mongodb.org/secure/CreateIssue!default.jspa).
0 commit comments