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