{"id":16703306,"url":"https://github.com/krystianity/cloudrun-test","last_synced_at":"2025-07-13T08:09:58.580Z","repository":{"id":85215133,"uuid":"208772141","full_name":"krystianity/cloudrun-test","owner":"krystianity","description":"Rust :crab: Google Cloud Run Demo","archived":false,"fork":false,"pushed_at":"2019-09-18T13:29:10.000Z","size":33,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T05:05:08.605Z","etag":null,"topics":["actix-web","cloud","demo","docker","google","run","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krystianity.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}},"created_at":"2019-09-16T10:25:44.000Z","updated_at":"2022-05-04T15:29:15.000Z","dependencies_parsed_at":"2023-07-29T09:46:01.245Z","dependency_job_id":null,"html_url":"https://github.com/krystianity/cloudrun-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krystianity/cloudrun-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fcloudrun-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fcloudrun-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fcloudrun-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fcloudrun-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krystianity","download_url":"https://codeload.github.com/krystianity/cloudrun-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fcloudrun-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265108514,"owners_count":23712466,"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":["actix-web","cloud","demo","docker","google","run","rust"],"created_at":"2024-10-12T19:07:47.678Z","updated_at":"2025-07-13T08:09:58.550Z","avatar_url":"https://github.com/krystianity.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Run Test with minimal Rust (actix) Demo Server\n\nServer is based on actix and container with fully static binary release\nwill be about 6,5 MB. It exposes 3 endpoints:\n\n* `GET /`\n* `GET /again`\n* `POST /again`\n\n## Dependencies\n\n* Docker\n* Rust\n* Google Cloud Project\n* gcloud CLI\n\n## How to build\n\n1. Clone this repository `git clone git@github.com:krystianity/cloudrun_test.git`\n2. Run `./build-musl-release.sh` to build the static binary release\n3. Go into `./build-container.sh` and replace `${GOOGLE_PROJECT_ID}` with your project's id.\nRun `./build-container.sh` to build the container.\n\n## How to deploy to Google Cloud Run\n\nMake sure to replace `${GOOGLE_PROJECT_ID}` with your project's id in these commands.\nAnd also update your local docker settings via `gcloud auth configure-docker`.\n\nPlease note that we are not naming the Cloud Run service `cloudrun_test` but actually `cloudrun-test`\nbecause Cloud Run does not allow the `_` character for service names.\n\n4. Push to google cloud image registry `docker push eu.gcr.io/${GOOGLE_PROJECT_ID}/cloudrun_test`\n5. Deploy image on cloud run `gcloud beta run deploy cloudrun-test --allow-unauthenticated --image eu.gcr.io/${GOOGLE_PROJECT_ID}/cloudrun_test --platform managed --project ${GOOGLE_PROJECT_ID} --region europe-west1`\n\n## Integration Tests with Github Actions\n\nThis demo also shows a way to run Rust integration tests with Github Actions.\nTake a look at `.github/workflows/ci.yml` for the workflow description and at\n`tests/` to see how it works.\n\nRun the tests via `cargo test`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrystianity%2Fcloudrun-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrystianity%2Fcloudrun-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrystianity%2Fcloudrun-test/lists"}