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 \ | |
4f3f70d1 | 36 | python-gst-1.0 |
63a92e3b | 37 | |
63a92e3b BS |
38 | RUN apt-get install -y \ |
39 | gir1.2-gst-plugins-base-1.0 \ | |
40 | gir1.2-gstreamer-1.0 \ | |
41 | gstreamer1.0-tools \ | |
42 | python-gi | |
43 | ||
63a92e3b BS |
44 | RUN mkdir /opt/mediagoblin |
45 | RUN chown -R www-data:www-data /opt/mediagoblin | |
46 | WORKDIR /opt/mediagoblin | |
47 | ||
486f90a7 | 48 | RUN mkdir --mode=g+w /var/www |
63a92e3b | 49 | RUN chown root:www-data /var/www |
63a92e3b | 50 | |
86891869 BS |
51 | RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin |
52 | ||
63a92e3b BS |
53 | USER www-data |
54 | ||
86891869 | 55 | RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master . |
63a92e3b BS |
56 | |
57 | RUN ./bootstrap.sh | |
100f6265 | 58 | RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3 |
63a92e3b BS |
59 | RUN make |
60 | ||
63a92e3b BS |
61 | RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini |
62 | RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini | |
63 | ||
63a92e3b | 64 | RUN ./bin/gmg dbupdate |
63a92e3b BS |
65 | RUN ./bin/gmg adduser --username admin --password a --email admin@example.com |
66 | RUN ./bin/gmg makeadmin admin | |
67 | ||
86891869 BS |
68 | EXPOSE 6543/tcp |
69 | ||
70 | CMD ["./lazyserver.sh", "--server-name=broadcast"] |