Skip to content

Commit 71b606a

Browse files
passing
1 parent 8d2b2f0 commit 71b606a

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.evergreen/docker/alpine.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ build_alpine() {
2626
}
2727

2828
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-
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} \

.evergreen/run-alpine-fle-tests.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ set -o errexit
44
source secrets-export.sh
55
set -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
79
export 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

0 commit comments

Comments
 (0)