+
Skip to content

Conversation

ggalmazor
Copy link

This PR adds a volume to be able to use Apache Bench's -p arg:
-p postfile File containing data to POST. Remember also to set -T

@jig
Copy link
Owner

jig commented Feb 6, 2018

I think it is not necessary to change the Dockerfile to use POST with this Docker image.

You can do that with current version, using something like:

docker run -v `pwd`:`pwd` -w `pwd` -t jordi/ab ab -T "application/json" -p post.json ...

provided you have the post.json file in your current (host) directory (example from Docker doc)

I think I will add this example to the README.md file.

@ggalmazor
Copy link
Author

Great, thanks!
I don't have much experience with Docker and I didn't think about that :)

@ggalmazor ggalmazor closed this Feb 6, 2018
jig added a commit that referenced this pull request Feb 6, 2018
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载