{"id":21273312,"url":"https://github.com/sclorg/ruby-ex","last_synced_at":"2025-05-14T05:10:42.162Z","repository":{"id":37932950,"uuid":"42273563","full_name":"sclorg/ruby-ex","owner":"sclorg","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-03T12:13:03.000Z","size":35,"stargazers_count":30,"open_issues_count":6,"forks_count":2376,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-04-13T10:50:05.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/sclorg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-10T22:15:54.000Z","updated_at":"2024-12-03T12:13:10.000Z","dependencies_parsed_at":"2024-12-21T07:00:19.582Z","dependency_job_id":"d912b47f-dc4b-402c-8f9d-8a54bce6d16d","html_url":"https://github.com/sclorg/ruby-ex","commit_stats":{"total_commits":18,"total_committers":16,"mean_commits":1.125,"dds":0.8333333333333334,"last_synced_commit":"589edb77933152fa062a461f3359cd733ac9ddf3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fruby-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fruby-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fruby-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fruby-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/ruby-ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"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-11-21T09:13:30.241Z","updated_at":"2025-05-14T05:10:42.110Z","avatar_url":"https://github.com/sclorg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003c!-- toc --\u003e\n\n- [Ruby Sample App on OpenShift](#ruby-sample-app-on-openshift)\n    + [Installation](#installation)\n    + [Debugging Unexpected Failures](#debugging-unexpected-failures)\n    + [Adding Webhooks and Making Code Changes](#adding-webhooks-and-making-code-changes)\n    + [License](#license)\n\n\u003c!-- tocstop --\u003e\n\nRuby Sample App on OpenShift\n============================\n\nThis is a basic ruby application for OpenShift v3 that you can use as a starting point to develop your own application and deploy it on an [OpenShift](https://github.com/openshift/origin) cluster.\n\nIf you'd like to install it, follow [these directions](https://github.com/sclorg/ruby-ex/blob/master/README.md#installation).  \n\nThe steps in this document assume that you have access to an OpenShift deployment that you can deploy applications on.\n\n### Installation\nThese steps assume your OpenShift deployment has the default set of ImageStreams defined. Instructions for installing the default ImageStreams are available [here](https://docs.okd.io/latest/install_config/imagestreams_templates.html#creating-image-streams-for-openshift-images).  If you are defining the set of ImageStreams now, remember to pass in the proper cluster-admin credentials and to create the ImageStreams in the 'openshift' namespace.\n\n1. Fork a copy of [ruby-ex](https://github.com/sclorg/ruby-ex)\n2. Add a Ruby application from your new repository:\n\n\t\t$ oc new-app openshift/ruby:25~https://github.com/\u003c yourusername \u003e/ruby-ex \n\n3. A build should start immediately.  To run another build, run:\n\n\t\t$ oc start-build ruby-ex\n\n4. Once the build is running, watch your build progress:  \n\n\t\t$ oc logs build/ruby-ex-1\n\n5. Wait for ruby-ex pods to start up (this can take a few minutes):  \n\n\t\t$ oc get pods -w\n\n\n\tSample output:  \n\n\t\tNAME               READY     STATUS       RESTARTS   AGE\n\t\truby-ex-1-build    0/1       ExitCode:0   0          2m\n\t\truby-ex-1-deploy   1/1       Running      0          25s\n\t\truby-ex-1-hrek2    1/1       Running      0          17s\n\n\n6. Check the IP and port the ruby-ex service is running on:  \n\n\t\t$ oc get svc\n\n\n\tSample output:  \n\n\t\tNAME      CLUSTER_IP      EXTERNAL_IP   PORT(S)    SELECTOR                   AGE\n\t\truby-ex   172.30.97.209   \u003cnone\u003e        8080/TCP   deploymentconfig=ruby-ex   2m\n\n\nIn this case, the IP for ruby-ex is 172.30.97.209 and it is on port 8080.  \n*Note*: you can also get this information from the web console.\n\n\n### Debugging Unexpected Failures\n\nReview some of the common tips and suggestions [here](https://github.com/openshift/origin/blob/master/docs/debugging-openshift.md).\n\n### Adding Webhooks and Making Code Changes\nSince OpenShift V3 does not provide a git repository out of the box, you can configure your github repository to make a webhook call whenever you push your code.\n\n1. From the console navigate to your project.  \n2. Click on Browse \u003e Builds  \n3. From the view for your Build click on the link to display your GitHub webhook and copy the url.  \n4. Navigate to your repository on GitHub and click on repository settings \u003e webhooks  \n5. Paste your copied webhook url provided by OpenShift\n6. Change the Content type to `application/json` - Thats it!\n7. After you save your webhook, if you refresh your settings page you can see the status of the ping that Github sent to OpenShift to verify it can reach the server.  \n\n### License\nThis code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to [CC0](http://creativecommons.org/publicdomain/zero/1.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fruby-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fruby-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fruby-ex/lists"}