Oracle setup for cQube
Creating the Instance in Oracle Cloud:
Login to the oracle cloud account using the credentials
Click on the left side menu button and then click on compute
Click on instances and then click on create instance
Provide the instance name and modify the image and shape by clicking on edit button
Change image to ubuntu 22.04
Change shape to 2 core OCPU and 16GB RAM
Create the default subnet
Download the private key file
Select the boot volume to 100GB
Click on create the instance
Creating Storage bucket:
Click on side main menu button and select storage and then buckets
Create a bucket with all the default configurations. ( Fill name of bucket )
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
Login to the oracle cloud account using the credentials
Navigate to profile
Navigate to Api keys from the left side menu
Generate a new key pair using add key option
Download the private key and click on Add
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:
Connect to the cqube server
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>:~/
Enter into root user
sudo su
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
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
Enter a location for your config [/root/.oci/config]: /root/.oci/config
Enter a user OCID: <Enter the user OCID from api key config file>
Enter a tenancy OCID: <Enter the tenancy OCID from api key config file>
Enter a region by index or name: <Enter the region from api key config file>
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>
Enter the location of your API Signing private key file: /root/.oci/<private_key_of_oracle_api>