-
Now, as you would be working on the python environment, so for that you need to create virtual environment.The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site directories.When used from within a virtual environment, common installation tools such as pip will install Python packages into a virtual environment without needing to be told to do so explicitly.
python<version> -m venv <virtual-environment-name> python3 -m venv venv_tririga_wxo source {venv_name}/bin/activate source venv_tririga_wxo/bin/activateYou can see "venv_tririga_wxo" name in your terminal which states that your virtual environment named as "venv_tririga_wxo" is activated
pip3 install -r requirements.txt uvicorn main:app-
Now your application is running at localhost with port 8000. Go to the URL: http://localhost:8000/docs to test whether project is running correctly on local environment or not.
IBM Cloud® Code Engine is a fully managed, serverless platform. Bring your container images, batch jobs, source code or function together in one place and let IBM Cloud Code Engine manage and help secure the underlying infrastructure. There's no need to size, deploy or scale container clusters yourself. And no advanced networking skills are required. Now, let's focus on deployment which have been explain in steps:
Once you push your code to the git remote repo, then you need to trigger the build on code engine so that your image could be built and stored in the container registry.
After you click on projects, you need to select the project named as "TRIRIGA-Orchestrate Integration":
Now after coming to the project, click on "Image Builds" option on the left pane and you would able to see the builds done till now:
Once build is done, then next step is to deploy our application. For that please follow the below steps:
After clicking on "Applications", you would be navigated to list of apps that are under the "TRIRIGA-Orchestrate Integration" project. Now, click on "tririga-wxo-integration" application:
- In Watsonx Orchestrate find your
integrationId,regionId, andserviceId.
- Note: to find the Watsonx Orchestrate
integrationId,regionId, andserviceId. Navigate toAI Assistant Builder>Environments>Web Chat>Embed.
- In the TRIRIGA server, configure the TRIRIGAWEB.properties by adding
WATSON_ORCHESTRATE_ENABLED=TRUE,WATSON_ORCHESTRATE_INTEGRATION_ID=integrationId,WATSON_ORCHESTRATE_REGION_ID=regionId, andWATSON_ORCHESTRATE_INSTANCE_ID=serviceId.
- Here the resource group is mas-development

















