{"id":16144361,"url":"https://github.com/ryanj/openshift-cartridge-legacydb","last_synced_at":"2025-04-06T20:15:21.188Z","repository":{"id":19523004,"uuid":"22770209","full_name":"ryanj/openshift-cartridge-legacydb","owner":"ryanj","description":"An example cartridge that shows admins how to autoconfigure hosted apps to take advantage of external data sources.","archived":false,"fork":false,"pushed_at":"2014-09-18T20:40:24.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T02:16:33.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-08T20:12:57.000Z","updated_at":"2014-09-16T22:44:37.000Z","dependencies_parsed_at":"2022-08-05T04:30:35.729Z","dependency_job_id":null,"html_url":"https://github.com/ryanj/openshift-cartridge-legacydb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-cartridge-legacydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-cartridge-legacydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-cartridge-legacydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-cartridge-legacydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanj","download_url":"https://codeload.github.com/ryanj/openshift-cartridge-legacydb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543598,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-10T00:12:45.051Z","updated_at":"2025-04-06T20:15:21.167Z","avatar_url":"https://github.com/ryanj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenShift LegacyDB example cartridge\n\nThis OpenShift add-on cartridge is meant to be modified and reused by OpenShift operators in order to provide application configuration settings for accessing an existing network-hosted data service (external to OpenShift).\n\nInstalling your own modified Legacy service cart in an [OpenShift Enterprise](https://www.openshift.com/products/enterprise) or [OpenShift Origin](https://www.openshift.com/products/origin) deployment can help developers autoconfigure their hosted applications to take advantage of existing data services on your network.\n\n## Clone and Modify this cart\nFirst, make a local clone of this repo, and push another clone of the source to a private git repo (hosted inside your firewall).  If you include your service configuration strings in your modified cartridge source, then make sure to keep that source somewhere private.  A privately hosted git repo is ideal here, since it can be accessed by your OpenShift deployment.  You could also try modifying the `bin/setup` script in order to pull configurations strings from a configuration server, or from another resource within your private network.\n\nModify the files in `env` so that they include your service configuration strings.  Then, update `bin/setup`, and `bin/install` to match your changes.\n\nFor detailed instructions see the [OpenShift Cartridge developers guide](http://openshift.github.io/documentation/oo_cartridge_developers_guide.html).\n\nFinally, update the Env var documentation in `metadata/manifest.yml` before adding and committing your changes.  Push your resulting modifications to your private git hosting solution (not to a public git repo, like GitHub).\n\n## Test your changes\nYou can test your modified cartridge before adding it to the list of available cartridge services.\n\nTry creating the following application using the `rhc` command line tool:\n\n    rhc app create myapp python-2.7 http://yourgitserver.com/username/external-service-cart.git\n\nYou can verify that your configuration strings were successfully published into the system environment by connecting to your application using `ssh`:\n\n    rhc ssh myapp \n    env | grep LEGACY\n\n## Cartridge Installation\nTo add your modified cart to your global OpenShift cartridge list, run the following as an OpenShift administrator:\n\n    oo-admin-ctl-cartridge -c import --url https://yourhostedgit.com/username/external-service-cart/master/metadata/manifest.yml --activate\n\nThis should allow users of your OpenShift deployment to see your external service solution as an available configuration option in the system cartridge listing:\n\n    rhc cartridge list\n\nIt should also allow them to request your dataservice configuration strings as a formal cartridge dependency:\n\n    rhc app create myapp python-2.7 legacydb-1.0\n\nOpenShift includes additional tools for helping operators remove, unpublish, or upgrade their OpenShift cartridges:\n\n    oo-admin-ctl-cartridge -c delete --ids legacydb-1.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Fopenshift-cartridge-legacydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanj%2Fopenshift-cartridge-legacydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Fopenshift-cartridge-legacydb/lists"}