Skip to content

Commit 5d02706

Browse files
committed
Compile UWSGI with msgpack support
1 parent b90614d commit 5d02706

2 files changed

Lines changed: 79 additions & 3 deletions

File tree

jessie/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ RUN set -ex \
2323
&& chmod +x /usr/local/bin/tini \
2424
&& tini -vvv -- bash -c 'true'
2525

26+
COPY conf /usr/share/docker-python3
27+
2628
RUN set -ex \
2729
&& apt-get update -y \
2830
&& apt-get install -q -y --no-install-recommends \
2931
git gcc make gettext gdal-bin \
30-
libc6-dev zlib1g-dev musl-dev libpq-dev \
32+
libc6-dev zlib1g-dev musl-dev libpq-dev libexpat1-dev \
3133
libxml2-dev libxslt1-dev libjansson-dev libpcre3-dev \
3234
libpng-dev libfreetype6-dev libjpeg-dev libffi-dev \
3335
&& rm -rf /var/cache/apt/* \
@@ -40,8 +42,10 @@ RUN set -ex \
4042
&& chown app.app -R /app \
4143
&& chown app.app -R /python \
4244
&& gosu app python -m venv /python \
43-
&& gosu app /python/bin/pip install --no-cache-dir --upgrade pip setuptools wheel \
44-
&& gosu app /python/bin/pip install --no-cache-dir uwsgi==2.0.15
45+
&& gosu app /python/bin/pip install --no-cache-dir --upgrade pip setuptools \
46+
&& gosu app /python/bin/pip install --no-cache-dir --upgrade wheel \
47+
&& UWSGI_PROFILE=/usr/share/docker-python3/uwsgi-profile.ini \
48+
gosu app /python/bin/pip install --no-cache-dir --upgrade uwsgi
4549

4650
ENV LANG="C.UTF-8" \
4751
LC_COLLATE=C \

jessie/conf/uwsgi-profile.ini

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[uwsgi]
2+
xml = expat
3+
yaml = true
4+
json = auto
5+
ssl = auto
6+
pcre = true
7+
routing = true
8+
debug = false
9+
unbit = false
10+
malloc_implementation = libc
11+
extras =
12+
plugins =
13+
bin_name = uwsgi
14+
append_version =
15+
plugin_dir = /var/lib/uwsgi/plugins
16+
embedded_plugins = python,
17+
gevent,
18+
ping,
19+
cache,
20+
rpc,
21+
http,
22+
echo,
23+
ugreen,
24+
signal,
25+
syslog,
26+
rsyslog,
27+
logsocket,
28+
zergpool,
29+
msgpack,
30+
logfile,
31+
curl_cron,
32+
alarm_curl,
33+
router_rewrite,
34+
router_http,
35+
router_cache,
36+
router_static,
37+
router_uwsgi,
38+
router_redirect,
39+
router_metrics,
40+
router_basicauth,
41+
rawrouter,
42+
sslrouter,
43+
corerouter,
44+
fastrouter,
45+
spooler,
46+
cheaper_busyness,
47+
symcall,
48+
transformation_tofile,
49+
transformation_toupper,
50+
transformation_template,
51+
transformation_gzip,
52+
transformation_chunked,
53+
transformation_offload,
54+
router_memcached,
55+
router_redis,
56+
router_hash,
57+
router_expires,
58+
router_metrics,
59+
stats_pusher_socket
60+
61+
as_shared_library = false
62+
63+
locking = auto
64+
event = auto
65+
timer = auto
66+
filemonitor = auto
67+
68+
blacklist =
69+
whitelist =
70+
71+
embed_files =
72+
embed_config =

0 commit comments

Comments
 (0)