Skip to content

Commit fa5efd3

Browse files
committed
another docker fix
1 parent 07de58c commit fa5efd3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.evergreen/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ functions:
375375
type: test
376376
params:
377377
binary: "bash"
378+
TASKFILE_TARGET: test-short
378379
args: ["${RUN_TASK}", run-docker]
379380
- command: subprocess.exec
380381
type: test
@@ -1879,6 +1880,29 @@ task_groups:
18791880
- command: expansions.update
18801881
params:
18811882
file: serverless-expansion.yml
1883+
- command: shell.exec
1884+
params:
1885+
shell: "bash"
1886+
script: |
1887+
# Find the crypt_shared library file in the current directory and set the CRYPT_SHARED_LIB_PATH to
1888+
# the path of that file. Only look for .so, .dll, or .dylib files to prevent matching any other
1889+
# downloaded files.
1890+
CRYPT_SHARED_LIB_PATH="$(find $(pwd) -maxdepth 1 -type f \
1891+
-name 'mongo_crypt_v1.so' -o \
1892+
-name 'mongo_crypt_v1.dll' -o \
1893+
-name 'mongo_crypt_v1.dylib')"
1894+
1895+
# If we're on Windows, convert the "cygdrive" path to Windows-style paths.
1896+
if [ "Windows_NT" = "$OS" ]; then
1897+
CRYPT_SHARED_LIB_PATH=$(cygpath -m $CRYPT_SHARED_LIB_PATH)
1898+
fi
1899+
1900+
echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH" >> crypt-expansion.yml
1901+
1902+
# Load the expansion file to make an evergreen variable with the current unique version
1903+
- command: expansions.update
1904+
params:
1905+
file: crypt-expansion.yml
18821906
teardown_group:
18831907
- command: subprocess.exec
18841908
params:

0 commit comments

Comments
 (0)