https://github.com/testillano/nghttp2
Project to maintain a docker image useful to build projects & libraries based on @tatsuhiro-t nghttp2 & nghttp2-asio libraries
https://github.com/testillano/nghttp2
docker docker-image-builder http2
Last synced: 4 months ago
JSON representation
Project to maintain a docker image useful to build projects & libraries based on @tatsuhiro-t nghttp2 & nghttp2-asio libraries
- Host: GitHub
- URL: https://github.com/testillano/nghttp2
- Owner: testillano
- License: other
- Created: 2021-03-08T19:45:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-02-15T00:18:18.000Z (4 months ago)
- Last Synced: 2026-02-15T04:35:54.724Z (4 months ago)
- Topics: docker, docker-image-builder, http2
- Language: Dockerfile
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nghttp2 docker image
[](https://opensource.org/licenses/MIT)
[](https://codedocs.xyz/testillano/nghttp2/index.html)
[](https://github.com/testillano)
[](https://github.com/testillano/nghttp2/graphs/commit-activity)
[](https://github.com/testillano/nghttp2/actions/workflows/ci.yml)
[](https://github.com/testillano/nghttp2/pkgs/container/nghttp2)
This project hosts the stuff to build the `nghttp2` docker image useful to build projects & libraries based on @tatsuhiro-t nghttp2-asio library (https://github.com/nghttp2/nghttp2).
## Project image
This image is already available at `github container registry` and `docker hub` for every repository `tag`, and also for master as `latest`:
```bash
$> docker pull ghcr.io/testillano/nghttp2:
```
You could also build it using the script `./build.sh` located at project root.
Both `ubuntu` and `alpine` base images are supported, but the official image uploaded is the one based in `ubuntu`.
## Usage
To run compilation over this image, just run with `docker`. The `entrypoint` (check it at `./deps/build.sh`) will fall back from `cmake` (looking for `CMakeLists.txt` file at project root, i.e. mounted on working directory `/code` to generate makefiles) to `make`, in order to build your source code. There are three available environment variables used by the builder script of this image: `BUILD_TYPE` and `STATIC_LINKING` (for `cmake`) and `MAKE_PROCS` (for `make`):
```bash
$> envs="-e MAKE_PROCS=$(grep processor /proc/cpuinfo -c) -e BUILD_TYPE=Release -e STATIC_LINKING=TRUE"
$> docker run --rm -it -u $(id -u):$(id -g) ${envs} -v ${PWD}:/code -w /code \
ghcr.io/testillano/nghttp2:
```