Adding dockerfiles for falcon-bench (#894)

This commit is contained in:
John Vrbanac
2016-09-12 17:31:18 -06:00
committed by Kurt Griffiths
parent a1fd73781b
commit 0c1aaa5f85
5 changed files with 34 additions and 0 deletions

6
docker/Makefile Normal file
View File

@@ -0,0 +1,6 @@
all: build-benchmark-images
build-benchmark-images:
sudo docker build -t falconry/falcon-bench:py27-pip -f bench_py27_pip.Dockerfile ./
sudo docker build -t falconry/falcon-bench:py35-pip -f bench_py35_pip.Dockerfile ./
sudo docker build -t falconry/falcon-bench:pypy2-pip -f bench_pypy2_pip.Dockerfile ./

View File

@@ -0,0 +1,7 @@
FROM python:2.7
MAINTAINER Falcon Framework Maintainers
RUN pip install falcon flask pecan bottle cherrypy
COPY ./benchmark.sh /benchmark.sh
CMD /benchmark.sh

View File

@@ -0,0 +1,7 @@
FROM python:3.5
MAINTAINER Falcon Framework Maintainers
RUN pip install falcon flask pecan bottle cherrypy
COPY ./benchmark.sh /benchmark.sh
CMD /benchmark.sh

View File

@@ -0,0 +1,7 @@
FROM pypy:2
MAINTAINER Falcon Framework Maintainers
RUN pip install falcon flask pecan bottle cherrypy
COPY ./benchmark.sh benchmark.sh
CMD /benchmark.sh

7
docker/benchmark.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
echo "Installed Packages:\n=================="
pip list
echo "\nBenchmark:\n=================="
falcon-bench