From 7db1baf2e5f529262398e9354075a6c3da01e141 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Thu, 23 Aug 2018 16:42:24 +0200 Subject: [PATCH] Add docker container for getput Signed-off-by: Marc Koderer --- README.md | 12 ++++++++---- docker/Dockerfile | 10 ++++++++++ requirements.txt | 3 +++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 docker/Dockerfile create mode 100644 requirements.txt diff --git a/README.md b/README.md index 63d0966..f650f93 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,25 @@ This is the getput benchmarking tool suite. -Dependencies: +# Dependencies: python-swiftclient -Installation: +# Installation: git clone https://github.com/markseger/getput.git
cd getput
sudo python setup.py install -Documentation: +# Start getput as docker container +``` + docker run --env-file os.env dreamrocker/getput -n1 -tp,d -c1 -on -s4k +``` +# Documentation: /usr/share/doc/gptools/getting-started.txt
/usr/share/doc/gptools/Introduction.pdf -Notes: +# Notes: Version 2 of the swift client fixes the problem with longer PUT latencies for small objects BUT you need to make sure you have the latest version diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..c1d552d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,10 @@ +FROM python:2.7 + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +ENTRYPOINT [ "python", "getput" ] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..704f343 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests +python-swiftclient +python-keystoneclient