docs: Add chapter on upgrading, inc. system Python upgrades [#972].
[mediagoblin.git] / Dockerfile-debian-python2-sqlite
CommitLineData
63a92e3b 1# A Dockerfile for MediaGoblin hacking.
86891869
BS
2#
3# See Dockerfile-debian-python3-sqlite for documentation.
63a92e3b
BS
4
5FROM debian:buster
6
63a92e3b
BS
7RUN apt-get update && apt-get install -y \
8automake \
9git \
10nodejs \
11npm \
12python-dev \
e77430eb
BS
13python-lxml \
14python-pil \
63a92e3b
BS
15virtualenv
16
e77430eb
BS
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
63a92e3b 47
63a92e3b
BS
48RUN mkdir /opt/mediagoblin
49RUN chown -R www-data:www-data /opt/mediagoblin
50WORKDIR /opt/mediagoblin
51
486f90a7 52RUN mkdir --mode=g+w /var/www
63a92e3b 53RUN chown root:www-data /var/www
63a92e3b 54
86891869
BS
55RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
56
63a92e3b
BS
57USER www-data
58
e77430eb
BS
59RUN echo "1"
60
62a565e1 61RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master .
e77430eb 62# RUN git clone --depth=1 https://gitlab.com/BenSturmfels/mediagoblin.git --branch master .
63a92e3b
BS
63
64RUN ./bootstrap.sh
100f6265 65RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3
e77430eb 66
63a92e3b
BS
67RUN make
68
16fbe852
BS
69RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
70
e77430eb
BS
71# RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
72# RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
63a92e3b 73
63a92e3b 74RUN ./bin/gmg dbupdate
63a92e3b
BS
75RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
76RUN ./bin/gmg makeadmin admin
77
86891869
BS
78EXPOSE 6543/tcp
79
80CMD ["./lazyserver.sh", "--server-name=broadcast"]