{"id":19149963,"url":"https://github.com/andreiavrammsd/wait-for-it","last_synced_at":"2026-04-20T04:02:14.500Z","repository":{"id":92015783,"uuid":"77484006","full_name":"andreiavrammsd/wait-for-it","owner":"andreiavrammsd","description":"Run a command only when port on host is available","archived":false,"fork":false,"pushed_at":"2019-08-26T08:14:25.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T20:42:05.497Z","etag":null,"topics":["alpine","docker","linux","ubuntu","wait-for-it"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/andreiavrammsd.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":"2016-12-27T21:35:00.000Z","updated_at":"2020-07-20T05:33:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"47e83fbd-88a6-47d7-ab69-7f5136744617","html_url":"https://github.com/andreiavrammsd/wait-for-it","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreiavrammsd/wait-for-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fwait-for-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fwait-for-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fwait-for-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fwait-for-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreiavrammsd","download_url":"https://codeload.github.com/andreiavrammsd/wait-for-it/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fwait-for-it/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alpine","docker","linux","ubuntu","wait-for-it"],"created_at":"2024-11-09T08:10:13.790Z","updated_at":"2026-04-20T04:02:14.464Z","avatar_url":"https://github.com/andreiavrammsd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wait for it\n\n## Run a command only when port on host is available\n\n### Tested on Alpine and Ubuntu\n\nI needed to run a command in an Alpine Docker container only after another process (from other container) was open.\n\nBased on https://github.com/vishnubob/wait-for-it. Many thanks!\n\nUses: https://en.wikipedia.org/wiki/Netcat\n\n#### Setup\n* chmod +x wait-for-it.sh\n* Change shebang line as needed:\n    * Alpine: #!/usr/bin/env sh\n    * Ubuntu: #!/usr/bin/env bash\n\n#### Usage\n \n```\n./wait-for-it.sh -h host -p port [-c command] [-t timeout] [-q quiet]\n    -h          Host or IP under test\n    -p          TCP port under test\n    -c          Command to execute if test succeeds\n    -t          Timeout in seconds, zero for no timeout\n    -q          Don't output any status messages\n```\n\n#### Examples\n\n```\n./wait-for-it.sh -h www.google.com -p 80 -t 5 -c \"echo Google is up\" -q\n./wait-for-it.sh -h www.google.com -p 8080 -t 5\n```\n\n#### Other\n\nSee this, too: https://github.com/jwilder/dockerize\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiavrammsd%2Fwait-for-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreiavrammsd%2Fwait-for-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiavrammsd%2Fwait-for-it/lists"}