Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #492

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add Dockerfile #492

wants to merge 2 commits into from

Conversation

pataquets
Copy link

@pataquets pataquets commented Mar 17, 2022

Enables development and testing with just Docker installed. Also, it can be used to run in production straight away, although it's not only optimized for that usage (eg. image size). Useful for building and running the latest HEAD (or whatever branch, tag or commit id you specify) straight from source by just issuing a one-liner (see below) without any requirement other than Docker.

Image builds code on gcc base image, latest tag.

To test the build locally, issue the following:

docker build --force-rm --pull github.com/pataquets/wrk#add-dockerfile -t wrk

To run a container from the built image, issue the following:

docker run --rm -it wrk <options> <url>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants