From f9b76b0e4d44252b967687be3b753bd27cbb331d Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Tue, 12 Dec 2023 15:38:01 -0600 Subject: [PATCH] Update README Add steps and example of use Include a .dockerignore --- .dockerignore | 1 + README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..eb5a316c --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target diff --git a/README.md b/README.md index 2e5d1f12..4326d9b7 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,20 @@ You can optionally build oha against [rustls](https://github.com/rustls/rustls) apt update apt install oha +## Containerized + +You can also build and create a container image including oha + +```sh +docker build . -t example.com/hatoo/oha:latest +``` + +Then you can use oha directly throught the container + +```sh +docker run -it example.com/hatoo/oha:latest https://example.com:3000 +``` + # Platform - Linux - Tested on Ubuntu 18.04 gnome-terminal