Skip to content

Commit

Permalink
Rollback debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Apr 9, 2024
1 parent e752c6d commit 4720a6a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-buster
FROM python:3.9-slim-buster

ENV PYTHONUNBUFFERED 1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
Expand Down Expand Up @@ -73,7 +73,7 @@ COPY requirements*.txt /app/
# hadolint ignore=DL3013
RUN pip install --no-cache-dir pip virtualenv jinja2 && \
python3 -m venv /venv && \
/venv/bin/pip install --no-cache-dir --upgrade setuptools wheel && \
/venv/bin/pip install --no-cache-dir --upgrade setuptools && \
/venv/bin/pip install --no-cache-dir --requirement /app/requirements.txt && \
/venv/bin/pip install --no-cache-dir --requirement /app/requirements-docker.txt
ENV PATH $PATH:/venv/bin
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,6 @@ API to ease deployment more generally:
`GUNICORN_WORKERS`
- number of worker processes for Gunicorn (default:`5`)

`UWSGI_LISTEN`
- max number of concurrent connections (default:`100`)

`UWSGI_BUFFER_SIZE`
- size of the unix socket buffer (default:`8192`)

`UWSGI_MAX_WORKER_LIFETIME`
- reload worker after this many seconds (default:`30`)

`UWSGI_WORKER_LIFETIME_DELTA`
- time in seconds to stagger UWSGI worker respawns (default:`3`)

Configuration Files
-------------------

Expand Down
1 change: 0 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ if [ ! -f "${NGINX_CONF_FILE}" ]; then
echo "# Create nginx configuration file."
python3 -c "${JINJA2}" < ${NGINX_CONF_FILE}.j2 >${NGINX_CONF_FILE}
fi
cat ${NGINX_CONF_FILE}
nginx -t -c ${NGINX_CONF_FILE}

# Generate Gunicorn config, if not supplied.
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.test.mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
depends_on:
- db
environment:
- DEBUG=1 # remove this line to turn DEBUG off
# - DEBUG=1 # remove this line to turn DEBUG off
- LOG_LEVEL=error # debug, info, warn (default), or error
- SECRET_KEY=super-secret
- DATABASE_URL=mongodb://db:27017/monitoring
Expand Down

0 comments on commit 4720a6a

Please sign in to comment.