Test and update the media-types docs with Debian 10 and CentOS.
[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 \
13virtualenv
14
63a92e3b
BS
15RUN apt-get install -y \
16python-alembic \
17python-celery \
18python-jsonschema \
19python-kombu \
20python-lxml \
21python-migrate \
c3096e30 22python-mock \
63a92e3b
BS
23python-py \
24python-pytest \
25python-pytest-xdist \
26python-six \
16fbe852 27python-snowballstemmer \
63a92e3b 28python-sphinx \
16fbe852 29python-sphinxcontrib.websupport \
63a92e3b
BS
30python-webtest
31
63a92e3b
BS
32RUN apt-get install -y \
33gstreamer1.0-libav \
34gstreamer1.0-plugins-bad \
35gstreamer1.0-plugins-base \
36gstreamer1.0-plugins-good \
37gstreamer1.0-plugins-ugly \
4f3f70d1 38python-gst-1.0
63a92e3b 39
63a92e3b
BS
40RUN apt-get install -y \
41gir1.2-gst-plugins-base-1.0 \
42gir1.2-gstreamer-1.0 \
43gstreamer1.0-tools \
44python-gi
45
63a92e3b
BS
46RUN mkdir /opt/mediagoblin
47RUN chown -R www-data:www-data /opt/mediagoblin
48WORKDIR /opt/mediagoblin
49
486f90a7 50RUN mkdir --mode=g+w /var/www
63a92e3b 51RUN chown root:www-data /var/www
63a92e3b 52
86891869
BS
53RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
54
63a92e3b
BS
55USER www-data
56
62a565e1 57RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master .
63a92e3b
BS
58
59RUN ./bootstrap.sh
100f6265 60RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3
63a92e3b
BS
61RUN make
62
16fbe852
BS
63RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
64
63a92e3b
BS
65RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
66RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
67
63a92e3b 68RUN ./bin/gmg dbupdate
63a92e3b
BS
69RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
70RUN ./bin/gmg makeadmin admin
71
86891869
BS
72EXPOSE 6543/tcp
73
74CMD ["./lazyserver.sh", "--server-name=broadcast"]