oha Docker & Self-Hosted Deployment

GitHub

Ohayou(ใŠใฏใ‚ˆใ†), HTTP load generator, inspired by rakyll/hey with tui animation.

10,239 stars Rust Rust 1 file ยท ~1,639 tokens #benchmark#cli#command-line#http#http2#load-generator#load-testing#rust
1. Pull Image (DOCKERHUB) docker pull hatoo/oha:latest
2. Docker Run (1-Click Launch) docker run -d --name oha --restart always hatoo/oha:latest
3. Podman Run podman run -d --name oha --restart always hatoo/oha:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/hatoo/oha:latest
5. ORAS Pull (OCI Artifact) oras pull hatoo/oha:latest
Dockerfile
ARG RUST_VERSION=slim
FROM docker.io/library/rust:${RUST_VERSION} AS chef

RUN cargo install cargo-chef --locked
RUN apt-get update && apt-get install -y \
    cmake \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json

RUN cargo chef cook --release --no-default-features --features rustls --recipe-path recipe.json

COPY . .
RUN cargo build --release --no-default-features --features rustls --bin oha
RUN strip /app/target/release/oha

FROM registry.fedoraproject.org/fedora-minimal AS runtime
USER 65535
COPY --chown=65535:65535 --from=builder /app/target/release/oha /bin/
ENTRYPOINT ["/bin/oha"]