Skip to content

howowi/supremo-rental-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supremo Rental Quickstart

1. Setup baseline infrastructure

Click on the button below to deploy the baseline infrastructure using OCI Resource Manager.

Deploy to Oracle Cloud

2. Deploy frontend application

IMPORTANT: Must complete the baseline infrastructure setup before following the steps below.

Github Repository Setup

  1. Fork the Supremo Rental Quickstart Github Repository to your Github account. Follow the steps in this link on the steps to fork a repository.

  2. Clone the repository on your local terminal or Cloud Shell.

  3. Navigate to Github repository settings.

  4. Press "Actions" under "Secrets and variables" option.

  5. Press "New repository secret" to create the following secrets.

    • OCI_CLI_FINGERPRINT (obtain from Resource Manager Outputs)

    • OCI_CLI_KEY_CONTENT (obtain from Resource Manager Outputs)

    • OCI_CLI_REGION (obtain from Resource Manager Outputs)

    • OCI_CLI_TENANCY (obtain from Resource Manager Outputs)

    • OCI_CLI_USER (obtain from Resource Manager Outputs)

    • OCI_COMPARTMENT_OCID (obtain from Resource Manager Outputs)

    • OCIR_USERNAME (Refer to documentation)

    • OCI_AUTH_TOKEN (obtain from Resource Manager Outputs)

    • OCI_DEVOPS_PIPELINE_ID (obtain from Resource Manager Outputs)

  6. On the same page, click on "Variables" and click "New repository variable" to add "BACKEND_IP" variable. Obtain the backend IP address from Resource Manager Outputs.

OKE Setup

  1. Create ephemeral network definition on Cloud Shell to acccess the private OKE cluster. Alternatively, use OCI Bastion.

  2. Create a namespace for supremo app

    kubectl create ns supremo
    
  3. Create container registry secret to pull container image from OCI Container Registry. Refer to documentation for the values for docker-username, docker-password and docker-server.

    kubectl create secret docker-registry ocir-secret --docker-username='<tenancy_namespace>/<username>' --docker-password='<auth_token>' --docker-server=<region_code>.ocir.io --docker-email='<user_email>' -n supremo
    
  4. Check that secret has been created

    kubectl get secrets -n supremo
    

OCI DevOps Setup

  1. Navigate to OCI DevOps project.

  2. Go to artifact and select "deploy_supremo_react".

  3. Copy and paste the content of deployment_supremo_frontend.yml to the artifact and save it.

  4. Go to Logs and make sure DevOps logs is enabled

Update Code and Run Github Action

  1. Commit and push the code to Github repo main branch.

  2. Observe that Github Action will be triggered and OCI Deployment Pipeline will deploy Supremo frontend to OKE cluster.

  3. Navigate to OCI DevOps project and click on the deployment

  4. Under Deployment Progress, click on the 3 dots of Wait for approval, press Approve.

  5. After deployment is completed, validate that the Supremo app is accessible. Get the public IP of the load balancer by running the command below:

    kubectl get svc -n supremo