~dricottone/container-images

42b7156724b85db142513ae658a6584349aac0f6 — Dominic Ricottone 22 hours ago 8ffffdd
Fixed uwsgi

There are some weird quirks to using pypy, seems like having the compiler
around in production is mandatory.

Also, uwsgi's development cycle is permanently fucked. They've been
working on 2.1 for a decade. 2.0 is still the stable, and what's pushed
to PyPI, but there are definitely some 2.1 bits that have slipped
through. Case in point, the pypy plugin depends on 2.1 C APIs.
Anyway, I'm living at HEAD now.
3 files changed, 9 insertions(+), 8 deletions(-)

M .gitmodules
M uwsgi/Dockerfile
A uwsgi/src
M .gitmodules => .gitmodules +3 -0
@@ 7,3 7,6 @@
[submodule "tailon/src"]
	path = tailon/src
	url = https://github.com/gvalkov/tailon.git
[submodule "uwsgi/src"]
	path = uwsgi/src
	url = https://github.com/unbit/uwsgi.git

M uwsgi/Dockerfile => uwsgi/Dockerfile +5 -8
@@ 1,16 1,13 @@
FROM alpine:edge AS builder
FROM alpine:edge

RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy musl-dev linux-headers gcc
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy musl-dev pcre-dev linux-headers gcc
RUN pypy -m ensurepip
RUN pypy -m pip install --upgrade --no-warn-script-location pip wheel
RUN pypy -m pip install --no-warn-script-location uwsgi

FROM alpine:edge

RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy
COPY --from=builder /usr/lib/pypy /usr/lib/pypy
COPY src /var/uwsgi
RUN pypy -m pip install /var/uwsgi

# user `uwsgi` should be created with PID=100:GID=101
#Note: user `uwsgi` should be created with PID=100:GID=101
RUN addgroup -S uwsgi
RUN adduser -SD -h /var/www -s /sbin/nologin -G uwsgi -g uwsgi uwsgi


A uwsgi/src => uwsgi/src +1 -0
@@ 0,0 1,1 @@
Subproject commit 89cb161cda959697a4afe013f348b06646b960aa