1 # A Dockerfile for MediaGoblin hacking.
3 # See Dockerfile-debian-python3-sqlite for documentation.
7 RUN apt-get update && apt-get install -y \
17 # RUN apt-get install -y \
27 # python-pytest-xdist \
29 # python-snowballstemmer \
31 # python-sphinxcontrib.websupport \
34 # RUN apt-get install -y \
35 # gstreamer1.0-libav \
36 # gstreamer1.0-plugins-bad \
37 # gstreamer1.0-plugins-base \
38 # gstreamer1.0-plugins-good \
39 # gstreamer1.0-plugins-ugly \
42 # RUN apt-get install -y \
43 # gir1.2-gst-plugins-base-1.0 \
44 # gir1.2-gstreamer-1.0 \
45 # gstreamer1.0-tools \
48 RUN mkdir /opt/mediagoblin
49 RUN chown -R www-data:www-data /opt/mediagoblin
50 WORKDIR /opt/mediagoblin
52 RUN mkdir --mode=g+w /var/www
53 RUN chown root:www-data /var/www
55 RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
61 RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master .
62 # RUN git clone --depth=1 https://gitlab.com/BenSturmfels/mediagoblin.git --branch master .
65 RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3
69 RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
71 # RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
72 # RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
74 RUN ./bin/gmg dbupdate
75 RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
76 RUN ./bin/gmg makeadmin admin
80 CMD ["./lazyserver.sh", "--server-name=broadcast"]