Skip to content

Commit

Permalink
Updated Docker image and gunicorn for Port parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoooo committed Apr 18, 2023
1 parent fab7646 commit cad35b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY --chown=appuser:appuser . /home/appuser/datachecks
#Install dependencies
RUN python -m venv /home/appuser/datachecks/venv
ENV PATH="/home/appuser/datachecks/venv/bin:$PATH"
RUN pip install -r requirements.txt
RUN pip install wheel
RUN pip install .
# clone datacheck app
ENV DATACHECK_CONFIG_PATH="/home/appuser/datachecks/config.yaml"
Expand Down
5 changes: 3 additions & 2 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
# range.
#

# bind = '0.0.0.0:5006'
backlog = 2048
import os
bind = os.getenv("GUNICORN_BIND", "0.0.0.0:5001")
backlog = int(os.getenv("GUNICORN_BACKLOG", "2048"))

#
# Worker processes
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def import_requirements():
maintainer_email='ensembl-production@ebi.ac.uk',
description='Ensembl datacheck service',
python_requires='>=3.7',
install_requires=import_requirements(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down

0 comments on commit cad35b2

Please sign in to comment.