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