Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 29b3532

Browse files
committed
Merge pull request #9 from andrewsg/base_requirements
Pin requirements and enable concurrency w/ gevent
2 parents 35722ab + b927a54 commit 29b3532

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Multicore web application server.
2-
gunicorn
2+
gunicorn==19.1.1
33

44
# Better HTTP api calls, used by vmstub.py.
5-
requests
5+
requests==2.5.0
66

77
# Required by the base runtime.
8-
webapp2
9-
webob
8+
webapp2==2.5.2
9+
WebOb==1.4
1010

1111
# Required to parse app.yaml.
12-
pyyaml
12+
PyYAML==3.11
1313

1414
# Better request/response processing for the meta app.
15-
werkzeug
15+
Werkzeug==0.10
16+
17+
# Non-blocking I/O libs are not included here because they are installed by
18+
# `apt-get install python-greenlet python-eventlet`
19+
# to avoid having to install compilers and dev libraries in every container.

multicore_runtime/dev/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ FROM google/debian:wheezy
55
# http://docs.docker.io/en/latest/reference/builder/#entrypoint.
66
CMD []
77
ENV DEBIAN_FRONTEND noninteractive
8-
RUN apt-get -q update ; \
9-
apt-get install --no-install-recommends -y -q ca-certificates net-tools lsof && \
10-
apt-get -y -q upgrade
11-
12-
RUN apt-get -q update ; apt-get -y -q --no-install-recommends install python2.7 python-pip
8+
RUN apt-get -q update && \
9+
apt-get install --no-install-recommends -y -q ca-certificates net-tools lsof \
10+
python2.7 python-pip python-gevent python-greenlet && \
11+
apt-get -y -q upgrade && apt-get clean && rm /var/lib/apt/lists/*_*
1312

1413
ADD python_vm_runtime.tar.gz /home/vmagent/python_vm_runtime
1514

@@ -20,9 +19,8 @@ WORKDIR /app
2019

2120
RUN ln -s /home/vmagent/python_vm_runtime/google /home/vmagent/app/google
2221

23-
ENTRYPOINT ["/usr/bin/env", "gunicorn", "-b", "0.0.0.0:8080", "wsgi:meta_app", "--log-file=-"]
22+
ENTRYPOINT ["/usr/bin/env", "gunicorn", "-w", "4", "-k", "gevent", "-b", "0.0.0.0:8080", "wsgi:meta_app", "--log-file=-"]
2423

2524
ADD . /home/vmagent/app/
2625

2726
RUN pip install -r base_requirements.txt
28-

0 commit comments

Comments
 (0)