MAINTAINER Guillaume Pellerin <yomguy@parisson.com>, Thomas fillon <thomas@parisson.com>
-RUN mkdir /srv/src/
+RUN if [ ! -d /srv/src/ ]; then mkdir /srv/src/; fi
RUN mkdir /srv/src/telemeta
COPY . /srv/src/telemeta
WORKDIR /srv/src/telemeta
RUN pip install -r requirements-dev.txt --src /srv/src
ENV PYTHON_EGG_CACHE=/srv/.python-eggs
-RUN mkdir $PYTHON_EGG_CACHE
+RUN if [ ! -d $PYTHON_EGG_CACHE ]; then mkdir $PYTHON_EGG_CACHE; fi
RUN chown www-data:www-data $PYTHON_EGG_CACHE
WORKDIR /srv/app
Install
=======
-Thanks to Docker, Telemeta is now fully available as a docker image ready to work. The docker based composition bundles some powerfull applications and modern frameworks out-of-the-box like: Python, Numpy, Gstreamer, Django, Celery, MySQL, RabbitMQ, uWSGI, Nginx and many more.. The image includes all the necessary applications, modules and volumes to start your project in a few steps.
+Thanks to Docker, Telemeta is now fully available as a docker image ready to work. The docker based composition bundles some powerfull applications and modern frameworks out-of-the-box like: Python, Numpy, Gstreamer, Django, Celery, Haystack, ElasticSearch, MySQL, RabbitMQ, uWSGI, Nginx and many more...
First install `Git <http://git-scm.com/downloads>`_, `Docker <https://docs.docker.com/installation/>`_ and `docker-compose <https://docs.docker.com/compose/install/>`_, then run these commands in a terminal::
cd Telemeta
docker-compose up
-You can now browse http://localhost:8000 to get the web interface.
+You can now browse http://localhost:8000
+
+
+Restore / backup
+================
+
+To restore a backuped database, put your backup file in data/backup, then in another terminal::
+
+ docker-compose run db /srv/backup/restore_db.sh FILENAME
+
+where FILENAME is the backup filename (can be .sql or .sql.gz)
+
+To backup the database, just run in another terminal::
+
+ docker-compose run db /srv/backup/backup_db.sh
API / Documentation
# waiting for other services
sh $app/deploy/wait.sh
+# waiting for available database
+python $app/wait.py
+
# django init
python $manage syncdb --noinput
python $manage migrate --noinput
python $manage collectstatic --noinput
+python $manage telemeta-create-admin-user
+python $manage telemeta-create-boilerplate
if [ ! -f $app/.init ]; then
chown -R www-data:www-data $media
- python $manage telemeta-create-admin-user
- python $manage telemeta-create-boilerplate
python $manage update_index --workers $processes &
touch $app/.init
fi