Introducing the asset of type file creation. This involves making a node collection entry of type asset, as well as a file collection entry, plus all the needed variations if such file is an image or a video. Further, depending on the storage backend (pillar or other) we synchronise the files there using rsync. Currently this functionality is available only via pillar-web, since a web interface is needed to upload the file in a storage folder, which is shared between the two applications.
48 lines
961 B
Docker
48 lines
961 B
Docker
FROM ubuntu
|
|
MAINTAINER Francesco Siddi <francesco@blender.org>
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
python \
|
|
python-dev \
|
|
python-pip \
|
|
git \
|
|
nano \
|
|
zlib1g-dev \
|
|
libjpeg-dev \
|
|
software-properties-common
|
|
|
|
RUN add-apt-repository ppa:mc3man/trusty-media \
|
|
&& apt-get update && apt-get install -y \
|
|
ffmpeg
|
|
|
|
|
|
RUN mkdir /data \
|
|
&& mkdir /data/www \
|
|
&& mkdir /data/www/pillar \
|
|
&& mkdir /data/dev \
|
|
&& mkdir /data/dev/pillar \
|
|
&& mkdir /storage \
|
|
&& mkdir /storage/shared \
|
|
&& mkdir /storage/pillar \
|
|
&& mkdir /data/config \
|
|
&& mkdir /storage/logs
|
|
|
|
RUN git clone https://github.com/armadillica/pillar.git /data/www/pillar
|
|
|
|
RUN pip install virtualenv \
|
|
&& virtualenv /data/venv
|
|
RUN . /data/venv/bin/activate && pip install -r /data/www/pillar/requirements.txt
|
|
|
|
VOLUME /data/dev/pillar
|
|
VOLUME /data/config
|
|
VOLUME /storage/shared
|
|
VOLUME /storage/pillar
|
|
|
|
ENV MONGO_HOST mongo_pillar
|
|
|
|
EXPOSE 5000
|
|
|
|
ADD runserver.sh /runserver.sh
|
|
|
|
ENTRYPOINT ["bash", "/runserver.sh"]
|