{"id":13580794,"url":"https://github.com/aelsabbahy/goss-docker","last_synced_at":"2026-01-14T16:52:45.273Z","repository":{"id":144211784,"uuid":"64718575","full_name":"aelsabbahy/goss-docker","owner":"aelsabbahy","description":"Easy docker health checks, /healthz endpoints, and container delays","archived":false,"fork":false,"pushed_at":"2023-06-03T17:12:46.000Z","size":20,"stargazers_count":27,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T02:34:42.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aelsabbahy.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}},"created_at":"2016-08-02T02:48:59.000Z","updated_at":"2023-06-03T17:12:42.000Z","dependencies_parsed_at":"2024-01-16T20:29:48.326Z","dependency_job_id":"fd4f873e-8d6f-4f46-8a0a-6846b2f08a06","html_url":"https://github.com/aelsabbahy/goss-docker","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/aelsabbahy/goss-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelsabbahy%2Fgoss-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelsabbahy%2Fgoss-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelsabbahy%2Fgoss-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelsabbahy%2Fgoss-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aelsabbahy","download_url":"https://codeload.github.com/aelsabbahy/goss-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelsabbahy%2Fgoss-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-01T15:01:55.155Z","updated_at":"2026-01-14T16:52:45.254Z","avatar_url":"https://github.com/aelsabbahy.png","language":"Dockerfile","readme":"# Goss Docker container\n## Dockerfiles\n* [latest](https://github.com/aelsabbahy/goss-docker/blob/master/Dockerfile)\n* [onbuild](https://github.com/aelsabbahy/goss-docker/blob/master/onbuild/Dockerfile)\n\n\n## Goss\nNot sure what Goss is, read these:\n\n* [Goss](https://github.com/aelsabbahy/goss) - Project page\n* [Blog post](https://medium.com/@aelsabbahy/docker-1-12-kubernetes-simplified-health-checks-and-container-ordering-with-goss-fa8debbe676c) - Examples on how these Goss images can be used\n\n\n## Using the base image\n\nThis is a simple alpine image with Goss preinstalled on it. Can be used as a base image for your projects to allow for easy health checking.\n\n### Mount example\n\nCreate the container\n```\ndocker run --name goss aelsabbahy/goss goss\n```\nCreate your container and mount goss\n```\ndocker run --rm -it --volumes-from goss --name weby nginx\n```\nRun goss inside your container\n```\ndocker exec weby /goss/goss autoadd nginx\n```\n\n### HEALTHCHECK example\n```\nFROM aelsabbahy/goss:latest\n\nCOPY goss/ /goss/\nHEALTHCHECK --interval=1s --timeout=6s CMD goss -g /goss/goss.yaml validate\n\n# your stuff..\n```\n\n\n### Startup delay example\n```\nFROM aelsabbahy/goss:latest\n\nCOPY goss/ /goss/\n\n# Alternatively, the -r option can be set\n# using the GOSS_RETRY_TIMEOUT env variable\nCMD goss -g /goss/goss.yaml validate -r 5m \u0026\u0026 exec real_comand..\n```\n\n\n## Using the onbuild image\n\nCreate a `goss/goss.yaml` file and optionally a checks folder in the following structure:\n```\n.\n|-- Dockerfile\n`-- goss/\n    |-- checks/\n    |   `-- db_login.sh\n    `-- goss.yaml\n```\n\nIn your `Dockerfile` use the `onbuild` container as follows:\n\n\n### Serve a healthz endpoint\n```\nFROM aelsabbahy/goss:onbuild\nCMD [\"serve\"]\n```\n\n\n### Run tests until they pass or we timeout\n```\nFROM aelsabbahy/goss:onbuild\nCMD [\"validate\", \"--retry-timeout\", \"5m\", \"--sleep\", \"10s\"]\n```\n","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelsabbahy%2Fgoss-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faelsabbahy%2Fgoss-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelsabbahy%2Fgoss-docker/lists"}