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 | ||
39 | # RUN apt-get install -y \ | |
40 | # gstreamer1.0-libav \ | |
41 | # gstreamer1.0-plugins-bad \ | |
42 | # gstreamer1.0-plugins-base \ | |
43 | # gstreamer1.0-plugins-good \ | |
44 | # gstreamer1.0-plugins-ugly \ | |
45 | # libsndfile1-dev \ | |
46 | # python3-gst-1.0 \ | |
47 | # python3-numpy \ | |
48 | # python3-scipy | |
49 | ||
50 | # RUN apt-get install -y \ | |
51 | # gir1.2-gst-plugins-base-1.0 \ | |
52 | # gir1.2-gstreamer-1.0 \ | |
53 | # gstreamer1.0-tools \ | |
54 | # python3-gi | |
55 | ||
56 | # RUN apt-get install -y \ | |
57 | # poppler-utils | |
58 | ||
59 | RUN groupadd www-data | |
60 | RUN groupadd --system mediagoblin --gid 1024 | |
61 | RUN adduser www-data -g www-data -G mediagoblin | |
62 | ||
63 | RUN mkdir /opt/mediagoblin | |
64 | RUN chown -R www-data:www-data /opt/mediagoblin | |
65 | WORKDIR /opt/mediagoblin | |
66 | ||
67 | RUN mkdir --mode=g+w /var/www | |
68 | RUN chown root:www-data /var/www | |
69 | ||
70 | USER www-data | |
71 | ||
62a565e1 | 72 | RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master . |
0798a889 BS |
73 | |
74 | RUN ./bootstrap.sh | |
100f6265 | 75 | RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure |
0798a889 BS |
76 | RUN make |
77 | ||
78 | # RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini | |
79 | # RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini | |
80 | ||
81 | # Fedora only | |
82 | RUN ./bin/pip install certifi | |
83 | RUN ./bin/gmg dbupdate | |
84 | RUN ./bin/gmg adduser --username admin --password a --email admin@example.com | |
85 | RUN ./bin/gmg makeadmin admin | |
86 | ||
87 | EXPOSE 6543/tcp | |
88 | ||
89 | CMD ["./lazyserver.sh", "--server-name=broadcast"] |