{"id":21108447,"url":"https://github.com/zalopay-oss/docker-grpc-gateway","last_synced_at":"2025-07-08T16:32:06.180Z","repository":{"id":47573978,"uuid":"191480612","full_name":"zalopay-oss/docker-grpc-gateway","owner":"zalopay-oss","description":" Build grpc-gateway with docker","archived":false,"fork":false,"pushed_at":"2019-08-26T00:19:36.000Z","size":55,"stargazers_count":42,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T19:53:54.742Z","etag":null,"topics":["docker","docker-grpc-gateway","gateway","grpc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zalopay-oss.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}},"created_at":"2019-06-12T02:12:09.000Z","updated_at":"2024-06-21T19:53:54.742Z","dependencies_parsed_at":"2022-08-12T13:40:58.892Z","dependency_job_id":null,"html_url":"https://github.com/zalopay-oss/docker-grpc-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalopay-oss%2Fdocker-grpc-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalopay-oss%2Fdocker-grpc-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalopay-oss%2Fdocker-grpc-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalopay-oss%2Fdocker-grpc-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zalopay-oss","download_url":"https://codeload.github.com/zalopay-oss/docker-grpc-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225449610,"owners_count":17476095,"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":["docker","docker-grpc-gateway","gateway","grpc"],"created_at":"2024-11-20T00:46:34.427Z","updated_at":"2024-11-20T00:46:34.959Z","avatar_url":"https://github.com/zalopay-oss.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker grpc-gateway\n\n- [Docker grpc-gateway](#Docker-grpc-gateway)\n  - [Overview](#Overview)\n  - [Architecture Demo](#Architecture-Demo)\n  - [Requirement](#Requirement)\n  - [Installation](#Installation)\n  - [Build](#Build)\n  - [Run](#Run)\n  - [Test](#Test)\n  - [Contribution](#Contribution)\n  - [Acknowledgments](#Acknowledgments)\n\n## Overview\n\nBuilding grpc-gateway has caused many difficulties for developers such as the installation of the Golang programming environment, protobuf, how to build,.... There is a simpler, less time-consuming solution that uses `Docker to build grpc-gateway`.\n\nIn this project, I would like to introduce the solution to use docker and demo how to use it. For more details, see [here](https://medium.com/zalopay-engineering/docker-grpc-gateway-e2efbdcfe5c-e2efbdcfe5c).\n\n## Architecture Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./images/model.png\"/\u003e\n\u003c/p\u003e\n\n## Requirement\n\n- Docker\n  \n## Installation\n\nInstall Docker:\n\n- On [Ubuntu](https://docs.docker.com/install/linux/docker-ce/ubuntu/).\n- On [MacOS](https://docs.docker.com/docker-for-mac/install/).\n- On [Window](https://docs.docker.com/docker-for-windows/install/).\n  \n## Build\n\n```sh\n#clone project\n$ git clone https://github.com/zalopay-oss/docker-grpc-gateway.git\n```\n\n## Run\n\n- Run grpc-gateway\n  \n```sh\n$ cd ./gateway/api/proto/gen/grpc-gateway\n\n#docker build -t grpc-gateway directory_contains_dockerfile\n$ docker build -t grpc-gateway .\n\n#run image\n$ docker run  -p 9000:9000 --rm --link service-ping grpc-gateway\n```\n\n- Run service\n  \n```sh\n$ cd ./service\n\n#build image\n$ docker build -t service-ping .\n\n#run image\n$ docker run  --name service-ping --rm service-ping\n```\nOr just use `docker-compose` for above step:\n```shell script\n$ docker-compose up -d --build\n```\n## Test\n\n- Test ServiceA\n  \n```sh\n$ curl -X GET \"http://localhost:9000/core/serviceA/ping/999999\"\n{\"timestamp\":\"1560311912214\",\"serviceName\":\"service A\"}\n```\n\n- Test ServiceB\n\n```sh\ncurl -X GET \"http://localhost:9000/core/serviceB/ping/999999\"\n{\"timestamp\":\"1560312187849\",\"serviceName\":\"service B\"}\n```\n\n## Contribution\n\nIf you find anything wrong or would like to contribute in any way, feel free to create a pull request/open an issue/send me a message. Any comments are welcome!\n\n## Acknowledgments\n\n- Thanks [Andy](https://github.com/anhldbk) for supporting me during the implementation project.\n- Thanks [namely/docker-proto](https://github.com/namely/docker-protoc) for the open source is great.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalopay-oss%2Fdocker-grpc-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzalopay-oss%2Fdocker-grpc-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalopay-oss%2Fdocker-grpc-gateway/lists"}