]> git.parisson.com Git - mezzo.git/commitdiff
use a embed volume for DB (fix OSX access rights) and make the install generic
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 1 Mar 2016 16:18:18 +0000 (17:18 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 1 Mar 2016 16:18:18 +0000 (17:18 +0100)
thanks to the docker quickstart terminal

README.rst
docker-compose.yml

index 265a074e3273ff85f2cc31381e92aad14d5a1993..c88cb870c6b45917b2a185cedfd41f2b92c88982 100644 (file)
@@ -8,54 +8,27 @@ This is the new template for the Manifeste festival website at IRCAM. It is base
 Install
 =========
 
-For easier development and production workflow, it has been dockerized including the MariaDB and the Nginx webserver.
+For easier development and production workflow, it has been dockerized including Django, Mezzanine, MariaDB and Nginx.
 
-First install `Git <http://git-scm.com/downloads>`_, `Docker engine <https://docs.docker.com/installation/>`_ and `docker-compose <https://docs.docker.com/compose/install/>`_.
+On Linux, first install `Git <http://git-scm.com/downloads>`_, `Docker engine <https://docs.docker.com/installation/>`_ and `docker-compose <https://docs.docker.com/compose/install/>`_ and open a terminal.
 
+On MacOSX or Windows install the `Docker Toolbox <https://www.docker.com/products/docker-toolbox>`_ and open a Docker Quickstart Terminal.
 
-Linux
-------
+Then run these commands::
 
-Run these commands in a terminal::
-
-    git clone --recursive git://git.forge.ircam.fr/Manifeste.git
+    git clone git://git.forge.ircam.fr/Manifeste.git
     cd Manifeste
     docker-compose up db
 
-The last command is needed to init the database. Press CTRL-C to exit. Then fire up the whole composition::
+The last command is needed to init the database. Press CTRL-C to exit, then fire up the whole composition::
 
      docker-compose up
 
-To restore the backuped database, in another terminal::
+Restore the backuped database, in another terminal (or a Docker Quickstart Terminal)::
 
     cd Manifeste
     ./scripts/restore.sh
 
-You should be able to browse the site at http://localhost:9000/
-
-
-MacOS or Windows:
-------------------
-
-Run these commands in a terminal::
-
-    docker-machine create --driver virtualbox --virtualbox-memory 8096 default
-    docker-machine start default
-    eval "$(docker-machine env default)"
-    docker-machine ip default
-    git clone --recursive git://git.forge.ircam.fr/Manifeste.git
-    cd Manifeste
-    docker-compose up db
-
-The last command is needed to init the database. Press CTRL-C to exit. Then fire up the whole composition::
-
-    docker-compose up
-
-Then, in another terminal::
-
-    eval "$(docker-machine env default)"
-    cd Manifeste
-    ./scripts/restore.sh
+Give you user password if asked.
 
-`More info <https://docs.docker.com/>`_ about using docker and related tools.
-The 3rd command should give you the IP of the VM. For example, if IP is 192.168.59.103, you should be able to browse the site at http://192.168.59.103:8010/
+You should be able to browse the app at http://localhost:8010/ (replacing 'localhost' by the IP given by the docker terminal on OSX and Windows)
index f45898be4e26d2c2fa6c2ae2c54cd0647a0d1f80..5ff54d90e55eed25fd75c735ec9d9510a9990c1b 100644 (file)
@@ -25,7 +25,6 @@ data:
     - ./data/media/:/srv/media
     - ./data/static/:/srv/static
     - ./data/backup/:/srv/backup
-    - ./data/var/lib/mysql/:/var/lib/mysql
     - ./scripts/:/srv/scripts
   command: "true"