{"id":26229903,"url":"https://github.com/lgdd/wait-for-liferay","last_synced_at":"2026-05-01T20:31:21.507Z","repository":{"id":113228283,"uuid":"220445119","full_name":"lgdd/wait-for-liferay","owner":"lgdd","description":"Script to wait for the availability of a Liferay instance.","archived":false,"fork":false,"pushed_at":"2019-11-14T08:57:31.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T09:35:37.831Z","etag":null,"topics":["docker","docker-compose","liferay","script"],"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/lgdd.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-08T10:38:28.000Z","updated_at":"2020-10-04T19:46:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"534eae32-8667-4aec-a7d7-9cb9c120737d","html_url":"https://github.com/lgdd/wait-for-liferay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lgdd/wait-for-liferay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgdd%2Fwait-for-liferay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgdd%2Fwait-for-liferay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgdd%2Fwait-for-liferay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgdd%2Fwait-for-liferay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lgdd","download_url":"https://codeload.github.com/lgdd/wait-for-liferay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgdd%2Fwait-for-liferay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["docker","docker-compose","liferay","script"],"created_at":"2025-03-12T22:18:15.691Z","updated_at":"2026-05-01T20:31:21.492Z","avatar_url":"https://github.com/lgdd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait-for-liferay\n\n`wait-for-liferay.sh` is a script that will wait on the availability of a Liferay instance based on its host and TCP port. It is designed to synchronize services like docker containers. It was inspired by [vishnubob/wait-for-it](https://github.com/vishnubob/wait-for-it) and [eficode/wait-for](https://github.com/eficode/wait-for).\n\n## Usage\n\n```\nUsage:\n  wait-for-liferay.sh host:port [-- command args]\n  -s | --sleep=SLEEP                  Time in seconds to wait between tests (default=1)\n  -q | --quiet                        Don't output any status messages\n  -- COMMAND ARGS                     Execute command with args after the test finishes\n```\n\n## Example\nWith [Docker Compose](https://docs.docker.com/compose/startup-order/), you want to start a Liferay cluster and therefore the second node must start just after the first node is available:\n\n- `Dockerfile`:\n```\nFROM liferay/portal:7.2.0-ga1\n\nADD --chown=liferay:liferay https://raw.githubusercontent.com/lgdd/wait-for-liferay/master/wait-for-liferay.sh /usr/local/bin/\nRUN chmod a+x /usr/local/bin/wait-for-liferay.sh\n```\n\n- `docker-compose.yml`:\n```\nversion: '3.3'\nservices:\n  liferay-node-1:\n    build: .\n  liferay-node-2:\n    build: .\n    entrypoint: /usr/local/bin/wait-for-liferay.sh liferay-node-1:8080 -- /usr/local/bin/liferay_entrypoint.sh\n```\n\n- Docker Compose logs output:\n```\nliferay-node-2_1  | Liferay is unavailable on liferay-node-1:8080 - sleeping\nliferay-node-1_1  | INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [x] milliseconds\n...               |  ...\nliferay-node-1_1  | INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [x] milliseconds\nliferay-node-2_1  | Liferay is up on liferay-node-1:8080 - executing command\nliferay-node-2_1  | [LIFERAY] To SSH into this container, run: \"docker exec -it liferay-node-2.local /bin/bash\".\n...               |  ...\n```\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgdd%2Fwait-for-liferay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgdd%2Fwait-for-liferay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgdd%2Fwait-for-liferay/lists"}