{"id":13582567,"url":"https://github.com/srvc/ery","last_synced_at":"2025-04-06T14:31:03.255Z","repository":{"id":132708268,"uuid":"135299211","full_name":"srvc/ery","owner":"srvc","description":"🔍 Discover services in local","archived":false,"fork":false,"pushed_at":"2019-09-16T12:51:44.000Z","size":261,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-05T22:41:50.819Z","etag":null,"topics":["cli","dns","local-development","service-discovery"],"latest_commit_sha":null,"homepage":"","language":"Go","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/srvc.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":"2018-05-29T13:21:09.000Z","updated_at":"2021-08-13T04:25:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4f4f008-9431-48e5-ac31-0d21524b56e9","html_url":"https://github.com/srvc/ery","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srvc%2Fery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srvc%2Fery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srvc%2Fery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srvc%2Fery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srvc","download_url":"https://codeload.github.com/srvc/ery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495796,"owners_count":20948109,"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":["cli","dns","local-development","service-discovery"],"created_at":"2024-08-01T15:02:51.058Z","updated_at":"2025-04-06T14:31:02.889Z","avatar_url":"https://github.com/srvc.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ery\n[![Build Status](https://travis-ci.com/srvc/ery.svg?branch=master)](https://travis-ci.com/srvc/ery)\n[![Go Report Card](https://goreportcard.com/badge/github.com/srvc/ery)](https://goreportcard.com/report/github.com/srvc/ery)\n[![license](https://img.shields.io/github/license/srvc/ery.svg)](./LICENSE)\n[![Go project version](https://badge.fury.io/go/github.com%2Fsrvc%2Fery.svg)](https://badge.fury.io/go/github.com%2Fsrvc%2Fery)\n\n:mag: Discover services in local.\n\n[![asciicast](https://asciinema.org/a/212433.svg)](https://asciinema.org/a/212433)\n\n\n## Usage\n### For local processes\nYou should create a configuration file. you can generate it via `ery init` command.\n\n```sh\n# when your current working directory is \"~/src/github.com/yourname/awesomeapp\",\n# a default hostname uses `awesomeapp.yourname.ery`.\nery init\n```\n\nany commands prefixed by `ery` sets `PORT` to environment variables at random.\n\n```sh\nery rails s\n```\n\n### For docker containers\n`ery` reads exposed ports automatically. You have only to set a hostname through label of the container.\n\n```sh\n# you can access the rails server with \"http://yourapp.ery\"\n$ docker run \\\n  --rm \\\n  --label tools.srvc.ery.hostname=yourapp.ery \\\n  -p 80:12345 \\\n  yourapp \\\n  rails s -p 80\n```\n\n\n## Installation\n1. Install `ery`\n    - linux\n        - ```\n          curl -Lo ery https://github.com/srvc/ery/releases/download/v0.0.1/ery_linux_amd64 \u0026\u0026 chmod +x ery \u0026\u0026 sudo mv ery /usr/local/bin\n          ```\n    - macOS\n        - ```\n          curl -Lo ery https://github.com/srvc/ery/releases/download/v0.0.1/ery_darwin_amd64 \u0026\u0026 chmod +x ery \u0026\u0026 sudo mv ery /usr/local/bin\n          ```\n    - build yourself\n        - `go get github.com/srvc/ery/cmd/ery`\n1. Configure nameserver\n    - linux\n        - `sudo sh -c 'echo \"nameserver 127.0.0.1\" \u003e\u003e /etc/resolv.conf'`\n    - macOS\n        - `sudo sh -c 'echo \"nameserver 127.0.0.1\" \u003e\u003e /etc/resolver/ery'`\n        - if you wanna use other TLDs, you should replace \"ery\" to others on above command\n1. Add loopback address aliases (macOS only)\n    - `for i in $(seq 1 255); do /sbin/ifconfig lo0 alias 127.0.0.$i; done`\n1. Register as a startup process\n    - `sudo ery daemon install`\n    - `sudo ery daemon start`\n\n\n## Author\n- Masayuki Izumi ([@izumin5210](https://github.com/izumin5210))\n\n\n## License\nery is licensed under the MIT License. See [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvc%2Fery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrvc%2Fery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrvc%2Fery/lists"}