Fix audio thumbnailing once and for all.
[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 \
27python-sphinx \
28python-webtest
29
63a92e3b
BS
30RUN apt-get install -y \
31gstreamer1.0-libav \
32gstreamer1.0-plugins-bad \
33gstreamer1.0-plugins-base \
34gstreamer1.0-plugins-good \
35gstreamer1.0-plugins-ugly \
36libsndfile1-dev \
37python-gst-1.0 \
38python-numpy \
39python-scipy
40
63a92e3b
BS
41RUN apt-get install -y \
42gir1.2-gst-plugins-base-1.0 \
43gir1.2-gstreamer-1.0 \
44gstreamer1.0-tools \
45python-gi
46
63a92e3b
BS
47RUN mkdir /opt/mediagoblin
48RUN chown -R www-data:www-data /opt/mediagoblin
49WORKDIR /opt/mediagoblin
50
63a92e3b
BS
51RUN mkdir /var/www
52RUN chown root:www-data /var/www
53RUN chmod g+w /var/www
54
86891869
BS
55RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
56
63a92e3b
BS
57USER www-data
58
86891869 59RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
63a92e3b
BS
60RUN git submodule init && git submodule update
61
62RUN ./bootstrap.sh
63RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
64RUN make
65
63a92e3b
BS
66RUN ./bin/pip install scikits.audiolab
67
63a92e3b
BS
68RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
69RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
70
63a92e3b 71RUN ./bin/gmg dbupdate
63a92e3b
BS
72RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
73RUN ./bin/gmg makeadmin admin
74
86891869
BS
75EXPOSE 6543/tcp
76
77CMD ["./lazyserver.sh", "--server-name=broadcast"]