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() {
2626}
2727
2828test_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-
3229 # # launch a mongocryptd on the host.
3330 ./mongodb/bin/mongocryptd --fork --port 3000 --pidfilepath $( pwd) /pid.file --logpath $( pwd) /logpath
3431 MONGOCRYPTD_URI=' mongodb://localhost:3000'
3532
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`
3742 docker --debug run \
3843 --platform linux/$LINUX_ARCH \
3944 -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
44source secrets-export.sh
55set -o xtrace
66
7+ # use local cache - otherwise npm tries to install to ~ in the docker container, which
8+ # fails when in a mounted volume
79export npm_config_cache=$( pwd) /.cache
10+ npm install
811
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