Skip to content

Commit

Permalink
DRIVERS-2999 Use isolated orchestration file (#520)
Browse files Browse the repository at this point in the history
Co-authored-by: Ezra Chung <[email protected]>
  • Loading branch information
blink1073 and eramongodb authored Oct 8, 2024
1 parent 14e2fa6 commit 6044ca2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .evergreen/run-orchestration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ printf '%s' $MONGODB_BINARIES | $PYTHON -c 'import json,sys; print(json.dumps({"

# Copy client certificate because symlinks do not work on Windows.
mkdir -p ${MONGO_ORCHESTRATION_HOME}/lib
cp ${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem || true
cp ${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem 2> /dev/null || true

get_distro
if [ -z "$MONGODB_DOWNLOAD_URL" ]; then
Expand Down Expand Up @@ -119,13 +119,15 @@ else
fi
echo "ORCHESTRATION_FILE=$ORCHESTRATION_FILE"

# Copy the orchestration file so we can override it.
cp -f "$ORCHESTRATION_FILE" "$MONGO_ORCHESTRATION_HOME/config.json"
ORCHESTRATION_FILE="$MONGO_ORCHESTRATION_HOME/config.json"

# Handle absolute path.
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|$(echo $DRIVERS_TOOLS | sed 's/\\/\\\\\\\\/g')|g" $ORCHESTRATION_FILE

# If running on Docker, update the orchestration file to be docker-friendly.
if [ -n "$DOCKER_RUNNING" ]; then
cp $ORCHESTRATION_FILE /root/config.json
export ORCHESTRATION_FILE=/root/config.json
$PYTHON $SCRIPT_DIR/docker/overwrite_orchestration.py
fi

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ mo-expansion.sh
.kube
.cargo
.rustup
.evergreen/orchestration/config.json

# Azure functions.
.python_packages/
Expand Down

0 comments on commit 6044ca2

Please sign in to comment.