1 # A Dockerfile for MediaGoblin hacking.
3 # See Dockerfile-debian-python3-sqlite for documentation.
7 RUN apt-get update && apt-get install -y \
15 RUN apt-get install -y \
30 RUN apt-get install -y \
32 gstreamer1.0-plugins-bad \
33 gstreamer1.0-plugins-base \
34 gstreamer1.0-plugins-good \
35 gstreamer1.0-plugins-ugly \
41 RUN apt-get install -y \
42 gir1.2-gst-plugins-base-1.0 \
43 gir1.2-gstreamer-1.0 \
47 RUN mkdir /opt/mediagoblin
48 RUN chown -R www-data:www-data /opt/mediagoblin
49 WORKDIR /opt/mediagoblin
52 RUN chown root:www-data /var/www
53 RUN chmod g+w /var/www
55 RUN groupadd --system mediagoblin --gid 1024 && adduser www-data mediagoblin
59 RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
60 RUN git submodule init && git submodule update
63 RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
66 RUN ./bin/pip install scikits.audiolab
68 RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
69 RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
71 RUN ./bin/gmg dbupdate
72 RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
73 RUN ./bin/gmg makeadmin admin
77 CMD ["./lazyserver.sh", "--server-name=broadcast"]