From: Guillaume Pellerin Date: Tue, 17 Mar 2015 09:41:42 +0000 (+0100) Subject: Merge branch 'dev' into feature/mysql X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a62703ccdcae9ecc1560cb5da81751a8ea665b69;p=timeside.git Merge branch 'dev' into feature/mysql Conflicts: Dockerfile docker-compose.yml --- a62703ccdcae9ecc1560cb5da81751a8ea665b69 diff --cc Dockerfile index ff9af7f,5d5b91c..b090fe4 --- a/Dockerfile +++ b/Dockerfile @@@ -19,24 -19,21 +19,35 @@@ MAINTAINER Guillaume Pellerin /etc/apt/sources.list.d/wheezy-backports.list && \ + echo 'deb http://debian.parisson.com/debian/ wheezy main' > /etc/apt/sources.list.d/parisson.list && \ + apt-get update && \ + apt-get -y --force-yes -t wheezy-backports dist-upgrade && \ + apt-get install -y --force-yes python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-alsa vamp-examples && \ + apt-get install -y --force-yes -t wheezy-backports python-yaafe && \ + apt-get install -y --force-yes wget bzip2 build-essential && \ + apt-get clean ++>>>>>>> dev # Install conda in /opt/miniconda + ENV PATH /opt/miniconda/bin:$PATH RUN wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh && \ bash miniconda.sh -b -p /opt/miniconda && \ - rm miniconda.sh - ENV PATH /opt/miniconda/bin:$PATH - RUN hash -r && \ + rm miniconda.sh && \ + hash -r && \ conda config --set always_yes yes --set changeps1 yes && \ conda update -q conda diff --cc docker-compose.yml index 3a18cf2,9da2d60..07506a4 --- a/docker-compose.yml +++ b/docker-compose.yml @@@ -1,9 -1,3 +1,5 @@@ - home: - image: debian:wheezy - volumes: - - ./examples/sandbox:/home/timeside - command: /bin/true ++# Volumes + static: image: debian:wheezy volumes: @@@ -26,17 -20,11 +22,23 @@@ lib - /var/lib/mysql command: /bin/true -# db: -# image: postgres -# volumes_from: -# - datadb ++home: ++ image: debian:wheezy ++ volumes: ++ - ./examples/sandbox:/home/timeside ++ command: /bin/true + +db: + image: mysql + volumes_from: + - lib + - log + environment: + - MYSQL_ROOT_PASSWORD=mysecretpassword + - MYSQL_DATABASE=timeside + - MYSQL_USER=timeside + - MYSQL_PASSWORD=changeme + rabbitmq: image: rabbitmq:3-management ports: @@@ -44,23 -32,6 +46,23 @@@ expose: - "5672" +app: + build: . + volumes: + - .:/opt/TimeSide + volumes_from: + - static + - home + - log + command: /bin/sh /opt/TimeSide/examples/deploy/start_app.sh + ports: + - "9000:9000" + expose: - - "8000" #default runserver wsgi port ++ - "8000" + links: + - rabbitmq + - db + worker: build: . volumes_from: