-
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.
Merge pull request #138 from GoogleCloudPlatform/dgreiman/eventlet
Add compatibility test for the 'eventlet' Python package.
- Loading branch information
Showing
8 changed files
with
40 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 |
---|---|---|
|
@@ -36,3 +36,5 @@ libsasl2-2 | |
libsasl2-dev | ||
libsasl2-modules | ||
sasl2-bin | ||
# Needed by eventlet | ||
netbase |
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 |