{"id":15292901,"url":"https://github.com/snowdrop/rest-http-example","last_synced_at":"2025-04-13T12:14:00.390Z","repository":{"id":40373733,"uuid":"73190379","full_name":"snowdrop/rest-http-example","owner":"snowdrop","description":"Quickstart to expose a REST Greeting endpoint using SpringBoot and Apache Tomcat in embedded mode","archived":false,"fork":false,"pushed_at":"2023-11-30T12:06:10.000Z","size":1583,"stargazers_count":10,"open_issues_count":1,"forks_count":102,"subscribers_count":5,"default_branch":"sb-2.7.x","last_synced_at":"2025-04-13T12:13:54.920Z","etag":null,"topics":["booster","example","kubernetes","openshift","rest","rhoar","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"XSLT","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/snowdrop.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}},"created_at":"2016-11-08T13:51:26.000Z","updated_at":"2023-10-27T19:41:59.000Z","dependencies_parsed_at":"2023-02-14T06:40:26.372Z","dependency_job_id":"bd1f7f6e-1789-4bb3-8af4-e70d549817c5","html_url":"https://github.com/snowdrop/rest-http-example","commit_stats":null,"previous_names":["obsidian-toaster/quick_rest_springboot-tomcat"],"tags_count":280,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Frest-http-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Frest-http-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Frest-http-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Frest-http-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdrop","download_url":"https://codeload.github.com/snowdrop/rest-http-example/tar.gz/refs/heads/sb-2.7.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"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":["booster","example","kubernetes","openshift","rest","rhoar","spring-boot"],"created_at":"2024-09-30T16:31:36.480Z","updated_at":"2025-04-13T12:14:00.359Z","avatar_url":"https://github.com/snowdrop.png","language":"XSLT","readme":"# REST HTTP Spring Boot Example\n\nhttps://appdev.openshift.io/docs/spring-boot-runtime.html#mission-http-api-spring-boot\n\n## Table of Contents\n\n* [REST HTTP Spring Boot Example](#rest-http-spring-boot-example)\n    * [Prerequisites](#prerequisites)\n    * [Deploying application on OpenShift using Dekorate](#deploying-application-on-openshift-using-dekorate)\n    * [Deploying application on OpenShift using Helm](#deploying-application-on-openshift-using-helm)\n    * [Deploying application on Kubernetes using Helm](#deploying-application-on-kubernetes-using-helm)\n    * [Running Tests on OpenShift using Dekorate](#running-tests-on-openshift-using-dekorate)\n    * [Running Tests on OpenShift using S2i from Source](#running-tests-on-openshift-using-s2i-from-source)\n    * [Running Tests on OpenShift using Helm](#running-tests-on-openshift-using-helm)\n    * [Running Tests on Kubernetes with External Registry](#running-tests-on-kubernetes-with-external-registry)\n    * [Running Tests on Kubernetes with Helm](#running-tests-on-kubernetes-using-helm)\n\n## Prerequisites\n\n- JDK 11+ installed with JAVA_HOME configured appropriately\n\n## Deploying application on OpenShift using Dekorate\n\n```\nmvn clean verify -Popenshift -Ddekorate.deploy=true\n```\n\n## Deploying application on OpenShift using Helm\n\nFirst, make sure you have installed [the Helm command line](https://helm.sh/docs/intro/install/) and connected/logged to a kubernetes cluster.\n\nThen, you need to install the example by doing:\n\n```\nhelm install rest-http ./helm --set app.route.expose=true --set app.s2i.source.repo=https://github.com/snowdrop/rest-http-example --set app.s2i.source.ref=\u003cbranch-to-use\u003e\n```\n\n**note**: Replace `\u003cbranch-to-use\u003e` with one branch from `https://github.com/snowdrop/rest-http-example/branches/all`.\n\nAnd to uninstall the chart, execute:\n\n```\nhelm uninstall rest-http\n```\n\n## Deploying application on Kubernetes using Helm\n\nRequirements:\n- Have installed [the Helm command line](https://helm.sh/docs/intro/install/)\n- Have connected/logged to a kubernetes cluster\n\nYou need to install the example by doing:\n\n```\nhelm install rest-http ./helm --set app.ingress.host=\u003cyour k8s domain\u003e\n```\n\nAnd to uninstall the chart, execute:\n\n```\nhelm uninstall rest-http\n```\n\n## Running Tests on OpenShift using Dekorate\n\n```\n./run_tests_with_dekorate_in_ocp.sh\n```\n\nAlternativelly, tests can be executed against a specific Spring Boot or Dekorate version by passing the\nversion as a `-D\u003cvariable property name\u003e=value` parameter. For instance overriding both the Spring Boot and the Dekorate versions using their corresponding version properties is done the following way:\n\n```bash\n./run_tests_with_dekorate_in_ocp.sh -Dspring-boot.version=2.7.3 -Ddekorate.version=2.11.1\n```\n\n## Running Tests on OpenShift using S2i from Source\n\n```\n./run_tests_with_s2i.sh\n```\n\nThis script can take up to 3 parameters which are:\n\n* `--repository-url`: repository to use to source the images from\n* `--branch-to-test`: branch to use to source the images from\n* `--maven-settings`: custom maven settings file\n\n```bash\n./run_tests_with_s2i.sh --repository-url \"https://github.com/snowdrop/rest-http-example\" --branch-to-test branch-to-test --maven-settings \"${HOME}/.m2/my-custom-maven-settings.xml\"\n```\n\n## Running Tests on OpenShift using Helm\n\n```\n./run_tests_with_helm_in_ocp.sh\n```\n\nThis script can take 2 parameters referring to the repository and the branch to use to source the images from.\n\n```bash\n./run_tests_with_helm_in_ocp.sh \"https://github.com/snowdrop/rest-http-example\" branch-to-test\n```\n\n## Running Tests on Kubernetes with External Registry\n\n```\nmvn clean verify -Pkubernetes,kubernetes-it -Ddekorate.docker.registry=\u003curl to your registry, example: quay.io\u003e -Ddekorate.push=true\n```\n\n## Running Tests on Kubernetes using Helm\n\nFirst, you need to create the k8s namespace:\n\n```\nkubectl create namespace \u003cthe k8s namespace\u003e\n```\n\nThen, run the tests by specifying the container registry and the kubernetes namespace:\n```\n./run_tests_with_helm_in_k8s.sh \u003cyour container registry: for example \"quay.io/user\"\u003e \u003cthe k8s namespace\u003e\n```\n\nFor example:\n\n```\n./run_tests_with_helm_in_k8s.sh \"quay.io/user\" \"myNamespace\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdrop%2Frest-http-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdrop%2Frest-http-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdrop%2Frest-http-example/lists"}