blob: b582db3eb3b3e1e5c797199f326e71f8cbc62254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/env bash
if [[ -d "signal_processing_venv" ]]; then
source ./signal_processing_venv/bin/activate
exit 0
fi
# Configure signal processing
cat > .signal-processing.yml << EOF
task_id: ${task_id}
is_patch: ${is_patch}
mongo_uri: mongodb+srv://${dsi_analysis_atlas_user}:${dsi_analysis_atlas_pw}@performancedata-g6tsc.mongodb.net/perf
evergreen:
api_key: "${evergreen_api_key}"
user: "${evergreen_api_user}"
api_server_host: https://evergreen.mongodb.com
EOF
virtualenv -p /opt/mongodbtoolchain/v3/bin/python3 signal_processing_venv
# Setup pip to use our internal PyPI
cat > ./signal_processing_venv/pip.conf << EOF
[global]
index-url = https://pypi.org/simple
extra-index-url = https://${perf_jira_user}:${perf_jira_pw}@artifactory.corp.mongodb.com/artifactory/api/pypi/mongodb-dag-local/simple
EOF
source ./signal_processing_venv/bin/activate
pip install dag-signal-processing~=2.0.0
export analysis_user="${dsi_analysis_atlas_user}"
export analysis_password="${dsi_analysis_atlas_pw}"
|