-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compatibility test for the 'eventlet' Python package.
The eventlet worker for gunicorn dies if /etc/protocols isn't present, which was previously the case. We now install the Debian 'netbase' package which provides this file and others.
- Loading branch information
Doug Greiman
committed
Aug 11, 2017
1 parent
bc20cb4
commit 50e51f6
Showing
7 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dockerfile | ||
main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM ${STAGING_IMAGE} | ||
LABEL python_version=python3.6 | ||
RUN virtualenv --no-download /env -p python3.6 | ||
|
||
# Set virtualenv environment variables. This is equivalent to running | ||
# source /env/bin/activate | ||
ENV VIRTUAL_ENV /env | ||
ENV PATH /env/bin:$PATH | ||
ADD requirements.txt /app/ | ||
RUN pip install -r requirements.txt | ||
ADD . /app/ | ||
RUN gunicorn -k eventlet -b :$PORT --daemon main:app ; \ | ||
wget --retry-connrefused --tries=5 http://localhost:$PORT/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Test the Python base image against the 'eventlet' library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
click==6.7 | ||
enum-compat==0.0.2 | ||
eventlet==0.21.0 | ||
Flask==0.12.2 | ||
greenlet==0.4.12 | ||
gunicorn==19.7.1 | ||
itsdangerous==0.24 | ||
Jinja2==2.9.6 | ||
MarkupSafe==1.0 | ||
Werkzeug==0.12.2 |