{"id":21565252,"url":"https://github.com/mastercloudapps-projects/your-race","last_synced_at":"2025-08-25T12:07:26.641Z","repository":{"id":59998620,"uuid":"523823101","full_name":"MasterCloudApps-Projects/your-race","owner":"MasterCloudApps-Projects","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T19:25:23.000Z","size":79052,"stargazers_count":4,"open_issues_count":14,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T13:26:37.713Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MasterCloudApps-Projects.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}},"created_at":"2022-08-11T18:08:37.000Z","updated_at":"2022-11-05T01:15:59.000Z","dependencies_parsed_at":"2023-01-27T05:31:24.213Z","dependency_job_id":null,"html_url":"https://github.com/MasterCloudApps-Projects/your-race","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MasterCloudApps-Projects/your-race","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterCloudApps-Projects%2Fyour-race","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterCloudApps-Projects%2Fyour-race/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterCloudApps-Projects%2Fyour-race/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterCloudApps-Projects%2Fyour-race/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasterCloudApps-Projects","download_url":"https://codeload.github.com/MasterCloudApps-Projects/your-race/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterCloudApps-Projects%2Fyour-race/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272063205,"owners_count":24866673,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"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":"2024-11-24T10:19:00.509Z","updated_at":"2025-08-25T12:07:26.599Z","avatar_url":"https://github.com/MasterCloudApps-Projects.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Your Race\n\nRafael Gómez Olmedo, Raquel Toscano Marchena.\nhttps://github.com/MasterCloudApps-Projects/your-race\n\n### Overview\nYour Race is a DevOps PoC (Proof of concept) for building an scalable platform for managing entry assignment in highly demanded races, like the New York City Marathon or _101 Km de Ronda_ (Spain).\n\nIn this repository you will find:\n- The codebase.\n- Database scripts for generate testing data.\n- Scripts to run performance tests in [Artillery](artillery.io).\n\n### Workflow\n\n![\"Your Race DevOps workflow\"](./docs/images/your-race-devops-workflow.png)\n\n\n## Setup\n\n### System requirements\nJava 17, Maven, npm, Artillery, Docker, Docker compose, kubectl, Minikube, Helm, PostgreSQL cli.\n\nCheck out information in [Local Dev Setup](./docs/local-dev-setup.md) for local development setup.\n\n### K8s Setup + prometheus helm\n\n```sh\nminikube start \\\n--cpus 4 --memory 16g \\\n\nhelm repo add prometheus-community https://prometheus-community.github.io/helm-charts\nhelm repo add stable https://charts.helm.sh/stable\nhelm repo update\nhelm install prometheus prometheus-community/prometheus\n```\nReference: [1] \n\n### Install your-race services\n```sh\nkubectl apply -f k8s/manifests-operator/\n```\n\n### Install Istio:\n\n```sh\nminikube addons enable metrics-server\nminikube addons enable istio-provisioner\nminikube addons enable istio\n\n\ncd k8s\ncurl -L https://istio.io/downloadIstio | sh -\ncd istio-1.15.3\nexport PATH=$PWD/bin:$PATH\nistioctl install --set profile=demo -y\nkubectl label namespace default istio-injection=enabled\n```\n\n#### Istio gateway deployment\n\n```sh\nkubectl apply -f k8s/istio/\n```\n\n#### Find out Istio gateway\n\n```sh\nexport INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name==\"http2\")].nodePort}')\nexport INGRESS_HOST=$(minikube ip)\necho \"http://$INGRESS_HOST:$INGRESS_PORT\"\n```\n\n### Artillery\n\n```sh\ncd performance\nartillery run artillery{XXX}Test.yml\n```\n\n### JMeter\n\njmeter \u003e [Test Plan.jmx](/performance/Test%20Plan.jmx)\n\n### Grafana\n\nImport Dashboard:\n- 9628 for Postgres\n- 4701 Micrometer JVM\n- 6417 K8s Cluster\n- import [Personalized Dashboard](/grafana/personalized.json)\n\n\n### Feature Toggle \n\nConsole:\n```\nhttp://localhost/togglz-console/index\n``` \nFeature toggle list:\n- \"Use RabbitMQ producer\".\n\n\n### Postman Collection\n[Postman Collection](/your-race/your-race.postman_collection.json).\n\n\n## How to run a performance test with Artillery\n\nCheckout step-by-step walkthrough in [How to run a test](./docs/how-to-run-a-test.md).\n\nIn [How to generate data for Testing](./docs/how-to-generate-data-for-testing.md) you can find out how to generate test data.\n\n\n## References\n\n- [1] https://refactorizando.com/autoescalado-prometheus-spring-boot-kubernetes/\n- https://jschmitz.dev/posts/testcontainers_how_to_use_them_in_your_spring_boot_integration_tests/\n- [Error types](./docs/error-types.md)\n___\n## :es: Documentación de Entrega TFM Máster CloudApps\n\n### Memoria\n\nhttps://docs.google.com/document/d/17cHzdHlvV2ujh2DzF1rlHlmz_qfKArxPLsnF-EycibQ/edit?usp=sharing\n\n### Presentación\nhttps://docs.google.com/presentation/d/1F3jRpaACY1rKTt9T7lfJ5u6ywyYn1eU1fU61MXd-buE/edit?usp=sharing \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastercloudapps-projects%2Fyour-race","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastercloudapps-projects%2Fyour-race","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastercloudapps-projects%2Fyour-race/lists"}