Skip to content

Commit f428eab

Browse files
woohoo?
1 parent fcd325c commit f428eab

File tree

5 files changed

+13
-26
lines changed

5 files changed

+13
-26
lines changed

.evergreen/docker/Dockerfile.musl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,3 @@ EOF
1919
ARG DRIVERS_TOOLS=drivers-evergreen-tools
2020
WORKDIR ${DRIVERS_TOOLS}
2121
RUN git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git .
22-
23-
# TODO: remove this cloning once we have an official release of FLE
24-
WORKDIR /mongodb-client-encryption
25-
RUN <<EOF
26-
git clone https://github.com/baileympearson/mongodb-client-encryption.git .
27-
cd mongodb-client-encryption
28-
git switch alpine
29-
npm run install:libmongocrypt
30-
EOF
31-
32-
# TODO: don't copy in current dir, instead mount it as a volume at runtime.
33-
WORKDIR /node-mongodb-native
34-
COPY . .
35-
RUN npm install ../mongodb-client-encryption

.evergreen/docker/alpine.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ IMAGE_TAG=${IMAGE_TAG:-alpine-fle-image}
1515
build_alpine() {
1616
docker buildx create --name builder --bootstrap --use
1717

18-
# set up FLE creds on host. don't download cryptd because we don't need it.
19-
# TODO: once we map cwd onto the host, we don't need to build the image with the credential file present.
20-
RUN_WITH_MONGOCRYPTD=true bash .evergreen/setup-fle.sh
21-
2218
BASE_TAG=$LINUX_ARCH-alpine-base-node-$NODE_VERSION
2319
docker --debug buildx build --load --progress=plain \
2420
--platform linux/$LINUX_ARCH \
@@ -30,14 +26,18 @@ build_alpine() {
3026
}
3127

3228
test_alpine() {
33-
# launch a mongocryptd on the host.
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+
# # launch a mongocryptd on the host.
3433
./mongodb/bin/mongocryptd --fork --port 3000 --pidfilepath $(pwd)/pid.file --logpath $(pwd)/logpath
3534
MONGOCRYPTD_URI='mongodb://localhost:3000'
3635

37-
# run FLE tests in container, using mongocryptd and replica set running on host
36+
# # run FLE tests in container, using mongocryptd and replica set running on host
3837
docker --debug run \
3938
--platform linux/$LINUX_ARCH \
4039
-e MONGODB_URI=${MONGODB_URI} -e MONGOCRYPTD_URI=${MONGOCRYPTD_URI} \
40+
--volume $(pwd):/node-mongodb-native -w /node-mongodb-native \
4141
--network host \
4242
--entrypoint bash \
4343
$IMAGE_TAG \

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#! /usr/bin/env bash
22

3+
npm i
34
source secrets-export.sh
45

56
export ALPINE=true

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"js-yaml": "^4.1.0",
9797
"mocha": "^10.8.2",
9898
"mocha-sinon": "^2.1.2",
99-
"mongodb-client-encryption": "^6.1.1",
99+
"mongodb-client-encryption": "^6.2.0",
100100
"mongodb-legacy": "^6.1.3",
101101
"nyc": "^15.1.0",
102102
"prettier": "^3.4.2",

0 commit comments

Comments
 (0)