6
6
7
7
# This script prepares a shell to run the remaining scripts in this folder
8
8
# It MUST be kept idempotent! It will overwrite the orchestration config and expansion.yml file upon every run
9
- # and it will only clone drivers-tools if they do not exist one directory above our driver src
10
9
11
10
PROJECT_DIRECTORY=" $( pwd) "
12
- DRIVERS_TOOLS=$( cd .. && echo " $( pwd) /drivers-tools" )
11
+ DRIVERS_TOOLS=" $( pwd) /drivers-evergreen- tools"
13
12
MONGO_ORCHESTRATION_HOME=" $DRIVERS_TOOLS /.evergreen/orchestration"
14
13
MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
15
14
UPLOAD_BUCKET=" ${project} "
@@ -30,12 +29,12 @@ export MONGODB_BINARIES
30
29
export TMPDIR=" $MONGO_ORCHESTRATION_HOME /db"
31
30
export PATH=" $MONGODB_BINARIES :$PATH "
32
31
33
- if [ ! -d " $DRIVERS_TOOLS " ] ; then
34
- # Only clone driver tools if it does not exist
35
- git clone --depth=1 " https://github.com/mongodb-labs/drivers-evergreen-tools.git " " ${DRIVERS_TOOLS} "
36
- fi
37
-
38
- echo " installed DRIVERS_TOOLS from commit $( git -C " ${DRIVERS_TOOLS} " rev-parse HEAD ) "
32
+ # Note the evergreen option on git.get_project recurse_submodules does not work, so do it here.
33
+ # We ignore errors in case we are running in a container where git doesn't trust the tmp directory.
34
+ set +e
35
+ git submodule init
36
+ git submodule update
37
+ set -e
39
38
40
39
cat << EOT > "$MONGO_ORCHESTRATION_HOME /orchestration.config"
41
40
{
0 commit comments