Skip to content
Snippets Groups Projects
Commit 26dd1a5d authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Compile uwsgi with graylog2 plugin

JIRA INFRA-576 #action In Progress
parent 0c1a1206
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ RUN apt-get update \ ...@@ -19,6 +19,7 @@ RUN apt-get update \
libgdbm-dev \ libgdbm-dev \
liblzma-dev \ liblzma-dev \
libncursesw5-dev \ libncursesw5-dev \
libpcre3-dev \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libreadline-dev \ libreadline-dev \
...@@ -33,6 +34,12 @@ RUN apt-get update \ ...@@ -33,6 +34,12 @@ RUN apt-get update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Compile uwsgi with graylog2 plugin
RUN wget https://projects.unbit.it/downloads/uwsgi-2.0.17.1.tar.gz \
&& tar xfz uwsgi-2.0.17.1.tar.gz \
&& cd uwsgi-2.0.17.1 \
&& UWSGI_EMBED_PLUGINS=graylog2 python uwsgiconfig.py --build
COPY requirements.txt /requirements.txt COPY requirements.txt /requirements.txt
RUN python -m venv /venv \ RUN python -m venv /venv \
&& . /venv/bin/activate \ && . /venv/bin/activate \
...@@ -48,8 +55,9 @@ RUN groupadd -r -g 1000 csi \ ...@@ -48,8 +55,9 @@ RUN groupadd -r -g 1000 csi \
&& useradd --no-log-init -r -g csi -u 1000 csi && useradd --no-log-init -r -g csi -u 1000 csi
COPY --chown=csi:csi --from=builder /venv /venv COPY --chown=csi:csi --from=builder /venv /venv
COPY --chown=csi:csi --from=builder /uwsgi-2.0.17.1/uwsgi /venv/bin/uwsgi
# Install libraries for psycopg2 and pillow # Install libraries for psycopg2, pillow and uwsgi
# Shall be the same as the one linked to when compiling in builder image! # Shall be the same as the one linked to when compiling in builder image!
RUN apt-get update \ RUN apt-get update \
&& apt-get install -yq --no-install-recommends \ && apt-get install -yq --no-install-recommends \
...@@ -57,6 +65,8 @@ RUN apt-get update \ ...@@ -57,6 +65,8 @@ RUN apt-get update \
libpng16-16 \ libpng16-16 \
libtiff5 \ libtiff5 \
libpq5 \ libpq5 \
libpcre3 \
zlib1g \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
......
...@@ -18,7 +18,6 @@ pyjwt ...@@ -18,7 +18,6 @@ pyjwt
python-dateutil python-dateutil
pyyaml pyyaml
qrcode qrcode
uwsgi
whitenoise whitenoise
ansible-tower-cli ansible-tower-cli
raven raven
......
...@@ -48,7 +48,6 @@ sqlalchemy-citext==1.3.post0 ...@@ -48,7 +48,6 @@ sqlalchemy-citext==1.3.post0
SQLAlchemy-Continuum==1.3.6 SQLAlchemy-Continuum==1.3.6
SQLAlchemy-Utils==0.33.3 SQLAlchemy-Utils==0.33.3
urllib3==1.23 urllib3==1.23
uWSGI==2.0.17.1
Werkzeug==0.14.1 Werkzeug==0.14.1
whitenoise==3.3.1 whitenoise==3.3.1
WTForms==2.1 WTForms==2.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment