{"id":16587163,"url":"https://github.com/zchee/docker-h2o","last_synced_at":"2025-12-06T11:01:03.230Z","repository":{"id":35296502,"uuid":"39557635","full_name":"zchee/docker-h2o","owner":"zchee","description":"Docker Image for H2O - the optimized HTTP/1, HTTP/2 server","archived":false,"fork":false,"pushed_at":"2016-01-29T13:30:31.000Z","size":36,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T19:49:43.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://registry.hub.docker.com/u/zchee/h2o/","language":null,"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/zchee.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}},"created_at":"2015-07-23T09:15:42.000Z","updated_at":"2022-04-16T17:06:57.000Z","dependencies_parsed_at":"2022-09-17T00:51:19.535Z","dependency_job_id":null,"html_url":"https://github.com/zchee/docker-h2o","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/zchee%2Fdocker-h2o","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fdocker-h2o/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fdocker-h2o/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fdocker-h2o/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zchee","download_url":"https://codeload.github.com/zchee/docker-h2o/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179097,"owners_count":20084939,"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-11T22:53:27.107Z","updated_at":"2025-12-06T11:01:02.962Z","avatar_url":"https://github.com/zchee.png","language":null,"readme":"## H2O\nTravisCI: [![Build Status](https://travis-ci.org/zchee/docker-h2o.svg?branch=master)](https://travis-ci.org/zchee/docker-h2o)  \nCircleCI: [![Circle CI](https://circleci.com/gh/zchee/docker-h2o.svg?style=svg)](https://circleci.com/gh/zchee/docker-h2o)  \n\nThis is Dockerfile for [H2O](https://github.com/h2o/h2o).\n\nBuild docker container,\n\n```bash\n$ docker build -t zchee/h2o .\n```\n\n`docker-h2o` now support the `docker --build-arg` new feature build flag.  \nIf you want set specific `git clone` flag, e.g.\n\n```bash\n$ docker build -t zchee/h2o --build-arg H2O_EXTRA_ARGS='-b v1.5.0' .\n```\nThen, checkout H2O cloned v1.5.0 tag.\n\n## Usage\n\nTo run,\n\n```bash\n$ docker run --rm -p \u003cport\u003e:\u003cport\u003e zchee/h2o examples/h2o/h2o.conf\n```\n\nTo custom config file run,\n\n```bash\n$ docker run --rm -p \u003cport\u003e:\u003cport\u003e zchee/h2o h2o.conf\n```\n\n## h2o.conf\nDefault H2O configure path: `/etc/h2o/h2o.conf`\n\nDefault configure, \n\n```conf\nmax-connections: 65536\nlimit-request-body: 536870912\nnum-threads: 16\nnum-name-resolution-threads: 1\nhttp2-reprioritize-blocking-assets: ON\ntcp-fastopen: 33554432\n\nlisten: 80\nhosts:\n  \"127.0.0.1:80\":\n    paths:\n      /:\n        file.dir: examples/doc_root\n\nlisten: 8080\nlisten:\n  port: 8081\n  ssl:\n    certificate-file: examples/h2o/server.crt\n    key-file: examples/h2o/server.key\nhosts:\n  \"127.0.0.1.xip.io:8080\":\n    paths:\n      /:\n        file.dir: examples/doc_root\n    access-log: /dev/stdout\n  \"alternate.127.0.0.1.xip.io:8081\":\n    listen:\n      port: 8081\n      ssl:\n        certificate-file: examples/h2o/alternate.crt\n        key-file: examples/h2o/alternate.key\n    paths:\n      /:\n        file.dir: examples/doc_root.alternate\n    access-log: /dev/stdout\n```\n\n## sysctl.conf\n\n[WIP] Default `/etc/sysctl.conf` is [https://klaver.it/linux/sysctl.conf](https://klaver.it/linux/sysctl.conf)  \nIt will refactoring later.\n\nbased, \n```conf\nnet.core.somaxconn=32768\nnet.core.netdev_max_backlog=32768\nnet.ipv4.tcp_max_syn_backlog=32768\nnet.ipv4.tcp_tw_recycle=1\nnet.ipv4.tcp_tw_reuse=1\nnet.ipv4.tcp_fin_timeout=10\nnet.core.rmem_max  = 16777216\nnet.core.wmem_max  = 16777216\nnet.ipv4.tcp_rmem  = 4096 349520 16777216\nnet.ipv4.tcp_wmem  = 4096 65536 16777216\nnet.ipv4.ip_local_port_range= 1024 65535\nnet.ipv4.tcp_timestamps = 0\n```\n\n## Installed packages\n\n| Package         | Build              | Dockerfile                                                                    | Dependent |\n|-----------------|--------------------|-------------------------------------------------------------------------------|-----------|\n| libuv           | from source (HEAD) | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| wslay           | from source (HEAD) | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| mruby           | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| libmruby        | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| cmake           | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| ninja           | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | H2O       |\n| build-essential | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | *none*    |\n| checkinstall    | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | wslay     |\n| python-sphinx   | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | wslay     |\n| libcunit1-dev   | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | wslay     |\n| nettle-dev      | apt-get            | [zchee/docker-h2o](https://github.com/zchee/docker-h2o)                       | wslay     |\n| apt-utils       | apt-get            | [zchee/docker-buildpack-deps](https://github.com/zchee/docker-buildpack-deps) | *none*    |\n| locale          | apt-get            | [zchee/docker-buildpack-deps](https://github.com/zchee/docker-buildpack-deps) | *none*    |\n\n## TODO\n\n- [ ] Tuning performance default h2o.conf\n- [ ] Tuning performance default sysctl.conf\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchee%2Fdocker-h2o","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzchee%2Fdocker-h2o","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchee%2Fdocker-h2o/lists"}