Oracle setup for cQube


Creating the Instance in Oracle Cloud:


  1. Login to the oracle cloud account using the credentials

  2. Click on the left side menu button and then click on compute

  1. Click on instances and then click on create instance

  2. Provide the instance name and modify the image and shape by clicking on edit button


  1. Change image to ubuntu 22.04

  1. Change shape to 2 core OCPU and 16GB RAM


  1. Create the default subnet

  1. Download the private key file

  1. Select the boot volume to 100GB


  1. Click on create the instance



Creating Storage bucket:


  1. Click on side main menu button and select storage and then buckets


  1. Create a bucket with all the default configurations. ( Fill name of bucket )

  1. Please refer to the below pic to get the created bucket name and name-space. ( Need to provide while generating config file in cqube)

         


Generating config file in oracle cloud:

Required this config file to communicate between the storage and the application


  1. Login to the oracle cloud account using the credentials

  2. Navigate to profile



  1. Navigate to Api keys from the left side menu


  1. Generate a new key pair using add key option


  1. Download the private key and click on Add

  1. Copy the content of configuration file, keep it pasted in some notepad for further use and close the popup



Uploading the api key file to the cqube server:

  1. Connect to the cqube server

  1. Copy the oracle api private key from local machine to server using following command

         scp -i <pem_file_of_server> <private_key_of_oracle_api> ubuntu@<ip>:~/

  1. Enter into root user             

       sudo su 

  1. Change the directory to root

                     cd /root

      5. Create a directory using the following command

         mkdir .oci && cd .oci

      6. Copy private key from home directory to root directory

                     mv /home/<system_user_name>/<private_key_of_oracle_api> .

      7. Make sure if the file is present in the current directory

                     ls -ltr

      7. Exit from the root user and continue for cqube installation

                     exit

      8. Refer this doc for cqube installation

             cQube Deployment Document




Instructions to fill oracle config file:

      This config file needs to be filled when installing the cqube. Please refer to the config file which is copied while creating the API keys in Oracle

  1. Enter a location for your config [/root/.oci/config]: /root/.oci/config

  2. Enter a user OCID: <Enter the user OCID from api key config file>

  3. Enter a tenancy OCID: <Enter the tenancy OCID from api key config file>

  4. Enter a region by index or name: <Enter the region from api key config file>

  5. Do you want to generate a new API Signing RSA key pair? (If you decline you will be asked to supply the path to an existing key.) [Y/n] : <Click n>

  6. Enter the location of your API Signing private key file: /root/.oci/<private_key_of_oracle_api>