{"id":23084033,"url":"https://github.com/octarect/docker-hostname","last_synced_at":"2026-04-17T15:33:12.051Z","repository":{"id":96506991,"uuid":"466530257","full_name":"octarect/docker-hostname","owner":"octarect","description":"A docker image for simple http server which returns $HOSTNAME","archived":false,"fork":false,"pushed_at":"2022-03-08T06:18:24.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T00:26:03.691Z","etag":null,"topics":["docker","kubernetes","nginx","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/octarect.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,"zenodo":null}},"created_at":"2022-03-05T18:03:02.000Z","updated_at":"2022-03-08T06:29:06.000Z","dependencies_parsed_at":"2023-12-24T05:00:22.846Z","dependency_job_id":null,"html_url":"https://github.com/octarect/docker-hostname","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/octarect/docker-hostname","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octarect%2Fdocker-hostname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octarect%2Fdocker-hostname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octarect%2Fdocker-hostname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octarect%2Fdocker-hostname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octarect","download_url":"https://codeload.github.com/octarect/docker-hostname/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octarect%2Fdocker-hostname/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: 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":["docker","kubernetes","nginx","testing-tools"],"created_at":"2024-12-16T15:23:38.963Z","updated_at":"2026-04-17T15:33:12.046Z","avatar_url":"https://github.com/octarect.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-hostname\n\nThis is a simple docker image which just shows `$HOSTNAME`. It is built from [library/nginx](https://hub.docker.com/_/nginx).\n\nOfficial nginx images are automatically patched and pushed into GitHub Container Registry.\nSee https://github.com/octarect/docker-hostname/pkgs/container/hostname\n\n## Usage\n\nAvailable tags are listed in https://github.com/octarect/docker-hostname/pkgs/container/hostname/versions\n\n### Docker\n\n```bash\ndocker run -d --name hostname -p 8080:80 ghcr.io/octarect/hostname:latest\n```\n\nTest:\n\n```\n$ curl localhost:8080\n29d607790136\n```\n\n### Kubernetes\n\n```bash\nkubectl create deployment hostname --image=ghcr.io/octarect/hostname:1.21.6-alpine --replicas=3\n```\n\nThen you can test it by the following;\n\n```\n$ kubectl get pod\nNAME                        READY   STATUS    RESTARTS   AGE\nhostname-59b54b98fd-62rbw   1/1     Running   0          11s\nhostname-59b54b98fd-8z6cb   1/1     Running   0          12s\nhostname-59b54b98fd-kv5v4   1/1     Running   0          12s\n\n$ kubectl expose deployment hostname --port=80\nservice/hostname exposed\n\n$ kubectl run tester --image=nginx\npod/tester created\n\n$ kubectl exec tester -- curl -s hostname.default.svc.cluster.local\nhostname-59b54b98fd-kv5v4\n$ kubectl exec tester -- curl -s hostname.default.svc.cluster.local\nhostname-59b54b98fd-8z6cb\n$ kubectl exec tester -- curl -s hostname.default.svc.cluster.local\nhostname-59b54b98fd-62rbw\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctarect%2Fdocker-hostname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctarect%2Fdocker-hostname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctarect%2Fdocker-hostname/lists"}