1.0 Introduction
The Fortanix Confidential Computing Manager (CCM) environment is designed with the goal of protecting any application. This article describes how to run a Flask Server application on a compute node.
2.0 Running a Flask Server Enclave OS Application
2.1 Prerequisites
Ensure the following:
A Python Web Application should be created.
A group must be created. For more information, refer to Create a Group.
2.2 Run an Enclave OS Application on Compute Node
Perform the following steps:
Navigate to the Application menu item in the CCM UI left navigation panel, and click the + ADD APPLICATION button.

Figure 1: Create New Application
Add a Python Web Application. For more information, refer to Add and Edit an Application.
Approve the domain for the Python Web Application. For more information, refer to Tasks.
In the detailed view of the application, click the + IMAGE button.

Figure 2: Create an Image
Create an image of the Python Web Application by providing a proper tag. For more information, refer to Create an Image.
Approve the image for the Python Web Application. For more information, refer to Tasks.
Run the application image using the following command:
docker run --volume /dev:/dev -v /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket -e NODE_AGENT_BASE_URL=http://52.152.206.164:9092/v1/ fortanix-private/python-flask-sgxWhere,
9092is the port on which Node Agent listens up.52.152.206.164is the Node Agent Host IP.fortanix-private/python-flask-sgxis the converted app that can be found in the Images under the Image Name column in the Images table.
Figure 3: Run the Application
NOTE
Use your own inputs for Node IP, Port, and Converted Image in the above format. The information in the example above is just a sample.
Add the following flag along with the command to get more details:
-e ENCLAVEOS_LOG_LEVEL=debug- to get debug log-p 7622:80 -p 8038:443- to map the application custom port to80or443
To verify that the application is running, click the APPLICATION from the list in the Fortanix CCM UI and verify that there is a running application image associated with it and displayed with the application in the detailed view of the application.

Figure 4: Deployed Application