Adding dockerfiles for falcon-bench (#894)
This commit is contained in:
committed by
Kurt Griffiths
parent
a1fd73781b
commit
0c1aaa5f85
6
docker/Makefile
Normal file
6
docker/Makefile
Normal 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 ./
|
||||
7
docker/bench_py27_pip.Dockerfile
Normal file
7
docker/bench_py27_pip.Dockerfile
Normal 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
|
||||
7
docker/bench_py35_pip.Dockerfile
Normal file
7
docker/bench_py35_pip.Dockerfile
Normal 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
|
||||
7
docker/bench_pypy2_pip.Dockerfile
Normal file
7
docker/bench_pypy2_pip.Dockerfile
Normal 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
7
docker/benchmark.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Installed Packages:\n=================="
|
||||
pip list
|
||||
|
||||
echo "\nBenchmark:\n=================="
|
||||
falcon-bench
|
||||
Reference in New Issue
Block a user