diff options
author | Brinda Santh <bs2796@att.com> | 2019-11-29 14:59:12 -0500 |
---|---|---|
committer | Brinda Santh <bs2796@att.com> | 2019-11-29 16:26:25 -0500 |
commit | 98831362ddb13e1888bedca4f4e03df8c4e7d9e4 (patch) | |
tree | b15e5dba8e0677382b7596cb575637c116b1c660 /ms/py-executor/README | |
parent | ebdd198e47b2da08a2aa470177a3baa4a2cf1c4c (diff) |
Upgrade py executor ms GRPC version.
Regenerate TLS certs with config file.
Issue-ID: CCSDK-1737
Signed-off-by: Brinda Santh <bs2796@att.com>
Change-Id: I2b0982c4e230524ad1e58f150da2a05e4474a0fa
Diffstat (limited to 'ms/py-executor/README')
-rw-r--r-- | ms/py-executor/README | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/ms/py-executor/README b/ms/py-executor/README index 919795a3c..58b4fc5c9 100644 --- a/ms/py-executor/README +++ b/ms/py-executor/README @@ -1,5 +1,35 @@ -Generate Server Certificates ------------------------------- +## Install virtual environments -openssl req -x509 -newkey rsa:4096 -keyout py-executor-key.pem -out py-executor-chain.pem -days 3650 -nodes -subj '/CN=localhost'
\ No newline at end of file +```bash +python3 -m pip install --user virtualenv # Install virtualenv + +python3 -m venv venv # Create virtual environment under py-executor path + +source env/bin/activate # Activate the current virtualenv + +pip install -r requirements.txt # Install the pip packages defined in requirements.txt file + +``` +## Generate TLS certificates + +```bash +# Generate Server Certificates( chain and private keys ) using config file +openssl req -config py-executor.conf -new -x509 -newkey rsa:4096 -nodes -keyout py-executor-key.pem -days 3650 -out py-executor-chain.pem + +# Verify the certificates generated +openssl x509 -in py-executor-chain.pem -text -noout +``` + +## Generate Python GRPC bindings from Proto file + +```bash +cd blueprints_grpc/proto + +# Remove Python generated files +rm *pb2*.py + +#Generate proto python +python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. *.proto +``` +fix the python import package issues. |