{"id":28420661,"url":"https://github.com/redhat-developer/s2i-dotnetcore-persistent-ex","last_synced_at":"2025-07-19T09:36:53.227Z","repository":{"id":41333465,"uuid":"220235607","full_name":"redhat-developer/s2i-dotnetcore-persistent-ex","owner":"redhat-developer","description":"Example application with database backend for the OpenShift s2i-dotnetcore builder","archived":false,"fork":false,"pushed_at":"2024-11-18T13:46:27.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":32,"subscribers_count":7,"default_branch":"dotnet-9.0","last_synced_at":"2025-06-26T17:51:41.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2019-11-07T12:47:30.000Z","updated_at":"2024-10-03T20:01:47.000Z","dependencies_parsed_at":"2024-11-18T14:45:45.477Z","dependency_job_id":"4a9aea40-4227-46bb-bf30-182333c9f1c5","html_url":"https://github.com/redhat-developer/s2i-dotnetcore-persistent-ex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer/s2i-dotnetcore-persistent-ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fs2i-dotnetcore-persistent-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fs2i-dotnetcore-persistent-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fs2i-dotnetcore-persistent-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fs2i-dotnetcore-persistent-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer","download_url":"https://codeload.github.com/redhat-developer/s2i-dotnetcore-persistent-ex/tar.gz/refs/heads/dotnet-9.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fs2i-dotnetcore-persistent-ex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265910180,"owners_count":23847518,"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":"2025-06-05T03:49:00.995Z","updated_at":"2025-07-19T09:36:53.188Z","avatar_url":"https://github.com/redhat-developer.png","language":"C#","readme":"# .NET Core Sample App for OpenShift\n\nThis repository contains an example .NET Core application that can be deployed on OpenShift.\n\nThe example is a simple CRUD web application that persists information in a database.\n\nThe example is meant to be built and run with the [s2i-dotnetcore](https://github.com/redhat-developer/s2i-dotnetcore) builder\nimages. The branches of this repository correspond to versions of the s2i-dotnetcore images.\n\n## Deploying the application\n\nYou can deploy the application using the OpenShift client (`oc`) with the following commands:\n\n```sh\n\n# Make sure .NET image stream is available\noc describe is dotnet\n\n## If not presented, install it.\noc create -f https://raw.githubusercontent.com/redhat-developer/s2i-dotnetcore/main/dotnet_imagestreams.json\n\n# Create a new OpenShift project\n$ oc new-project mydemo\n\n# Add the database\n$ oc new-app postgresql-ephemeral\n\n# Add the .NET Core application\n$ oc new-app dotnet:9.0-ubi8~https://github.com/redhat-developer/s2i-dotnetcore-persistent-ex#dotnet-9.0 --context-dir app\n\n# Add envvars from the the postgresql secret, and database service name envvar.\n$ oc set env deployment/s2i-dotnetcore-persistent-ex --from=secret/postgresql -e database-service=postgresql\n\n# Make the .NET Core application accessible externally and show the url\n$ oc expose service s2i-dotnetcore-persistent-ex\n$ oc get route s2i-dotnetcore-persistent-ex\n```\n\n## Copyright and License\n\nCopyright 2022 by Red Hat, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this package except in compliance with the License (see the `LICENSE` file\nincluded in this distribution). You may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer%2Fs2i-dotnetcore-persistent-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer%2Fs2i-dotnetcore-persistent-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer%2Fs2i-dotnetcore-persistent-ex/lists"}