File tree Expand file tree Collapse file tree 5 files changed +65
-6
lines changed Expand file tree Collapse file tree 5 files changed +65
-6
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -o errexit # Exit the script with error if any of the commands fail
3
+
4
+ cd ${DRIVERS_TOOLS} /.evergreen/csfle
5
+ . ./activate-kmstlsvenv.sh
6
+
7
+ if [ " Windows_NT" = " $OS " ]; then
8
+ echo " export PYTHON_EXEC='kmstlsvenv/Scripts/python.exe'" > prepare-kmsvenv.sh
9
+ else
10
+ echo " export PYTHON_EXEC='./kmstlsvenv/bin/python3'" > prepare-kmsvenv.sh
11
+ fi
Original file line number Diff line number Diff line change @@ -94,11 +94,28 @@ functions:
94
94
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
95
95
96
96
" bootstrap kms servers " :
97
+ - command : subprocess.exec
98
+ params :
99
+ binary : bash
100
+ working_dir : src
101
+ args :
102
+ - .evergreen/activate-kms-venv.sh
103
+ env :
104
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
97
105
- command : subprocess.exec
98
106
params :
99
107
background : true
108
+ binary : bash
100
109
working_dir : src
110
+ args :
111
+ - .evergreen/run-kmip-server.sh
112
+ env :
113
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
114
+ - command : subprocess.exec
115
+ params :
116
+ background : true
101
117
binary : bash
118
+ working_dir : src
102
119
args :
103
120
- .evergreen/run-kms-servers.sh
104
121
env :
Original file line number Diff line number Diff line change @@ -67,11 +67,28 @@ functions:
67
67
${PREPARE_SHELL}
68
68
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
69
69
bootstrap kms servers :
70
+ - command : subprocess.exec
71
+ params :
72
+ binary : bash
73
+ working_dir : src
74
+ args :
75
+ - .evergreen/activate-kms-venv.sh
76
+ env :
77
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
70
78
- command : subprocess.exec
71
79
params :
72
80
background : true
81
+ binary : bash
73
82
working_dir : src
83
+ args :
84
+ - .evergreen/run-kmip-server.sh
85
+ env :
86
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
87
+ - command : subprocess.exec
88
+ params :
89
+ background : true
74
90
binary : bash
91
+ working_dir : src
75
92
args :
76
93
- .evergreen/run-kms-servers.sh
77
94
env :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -o errexit # Exit the script with error if any of the commands fail
3
+
4
+ cd ${DRIVERS_TOOLS} /.evergreen/csfle
5
+ . ./prepare-kmsvenv.sh
6
+
7
+ echo " $PYTHON_EXEC "
8
+
9
+ $PYTHON_EXEC -u kms_kmip_server.py \
10
+ --ca_file ../x509gen/ca.pem \
11
+ --cert_file ../x509gen/server.pem \
12
+ --port 5698
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -o errexit # Exit the script with error if any of the commands fail
2
3
3
4
cd ${DRIVERS_TOOLS} /.evergreen/csfle
4
- . ./activate-kmstlsvenv.sh
5
- # by default it always runs on port 5698
6
- python -u kms_kmip_server.py &
7
- python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/expired.pem --port 8000 &
8
- python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/wrong-host.pem --port 8001 &
9
- python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/server.pem --port 8002 --require_client_cert &
5
+ . ./prepare-kmsvenv.sh
6
+
7
+ echo " $PYTHON_EXEC "
8
+
9
+ $PYTHON_EXEC -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/expired.pem --port 8000 &
10
+ $PYTHON_EXEC -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/wrong-host.pem --port 8001 &
11
+ $PYTHON_EXEC -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/server.pem --port 8002 --require_client_cert &
You can’t perform that action at this time.
0 commit comments