File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,19 @@ build_alpine() {
26
26
}
27
27
28
28
test_alpine () {
29
- # set up FLE creds on host. don't download cryptd because we don't need it.
30
- RUN_WITH_MONGOCRYPTD=true bash .evergreen/setup-fle.sh
31
-
32
29
# # launch a mongocryptd on the host.
33
30
./mongodb/bin/mongocryptd --fork --port 3000 --pidfilepath $( pwd) /pid.file --logpath $( pwd) /logpath
34
31
MONGOCRYPTD_URI=' mongodb://localhost:3000'
35
32
36
- # # run FLE tests in container, using mongocryptd and replica set running on host
33
+ # set up FLE creds on host. don't download cryptd because we don't need it.
34
+ RUN_WITH_MONGOCRYPTD=true bash .evergreen/setup-fle.sh
35
+
36
+ # remove node_modules to remove any already downloaded prebuilds
37
+ rm -rf node_modules
38
+
39
+ # run FLE tests in container, using mongocryptd and replica set running on host.
40
+ # mount the current directory (the driver's root) as /node-mongodb-native and
41
+ # use that as the working directory for `run-alpine-fle-tests.sh`
37
42
docker --debug run \
38
43
--platform linux/$LINUX_ARCH \
39
44
-e MONGODB_URI=${MONGODB_URI} -e MONGOCRYPTD_URI=${MONGOCRYPTD_URI} \
Original file line number Diff line number Diff line change @@ -4,13 +4,10 @@ set -o errexit
4
4
source secrets-export.sh
5
5
set -o xtrace
6
6
7
+ # use local cache - otherwise npm tries to install to ~ in the docker container, which
8
+ # fails when in a mounted volume
7
9
export npm_config_cache=$( pwd) /.cache
10
+ npm install
8
11
9
- npm i
10
-
11
- npm ls
12
-
13
- node --print " require('mongodb-client-encryption')"
14
-
15
- export ALPINE=true
16
- npm run check:csfle
12
+ ALPINE=true \
13
+ npm run check:csfle
You can’t perform that action at this time.
0 commit comments