{"id":16366490,"url":"https://github.com/steebchen/test-nginx-docker","last_synced_at":"2026-01-26T12:03:55.127Z","repository":{"id":85824606,"uuid":"157403083","full_name":"steebchen/test-nginx-docker","owner":"steebchen","description":"Provides the Test::Nginx::Socket utility as a docker image.","archived":false,"fork":false,"pushed_at":"2018-11-13T15:34:53.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T01:39:28.859Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steebchen.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-11-13T15:33:55.000Z","updated_at":"2018-11-13T15:37:42.000Z","dependencies_parsed_at":"2023-03-13T06:56:14.012Z","dependency_job_id":null,"html_url":"https://github.com/steebchen/test-nginx-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Ftest-nginx-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Ftest-nginx-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Ftest-nginx-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Ftest-nginx-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steebchen","download_url":"https://codeload.github.com/steebchen/test-nginx-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239827967,"owners_count":19703787,"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-10-11T02:46:40.714Z","updated_at":"2026-01-26T12:03:50.086Z","avatar_url":"https://github.com/steebchen.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test::Nginx Docker Image\n\nProvides the [Test::Nginx::Socket](https://metacpan.org/pod/Test::Nginx::Socket) utility as a docker image. We use the Test::Nginx::Socket image because it fixes a lot of things in the normal [Test::Nginx](https://github.com/openresty/test-nginx) package.\n\n## Quickstart\n\nTo run your nginx tests, use the following dockerfile.\n\n```Dockerfile\nFROM steebchen/nginx-test\nCOPY . ./\n```\n\nNo CMD instruction is needed, as the base image automatically runs `prove`.\nIt also uses [tini](https://github.com/krallin/tini) so signals work properly.\n\nNow simply build \u0026 run the container as follows to run your tests.\n\n```bash\ndocker build my-tests .\ndocker run my-tests\n```\n\n## Setting environment variables\n\nIf you need to use environment variables, simply specific them in your dockerfile as follows or with the `--env` docker CLI flag.\n\n```Dockerfile\nFROM steebchen/nginx-test\n\nENV TEST_NGINX_CLIENT_PORT=80\nENV TEST_NGINX_NO_NGINX_MANAGER=1\n\nCOPY . ./\n```\n\n## Use external nginx instance\n\nWhen running your own nginx instance like I do in the example above, you can provide another container's network to reach it:\n\n```bash\ndocker build -t my-tests .\ndocker run --network container:my-app my-tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Ftest-nginx-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteebchen%2Ftest-nginx-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Ftest-nginx-docker/lists"}