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