Skip to content

Commit

Permalink
chore: update docker images (#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgriffs authored May 22, 2021
1 parent 871d6bb commit 66e19f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
FALCON_VERSION=$(shell sudo docker run -it falconry/falcon-bench:py3 python3 -c 'import falcon; import sys; sys.stdout.write(falcon.__version__)')

all: build-benchmark-images

build-benchmark-images:
sudo docker pull python:3.7-slim
sudo docker pull python:3.7
sudo docker pull python:3.8-slim
sudo docker pull python:3.8
sudo docker pull pypy:3-slim

sudo docker build -t falconry/falcon-bench:py37 -f bench_py37.Dockerfile ./
sudo docker build -t falconry/falcon-bench:py37-cython -f bench_py37_cython.Dockerfile ./
sudo docker build -t falconry/falcon-bench:pypy3 -f bench_pypy3.Dockerfile ./
sudo docker build --no-cache -t falconry/falcon-bench:${FALCON_VERSION}-py38 -f bench_py3.Dockerfile ./
sudo docker build --no-cache -t falconry/falcon-bench:${FALCON_VERSION}-py38-cython -f bench_py3_cython.Dockerfile ./
sudo docker build --no-cache -t falconry/falcon-bench:${FALCON_VERSION}-pypy3 -f bench_pypy3.Dockerfile ./

push:
sudo docker push falconry/falcon-bench:${FALCON_VERSION}-py38
sudo docker push falconry/falcon-bench:${FALCON_VERSION}-py38-cython
sudo docker push falconry/falcon-bench:${FALCON_VERSION}-pypy3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM python:3.8-slim
MAINTAINER Falcon Framework Maintainers

RUN pip install --no-cache-dir falcon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7
FROM python:3.8
MAINTAINER Falcon Framework Maintainers

RUN pip install cython
Expand Down

0 comments on commit 66e19f6

Please sign in to comment.