Deploying AI-ML in Unix-based Operating Systems

To deploy AI-ML component in RHEL and SuSE, complete the following procedures:

Configuring Python files

Procedure

  1. Access the Python-3.10.10 folder within the Platform/ML directory.
  2. Change the directory to Python-3.10.10 and run the following command:
    • RHEL: yum update -y && yum install -y xz gcc zlib-devel openssl-devel bzip2-devel libffi-devel sqlite-devel pip
    • SuSE: zypper update -y && yum install -y xz gcc zlib-devel openssl-devel bzip2-devel libffi-devel sqlite-devel pip
  3. Run the following commands in the same order:
    • ./configure LDFLAGS='-L/usr/lib64'
    • make clean
    • make install
  4. Skip this step if you are not using Oracle database as your user database. This step is relevant only when working with the data stored in Oracle database. To facilitate access to the Oracle database, it is necessary to install the appropriate Oracle client libraries for Python (cx_Oracle). For step-by-step instructions on the installation process, see the following official page:
  5. In the file Platform/ML/entrypoint.sh, at line number 3 and 6, replace /usr/local/bin/python with the absolute path to Platform/ML/Python-3.10.10/python.
  6. In the Platform/ML/lib directory, access the site-packages folder.
  7. In the Platform/ML/entrypoint.sh file, replace the [replace_with_the_sitepackages_path] with the absolute path to site-packages directory.

Starting the ML services

Procedure

  1. Change the directory to Platform/ML directory.
  2. To launch the ML service, run startup.sh.