{"id":51116605,"url":"https://github.com/oracle-devrel/oci-arch-rubyonrails-mds","last_synced_at":"2026-06-24T22:30:41.915Z","repository":{"id":43266143,"uuid":"399882516","full_name":"oracle-devrel/oci-arch-rubyonrails-mds","owner":"oracle-devrel","description":"Simple Ruby on Rails Application on Oracle Cloud Infrastructure","archived":false,"fork":false,"pushed_at":"2025-01-21T20:07:44.000Z","size":1479,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-04-21T13:45:15.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-devrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T16:14:33.000Z","updated_at":"2025-06-06T01:47:52.000Z","dependencies_parsed_at":"2024-05-16T17:27:33.420Z","dependency_job_id":"41e6dc1a-532a-4236-8371-da1a46c4111f","html_url":"https://github.com/oracle-devrel/oci-arch-rubyonrails-mds","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/oracle-devrel/oci-arch-rubyonrails-mds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Foci-arch-rubyonrails-mds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Foci-arch-rubyonrails-mds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Foci-arch-rubyonrails-mds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Foci-arch-rubyonrails-mds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-devrel","download_url":"https://codeload.github.com/oracle-devrel/oci-arch-rubyonrails-mds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Foci-arch-rubyonrails-mds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T22:30:41.846Z","updated_at":"2026-06-24T22:30:41.902Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby on Rails Sample Architecture\n\n[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_oci-arch-rubyonrails-mds)](https://sonarcloud.io/dashboard?id=oracle-devrel_oci-arch-rubyonrails-mds)\n\n## Introduction\nThis reference architecture provides a scalable deployment of Ruby on Rails (RoR) servers with MySQL databases ready to be used.  It implements the same core infrastructure as the Tomcat MDS Reference architecture https://github.com/oracle-devrel/terraform-oci-arch-tomcat-mds replacing Tomcat with the RoR server ready for development.\n\nTo compliment this there is an additional Reference Architecture to provide a suitable  CI/CD pipeline - https://github.com/oracle-devrel/terraform-oci-arch-ruby-rails-devops-pipeline for the development of Ruby on Rails solutions.\n\n![](./images/architecture-deploy-ruby-on-rails-mds.svg)\n\nFor details of the architecture, see the [Oracle Architecture Center](https://docs.oracle.com/solutions/).\n\n\n\n## Getting Started\nMISSING\n\n# Prerequisites\n\n- Permission to `manage` the following types of resources in your Oracle Cloud Infrastructure tenancy: `vcns`, `internet-gateways`, `route-tables`, `network-security-groups`, `subnets`, `mysql-family`, and `instances`.\n\n  \n\nIf you don't have the required permissions and quota, contact your tenancy administrator. See [Policy Reference](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm), [Service Limits](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm), [Compartment Quotas](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcequotas.htm).\n\n## Deploy Using Oracle Resource Manager\n\n1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home\u0026zipUrl=https://github.com/oracle-devrel/terraform-oci-arch-rubyonrails-mds/releases/latest/download/terraform-oci-arch-tomcat-mds-stack-latest.zip)\n\n    If you aren't already signed in, when prompted, enter the tenancy and user credentials.\n\n2. Review and accept the terms and conditions.\n\n3. Select the region where you want to deploy the stack.\n\n4. Follow the on-screen prompts and instructions to create the stack.\n\n5. After creating the stack, click **Terraform Actions**, and select **Plan**.\n\n6. Wait for the job to be completed, and review the plan.\n\n    To make any changes, return to the Stack Details page, click **Edit Stack**, and make the required changes. Then, run the **Plan** action again.\n\n7. If no further changes are necessary, return to the Stack Details page, click **Terraform Actions**, and select **Apply**. \n\n## Deploy Using the Terraform CLI\n\n### Clone the Module\n\nNow, you'll want a local copy of this repo. You can make that with the commands:\n\n```\n    git clone https://github.com/oracle-devrel/terraform-oci-arch-tomcat-mds.git\n    cd terraform-oci-arch-tomcat-mds\n    ls\n```\n\n### Prerequisites\nFirst off, you'll need to do some pre-deploy setup.  That's all detailed [here](https://github.com/cloud-partners/oci-prerequisites).\n\nCreate a `terraform.tfvars` file, and specify the following variables:\n\n```\n# Authentication\ntenancy_ocid         = \"\u003ctenancy_ocid\u003e\"\nuser_ocid            = \"\u003cuser_ocid\u003e\"\nfingerprint          = \"\u003cfinger_print\u003e\"\n\n# Region\nregion = \"\u003coci_region\u003e\"\n\n# Compartment\ncompartment_ocid = \"\u003ccompartment_ocid\u003e\"\n\n# Number of Ruby On Rails nodes (optional)\nnumberOfNodes = 2\n\n# MySQL DBSystem Admin Password - mandatory\nmysql_db_system_admin_password = \"\u003cmysql_db_system_admin_password\u003e\"\n\n````\n\n### Create the Resources\nRun the following commands:\n\n    terraform init\n    terraform plan\n    terraform apply\n\n\n### Testing your Deployment\nAfter the deployment is finished, you can test that your RoR was deployed correctly . The Terraform output should end with something like this:\n\n![](./images/output.png)\n\nPick up the address of the server from the Terraform output shown with :\n\n````\nrailsapp_url = http://129.153.140.48/\n`````\n\nThen copy it into Web browser. Here is the example of the succesfull outcome:\n\n![](./images/ror-home.png)\n\nAs the load balancer alternates between the 2 Ruby on Rails nodes, the session data should persist.\n\n### Destroy the Deployment\nWhen you no longer need the deployment, you can run this command to destroy the resources:\n\n    terraform destroy\n\n## Notes/Issues\nNone\n\n## URLs\n* Nothing at this time\n\n## Contributing\nThis project is open source.  Please submit your contributions by forking this repository and submitting a pull request!  Oracle appreciates any contributions that are made by the open source community.\n\n## License\nCopyright (c) 2024 Oracle and/or its affiliates.\n\nLicensed under the Universal Permissive License (UPL), Version 1.0.\n\nSee [LICENSE](LICENSE.txt) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Foci-arch-rubyonrails-mds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Foci-arch-rubyonrails-mds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Foci-arch-rubyonrails-mds/lists"}