From ea84b36447601d0d6a633ae708b72c6aaae6dc67 Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Tue, 3 Dec 2019 16:15:20 -0500 Subject: Refractor controller blueprint modules Move controller blueprints modules to blueprints processor and change the maven group name. Fix test cba and model type paths Fix dependencies issues. Issue-ID: CCSDK-1663 Signed-off-by: Brinda Santh Change-Id: I3654e6f04811470327acba90e8a452b66e3e189b --- ms/py-executor/README | 35 ----------------------------------- ms/py-executor/README.md | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 ms/py-executor/README create mode 100644 ms/py-executor/README.md (limited to 'ms/py-executor') diff --git a/ms/py-executor/README b/ms/py-executor/README deleted file mode 100644 index 58b4fc5c9..000000000 --- a/ms/py-executor/README +++ /dev/null @@ -1,35 +0,0 @@ - -## Install virtual environments - -```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. diff --git a/ms/py-executor/README.md b/ms/py-executor/README.md new file mode 100644 index 000000000..58b4fc5c9 --- /dev/null +++ b/ms/py-executor/README.md @@ -0,0 +1,35 @@ + +## Install virtual environments + +```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. -- cgit 1.2.3-korg