Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / ms / py-executor / README.md
1
2 ## Install virtual environments
3
4 ```bash
5 python3 -m pip install --user virtualenv # Install virtualenv
6
7 python3 -m venv venv # Create virtual environment under py-executor path
8
9 source env/bin/activate # Activate the current virtualenv
10
11 pip install -r requirements.txt # Install the pip packages defined in requirements.txt file
12
13 ```
14 ## Generate TLS certificates
15
16 ```bash
17 # Generate Server Certificates( chain and private keys ) using config file
18 openssl req -config py-executor.conf -new -x509 -newkey rsa:4096 -nodes -keyout py-executor-key.pem -days 3650 -out py-executor-chain.pem
19
20 # Verify the certificates generated
21 openssl x509 -in py-executor-chain.pem -text -noout
22 ```
23
24 ## Generate Python GRPC bindings from Proto file
25
26 ```bash
27 cd blueprints_grpc/proto
28
29 # Remove Python generated files
30 rm *pb2*.py
31
32 #Generate proto python
33 python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. *.proto
34 ```
35 fix the python import package issues.