{"id":15925958,"url":"https://github.com/iljapavlovs/country-phone","last_synced_at":"2026-04-15T10:37:43.744Z","repository":{"id":186401379,"uuid":"211898867","full_name":"iljapavlovs/country-phone","owner":"iljapavlovs","description":"Spring Boot, Cloud Native, Kubernetes, Performance Testing, Heroku, Junit5, Gradle, Rabbitmq, Travis, Jenkins, spotless","archived":false,"fork":false,"pushed_at":"2020-10-20T20:29:34.000Z","size":370,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T02:26:10.936Z","etag":null,"topics":["ampq","docker","docker-hub","gradle","heroku","jenkins","junit5","kubernetes","performance-testing","rabbitmq","spotless","spring-boot","taurus","travis-ci","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"Java","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/iljapavlovs.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}},"created_at":"2019-09-30T15:59:57.000Z","updated_at":"2023-04-11T15:27:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c63f4fff-ed9c-4eaf-a4b0-05975df0bff9","html_url":"https://github.com/iljapavlovs/country-phone","commit_stats":null,"previous_names":["iljapavlovs/country-phone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljapavlovs%2Fcountry-phone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljapavlovs%2Fcountry-phone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljapavlovs%2Fcountry-phone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljapavlovs%2Fcountry-phone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iljapavlovs","download_url":"https://codeload.github.com/iljapavlovs/country-phone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247007712,"owners_count":20868260,"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":["ampq","docker","docker-hub","gradle","heroku","jenkins","junit5","kubernetes","performance-testing","rabbitmq","spotless","spring-boot","taurus","travis-ci","vanilla-javascript"],"created_at":"2024-10-06T22:20:48.641Z","updated_at":"2026-04-15T10:37:38.687Z","avatar_url":"https://github.com/iljapavlovs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# country-phone \n[![Build Status](https://travis-ci.org/iljapavlovs/country-phone.svg?branch=master)](https://travis-ci.org/iljapavlovs/country-phone)\n[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=iljapavlovs_country-phone\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=iljapavlovs_country-phone)\n\nhttps://country-phone.herokuapp.com/\n\n## Tests\n### Running tests locally\n\nUnit Tests\n```\n./gradlew clean test\n```\n\nIntegration Tests\n```\n./gradlew clean intTest\n```\n\nUnit, Int tests and Code Coverage report\n```\n./gradlew clean build jacocoTestReport\n```\n\n## Building and running application\n```\n./gradlew build \u0026\u0026 java -jar build/libs/country-phone-0.0.1-SNAPSHOT.jar\n```\n\n## Docker\n### Building Docker Image\n```bash\n./gradlew clean build \u0026\u0026 docker build -t country-phone .\n```\nBuild jar first and create an image out of it\n### Running Docker Image\n```\ndocker run -e \"SPRING_PROFILES=local\" -p 8080:8080 country-phone\n```\n\nspecify `-d` in order to run in detached mode\n\n### Building and Running via Docker Compose\n```\ndocker-compose up\n```\n\n### Pushing images to DockerHub\n\n1. Login with your Docker Id `docker login`, create a Docker Hub repo with the same title\n2. Tag the image (To push a local image to docker registry, you need to associate the local image with a repository on the docker registry. The notation for the repository on docker registry is `username/repository:tag`)\n\nNeed to push 2 times - with the tag and tag = latest\n```bash\ndocker tag country-phone ilja07/country-phone:0.0.1-SNAPSHOT\n```\n\n```bash\ndocker tag country-phone ilja07/country-phone:latest\n```\n3. Push the image to docker hub\n```bash\ndocker push ilja07/country-phone:0.0.1-SNAPSHOT\n```   \n\n```bash\ndocker push ilja07/country-phone:latest\n```  \n## Kubernetes\n```\nminikube start\nkubectl create deployment country-phone --image=ilja07/country-phone\n```\nOR \n```\nkubectl create -f k8s/manifest.yml \n```\nOR\n```\nkubectl apply -f k8s/manifest.yml \n```\ncreate vs apply -\u003e https://stackoverflow.com/questions/47369351/kubectl-apply-vs-kubectl-create\n\n\nVerify status of pods\n```\nkubectl get pods\n```\n\nGet all Kubernetes resources info - shows all pods, replicasets, deployments, services, etc\n```\nkubectl get all\n```\n\nIf POD is running, then open app locally\n1. find out cluster's ip\n```\nminikube ip\n```\nOR\n```\nminikube service country-phone-service --url\n```\n2. open app\n```\nhttp://\u003cminikube_ip\u003e:30001/\n```\n\n### [Update Deployment](https://dev.to/itnext/stateless-apps-in-kubernetes-beyond-pods-4p52)\n\nIn case when you need to update some thing\n1. change the specification file\n2. apply the changes to Kubernetes master\n```\nkubectl apply -f k8s/manifest.yml\n```\n\n### Connect to Pod and Container\nIn this case, our Pod has a single container, so we don't need to specify one\n```\nkubectl exec pod1 -it -- env | grep ENVVAR\n```\n### Troubleshooting\n```\nkubectl logs \u003cPOD_NAME\u003e\n```\n```\nkubectl describe pods \u003cPOD_NAME\u003e\n```\n\n## Performance testing\n```\ndocker run -it --rm -v  /\u003cfullpath\u003e/performancetesting/configs:/bzt-configs -v/ /\u003cfullpath\u003e/performancetesting/artifacts:/tmp/artifacts blazemeter/taurus config.yaml\n```\n\nOR just install Taurus locally - https://gettaurus.org/docs/Installation/\n```\nbrew install bzt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filjapavlovs%2Fcountry-phone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filjapavlovs%2Fcountry-phone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filjapavlovs%2Fcountry-phone/lists"}