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
@@ -33,6 +33,9 @@ If you are working on a bug or feature listed in Jira, please include the ticket
33
33
34
34
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.
35
35
36
+
You can install `libmongocrypt` locally by running `bash etc/build-libmongocrypt.sh`, which will create an `install` directory
37
+
in the repository top level directory. On Windows you will also need to add `c:/libmongocrypt/` to your `PATH`.
38
+
36
39
### Testing Different Topologies
37
40
38
41
To test a **replica set** or **sharded cluster**, set `MONGODB_URI="<connection-string>"` for the `make` command.
@@ -111,6 +114,24 @@ The usage of host.docker.internal comes from the [Docker networking documentatio
111
114
112
115
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.
113
116
117
+
### Testing in Docker
118
+
119
+
We support local testing in Docker. Ensure ``docker`` is installed and running, and then run:
120
+
121
+
```bash
122
+
bash etc/run_docker.sh
123
+
```
124
+
125
+
The script takes an optional argument for the ``MAKEFILE_TARGET`` and allows for some environment variable overrides.
126
+
The docker container has the required binaries, including libmongocrypt.
127
+
The entry script starts a MongoDB topology, and then executes the desired ``MAKEFILE_TARGET``.
128
+
129
+
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