This is purely a container that should be usable for a CI to compile a QMK firmware.
Go to file
colin 185261b4b0 Update docker/auth-bench/run-ab.sh 2024-02-28 17:06:01 +00:00
docker/auth-bench Update docker/auth-bench/run-ab.sh 2024-02-28 17:06:01 +00:00
.woodpecker.yml Update .woodpecker.yml 2024-02-22 13:57:02 +00:00
README.md Update README.md 2024-02-28 14:19:02 +00:00
docker-compose.production.yml Update docker-compose.production.yml 2024-02-18 18:13:22 +00:00
docker-compose.staging.yml Update docker-compose.staging.yml 2024-02-18 18:13:05 +00:00

README.md

bench plugin

Docker Run

Run the Docker image using the docker run command, now including the CMS_TYPE environment variable for CMS-specific authentication:

  1. Testing a Single URL with Concrete5 Authentication:

    docker run -e CMS_TYPE="Concrete5" -e URLS="http://example.com" -e USERNAME="user" -e PASSWORD="pass" git.nixc.us/colin/bench:production
    
  2. Testing Multiple URLs with Concrete5 Authentication:

    docker run -e CMS_TYPE="Concrete5" -e URLS="http://example.com,http://example2.com" -e USERNAME="user" -e PASSWORD="pass" git.nixc.us/colin/bench:production
    

Docker Compose

Example docker-compose.yml file, now with CMS_TYPE to specify the CMS for authentication:

version: '3'

services:
  apachebench:
    image: git.nixc.us/colin/bench:production
    environment:
      CMS_TYPE: "Concrete5" # Specify CMS type for authentication
      URLS: "http://example.com,http://example2.com" # Comma-separated list of URLs
      USERNAME: "user" # Basic auth username
      PASSWORD: "pass" # Basic auth password
      REQUESTS: 100 # Number of requests for Apache Bench
      CONCURRENCY: 10 # Number of multiple requests to make at a time

Run the service defined in the docker-compose.yml file with:

docker-compose up

Customizing the Configuration

To fine-tune your testing setup, adjust the following environment variables:

  • CMS_TYPE: Specify the CMS type for CMS-specific authentication (e.g., "Concrete5").
  • URLS: Comma-separated list of URLs to test.
  • USERNAME and PASSWORD: Credentials for HTTP Basic Authentication.
  • REQUESTS: Number of requests to perform with Apache Bench.
  • CONCURRENCY: Number of multiple requests to make at a time.