{"id":18745777,"url":"https://github.com/moshloop/junit-xml","last_synced_at":"2025-11-23T14:30:23.455Z","repository":{"id":138334193,"uuid":"137796371","full_name":"moshloop/junit-xml","owner":"moshloop","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-18T19:27:18.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T20:26:27.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/moshloop.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-18T19:21:44.000Z","updated_at":"2018-06-18T19:26:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c636c77-0bf9-4a33-b8b7-384dc27d967c","html_url":"https://github.com/moshloop/junit-xml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fjunit-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fjunit-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fjunit-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fjunit-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshloop","download_url":"https://codeload.github.com/moshloop/junit-xml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627234,"owners_count":19670844,"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":[],"created_at":"2024-11-07T16:19:38.100Z","updated_at":"2025-11-23T14:30:23.393Z","avatar_url":"https://github.com/moshloop.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"waiter ![version v0.1.0](https://img.shields.io/badge/version-v0.1.0-brightgreen.svg) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)\n=============\n\nUtility to wait for services to be available from (TCP, HTTP(s), file, socket) - Most of the code is courtesy of [jwilder/dockerize](https://github.com/jwilder/dockerize)\n\n\n```shell\nUsage: waiter [options] [command]\n\nUtility to wait until a condition is present.\nOptions:\n  -header value\n      HTTP headers, colon separated. e.g \"Accept-Encoding: gzip\". Can be passed multiple times\n  -interval duration\n      Duration to wait before retrying (default 1s)\n  -skip-redirect\n      Skip HTTP redirects\n  -skip-verify\n      Skip SSL certificate verification\n  -status-code value\n      HTTP code to wait for e.g. \"-status-code 302  -status-code 200\". Can be passed multiple times. (If not specified -wait returns on 200 \u003e= x \u003c 300)\n  -timeout duration\n      Host wait timeout (default 10s)\n  -version\n      show version\n  -wait value\n      Host (tcp/tcp4/tcp6/http/https/unix/file) to wait for before this container starts. Can be passed multiple times. e.g. tcp://db:5432\n```\n\n## Installation\n\nDownload the latest version in your container:\n\n* [linux/amd64](https://github.com/moshloop/waiter/releases/download/v0.1.0/waiter-linux-amd64-v0.1.0.tar.gz)\n* [alpine/amd64](https://github.com/moshloop/waiter/releases/download/v0.1.0/waiter-alpine-linux-amd64-v0.1.0.tar.gz)\n* [darwin/amd64](https://github.com/moshloop/waiter/releases/download/v0.1.0/waiter-darwin-amd64-v0.1.0.tar.gz)\n\n\n## Waiting for other dependencies\n\nIt is common when using tools like [Docker Compose](https://docs.docker.com/compose/) to depend on services in other linked containers, however oftentimes relying on [links](https://docs.docker.com/compose/compose-file/#links) is not enough - whilst the container itself may have _started_, the _service(s)_ within it may not yet be ready - resulting in shell script hacks to work around race conditions.\n\nwaiter gives you the ability to wait for services on a specified protocol (`file`, `tcp`, `tcp4`, `tcp6`, `http`, `https` and `unix`) before starting your application:\n\n```\n$ waiter -wait tcp://db:5432 -wait http://web:80 -wait file:///tmp/generated-file\n```\n\n\nHttp headers can be specified for http/https protocols:\n\n```\n$ waiter -wait http://web:80 -wait-http-header \"Authorization:Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\"\n```\n\n### Timeout\n\nYou can optionally specify how long to wait for the services to become available by using the `-timeout #` argument (Default: 10 seconds).  If the timeout is reached and the service is still not available, the process exits with status code 1.\n\n```\n$ waiter -wait tcp://db:5432 -wait http://web:80 -timeout 10s\n```\n\nSee [this issue](https://github.com/docker/compose/issues/374#issuecomment-126312313) for a deeper discussion, and why support isn't and won't be available in the Docker ecosystem itself.\n\n## License\n\nMIT\n\n\n[go.string.Split]: https://golang.org/pkg/strings/#Split\n[go.string.Replace]: https://golang.org/pkg/strings/#Replace\n[go.url.Parse]: https://golang.org/pkg/net/url/#Parse\n[go.url.URL]: https://golang.org/pkg/net/url/#URL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fjunit-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshloop%2Fjunit-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fjunit-xml/lists"}