-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
24 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
FROM tiangolo/uwsgi-nginx-flask:python3.7 | ||
FROM python:3.7 as base | ||
ARG REQUIREMENTS | ||
RUN apt-get update && apt-get -y install libffi-dev gcc python3-dev libffi-dev libssl-dev libxml2-dev libxmlsec1-dev libxmlsec1-openssl | ||
RUN apt-get -y install ca-certificates | ||
WORKDIR /app | ||
COPY requirements.txt /app/ | ||
COPY test_requirements.txt /app/ | ||
COPY devops/nginx.conf /app | ||
COPY devops/uwsgi.ini /app | ||
RUN echo $REQUIREMENTS | ||
RUN pip install -r $REQUIREMENTS | ||
RUN pip install -r /app/$REQUIREMENTS | ||
WORKDIR /app | ||
COPY ./ /app/ | ||
EXPOSE 9001 | ||
CMD ["gunicorn", "--conf", "gunicorn_conf.py", "--bind", "0.0.0.0:9001", "lti:app"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
# Gunicorn config variables | ||
loglevel = "info" | ||
errorlog = "-" # stderr | ||
accesslog = "-" # stdout | ||
worker_tmp_dir = "/dev/shm" | ||
graceful_timeout = 120 | ||
timeout = 120 | ||
keepalive = 5 | ||
threads = 3 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
canvasapi==0.15.0 | ||
Flask==1.1.1 | ||
Flask-SQLAlchemy==2.5.1 | ||
mysqlclient | ||
git+https://github.com/ucfcdl/pylti.git@roles#egg=PyLTI | ||
requests==2.22.0 | ||
Werkzeug>=1.0.1 # Chrome 80 SameSite fix | ||
Flask==2.0.3 | ||
-e git+https://github.com/ucfcdl/pylti.git@roles#egg=PyLTI | ||
requests==2.23.0 | ||
gunicorn==20.1.0 | ||
mysqlclient==2.1.0 | ||
Flask-SQLAlchemy | ||
canvasapi==2.2.0 |
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