Coder Social home page Coder Social logo

docker-wrk-json's Introduction

Docker WRK JSON Environment

This repository contains Dockerfile of Debian for Docker's automated build published to the public Docker Hub Registry.

Analysing the Dockerfile one can get an overview how to install wrk from source.

This project delivers a wrk environment with JSON support - in simple words it enables you to use JSON inside your Lua scripts.

Base Docker Image

  • debian:jessie

Requirements:

Usage

Download automated build from public Docker Hub Registry:

docker pull czerasz/wrk-json

Alternatively, you can build an image from Dockerfile:

docker build -t="czerasz/wrk-json" github.com/czerasz/docker-wrk-json

Example

Clone this repository and enter it's direcotry.

Start all containers:

docker-compose run wrk bash

Watch the application container logs in another terminal with:

docker logs -f --tail=0 $(docker-compose ps | grep '_application_1' | awk '{print $1}')

Benchmark the application from inside the wrk docker container:

wrk -c1 -t1 -d1s -s /scripts/multi-request-json.lua http://app:3000

As soon as you start the benchmark the application container logs should output request details:

[2015-06-15 17:10:12] Request 28132

GET/1.1 /path-1 on :::3000

Headers:
 - host: app:3000
 - x-custom-header-2: test 2
 - content-length: 12
 - x-custom-header-1: test 1

No cookies

Body:
some content

docker-wrk-json's People

Contributors

czerasz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.