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 | ||
486f90a7 | 51 | RUN mkdir --mode=g+w /var/www |
63a92e3b | 52 | RUN chown root:www-data /var/www |
63a92e3b | 53 | |
86891869 BS |
54 | RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin |
55 | ||
63a92e3b BS |
56 | USER www-data |
57 | ||
86891869 | 58 | RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master . |
63a92e3b BS |
59 | |
60 | RUN ./bootstrap.sh | |
61 | RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure | |
62 | RUN make | |
63 | ||
63a92e3b BS |
64 | RUN ./bin/pip install scikits.audiolab |
65 | ||
63a92e3b BS |
66 | RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini |
67 | RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini | |
68 | ||
63a92e3b | 69 | RUN ./bin/gmg dbupdate |
63a92e3b BS |
70 | RUN ./bin/gmg adduser --username admin --password a --email admin@example.com |
71 | RUN ./bin/gmg makeadmin admin | |
72 | ||
86891869 BS |
73 | EXPOSE 6543/tcp |
74 | ||
75 | CMD ["./lazyserver.sh", "--server-name=broadcast"] |