docs: Add chapter on upgrading, inc. system Python upgrades [#972].
[mediagoblin.git] / Dockerfile-debian-python2-sqlite
... / ...
CommitLineData
1# A Dockerfile for MediaGoblin hacking.
2#
3# See Dockerfile-debian-python3-sqlite for documentation.
4
5FROM debian:buster
6
7RUN apt-get update && apt-get install -y \
8automake \
9git \
10nodejs \
11npm \
12python-dev \
13python-lxml \
14python-pil \
15virtualenv
16
17# RUN apt-get install -y \
18# python-alembic \
19# python-celery \
20# python-jsonschema \
21# python-kombu \
22# python-lxml \
23# python-migrate \
24# python-mock \
25# python-py \
26# python-pytest \
27# python-pytest-xdist \
28# python-six \
29# python-snowballstemmer \
30# python-sphinx \
31# python-sphinxcontrib.websupport \
32# python-webtest
33
34# RUN apt-get install -y \
35# gstreamer1.0-libav \
36# gstreamer1.0-plugins-bad \
37# gstreamer1.0-plugins-base \
38# gstreamer1.0-plugins-good \
39# gstreamer1.0-plugins-ugly \
40# python-gst-1.0
41
42# RUN apt-get install -y \
43# gir1.2-gst-plugins-base-1.0 \
44# gir1.2-gstreamer-1.0 \
45# gstreamer1.0-tools \
46# python-gi
47
48RUN mkdir /opt/mediagoblin
49RUN chown -R www-data:www-data /opt/mediagoblin
50WORKDIR /opt/mediagoblin
51
52RUN mkdir --mode=g+w /var/www
53RUN chown root:www-data /var/www
54
55RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
56
57USER www-data
58
59RUN echo "1"
60
61RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master .
62# RUN git clone --depth=1 https://gitlab.com/BenSturmfels/mediagoblin.git --branch master .
63
64RUN ./bootstrap.sh
65RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3
66
67RUN make
68
69RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
70
71# RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
72# RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
73
74RUN ./bin/gmg dbupdate
75RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
76RUN ./bin/gmg makeadmin admin
77
78EXPOSE 6543/tcp
79
80CMD ["./lazyserver.sh", "--server-name=broadcast"]