From 6068738354482d3fff27d45a88e9bf45983efcd6 Mon Sep 17 00:00:00 2001 From: Adrian Utrilla Date: Tue, 12 Feb 2019 19:13:57 +0100 Subject: [PATCH] Preserve original uwsgi path in Python 3 container image --- Dockerfile.python3.deploy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.python3.deploy b/Dockerfile.python3.deploy index 0ffb13e1f8..7c03b2dc32 100644 --- a/Dockerfile.python3.deploy +++ b/Dockerfile.python3.deploy @@ -72,6 +72,10 @@ RUN pip3 install --no-cache-dir --exists-action=w --no-deps -r requirements/syst && pip3 install --no-cache-dir --exists-action=w --no-deps -r requirements/prod_py3.txt \ && pip3 install --no-cache-dir --exists-action=w --no-deps -e . +# Link /usr/bin/uwsgi to /usr/local/bin/uwsgi, as that was the +# previous location of the binary when installed by apt-get. +RUN ln -s /usr/local/bin/uwsgi /usr/bin/uwsgi + # Install uwsgi statsd exporter to collect metrics from uwsgi when deployed WORKDIR /usr/lib/uwsgi/plugins RUN uwsgi --build-plugin https://github.com/Datadog/uwsgi-dogstatsd && \